
var mc = new MenuCreator();

mc.Start();
mc.Add("ASX Market");
	mc.Start();
	if (symbol != "")
	{
	    mc.Add("Quick Quote","/equities/quotes.asp?type=Quick+Quote&Symbol=" + symbol,"");
	    mc.Add("Market Depth","/equities/quotes.asp?type=Market+Depth&ASX_Code=" + symbol,"");
	    mc.Add("Interactive Chart","/charts/?Symbol=" + symbol,"");
	    mc.Add("Course of Sales","/equities/quotes.asp?type=Latest+Trades&ASX_Code=" + symbol,"");
	    mc.Add("Announcements","/news/news.asp?mode=Ann&search_by1=code&SearchString1=" + symbol,"");
	    mc.Add("Fundamentals","/equities/quotes.asp?type=Security+details&Symbol=" + symbol,"");
	}
	else
	{
	    mc.Add("Interactive Chart","/charts/","");
	  }
	mc.End();
mc.Add("Tools","","_blank");
	mc.Start();
	mc.Add("My Portfolio","/portfolio3/portfolio.asp?mode=list","");
	/*mc.Add("My Watch Lists","","_blank");
	mc.Add("Online Trading","","_blank");
    mc.Add("Alert Me!","","_blank");
    mc.Add("WebStation","","_blank");*/
    mc.Add("Indices","/marketview/marketview.asp?Selection=Indices","");
    mc.Add("Company Search","/search/popup_code_search.asp","_blank");
	mc.End();
mc.Add("Statistics","","_blank");
	mc.Start();
	mc.Add("% Gain","/marketview/marketview.asp?Selection=Stock+View&SecType=Stocks&SortKey=pcMove&SortDir=Top","");
	mc.Add("% Loss","/marketview/marketview.asp?Selection=Stock+View&SecType=Stocks&SortKey=pcMove&SortDir=Bottom","");
	mc.Add("Largest Volume","/marketview/marketview.asp?Selection=Stock+View&SecType=Stocks&SortKey=Volume&SortDir=Top","");
	mc.Add("Largest Sales","/marketview/marketview.asp?Selection=Stock+View&SecType=Stocks&SortKey=Sales&SortDir=Top","");
	mc.Add("Largest No. Trades","/marketview/marketview.asp?Selection=Stock+View&SecType=Stocks&SortKey=Trades&SortDir=Top","");
	mc.End();
mc.Add("Market Analysis");
	mc.Start();
	mc.Add("Market Pyramid","/marketview/marketview.asp?Selection=Pyramid","");
	mc.Add("Market Map","/marketview/marketview.asp?Selection=Map+of+the+Market","");
	mc.Add("Market Scatter","/marketview/marketview.asp?Selection=Scatter","");
	mc.Add("GICS Sector","/marketview/marketview.asp?Selection=Industry+Sectors","");
	mc.End();
mc.Add("News");
	mc.Start();
	mc.Add("My News","/portfolio3/portfolio.asp?p_number=-1&ViewMode=news&pager_index=&pager=0","");
	mc.Add("Business News","/news/news.asp?mode=Bus","");
	mc.Add("Company News","/news/news.asp","");
	mc.End();
mc.Add("Live Market Scans");
	mc.Start();
	mc.Add("Basic Stocks","/marketview/marketview.asp?Selection=Market+Scan&exc=1&SecType=Basic+Stocks","");
	mc.Add("Equities","/marketview/marketview.asp?Selection=Market+Scan&exc=1&SecType=Equities","");
	mc.Add("Options","/marketview/marketview.asp?Selection=Market+Scan&exc=1&SecType=Options","");
	mc.Add("Warrants","/marketview/marketview.asp?Selection=Market+Scan&exc=1&SecType=Warrants","");
	mc.Add("Everything","/marketview/marketview.asp?Selection=Market+Scan&exc=1&SecType=All","");
	mc.Add("Stock Breakouts","/clients/webcharts/marketview.asp?Selection=Market+Scan&exc=1&SecType=Equities&infoScan=StockBreakOuts&sortkey=BreakoutbyPercent","");
    mc.Add("Warrant Breakouts","/clients/webcharts/marketview.asp?Selection=Market+Scan&exc=1&SecType=Warrants&infoScan=StockBreakOuts&sortkey=BreakoutbyPercent","");
	mc.Add("Stock Breakdowns","/clients/webcharts/marketview.asp?Selection=Market+Scan&exc=1&SecType=Equities&infoScan=StockBreakDowns&sortkey=BreakdownbyPercent&SortDir=Bottom","");
	mc.Add("Warrant Breakdowns","/clients/webcharts/marketview.asp?Selection=Market+Scan&exc=1&SecType=Warrants&infoScan=StockBreakDowns&sortkey=BreakdownbyPercent&SortDir=Bottom","");	
	mc.Add("Emerging Up Trends","/clients/webcharts/marketview.asp?Selection=Market+Scan&exc=1&SecType=Equities&infoScan=UpTrends&sortkey=EmergingUptrends","");
	mc.Add("Emerging Down Trends","/clients/webcharts/marketview.asp?Selection=Market+Scan&exc=1&SecType=Equities&infoScan=DownTrends&sortkey=EmergingDowntrends&SortDir=Bottom","");	
	mc.End();
/*mc.Add("Education Corner");
	mc.Start();
	mc.Add("Online Learning","","_blank");
	mc.Add("Articles","","_blank");
	mc.Add("Glossary","","_blank");
	mc.End();
mc.Add("Community");
	mc.Start();
	mc.Add("Stock Chat","","_blank");
	mc.Add("Support & Feedback","","_blank");
	mc.End();*/
mc.Add("Configuration");
	mc.Start();
	mc.Add("Personal Details","/accounts/accounts.asp?selection=Personal+Details","");
	mc.Add("Change Password","/accounts/accounts.asp?selection=Password","");
	mc.Add("Payment Details","/accounts/accounts.asp?selection=Payment+Details","");
	//mc.Add("Personal Details","","_blank");
	mc.End();

mc.End();

// if you uncomment this the menu will be vertical instead of horizontal
mc.Vertical();
// if you uncomment this the box will be centered
//mc.Center();
// if you uncomment this you will have to write the first level youself
mc.DoNotWriteFirstLevel();

mc.Draw();
