	// set up drop downs anywhere in the body of the page. I think the bottom of the page is better.. 
	// but you can experiment with effect on loadtime.
	if (mtDropDown.isSupported()) {

		//==================================================================================================
		// create a set of dropdowns
		//==================================================================================================
		// the first param should always be down, as it is here
		//
		// The second and third param are the top and left offset positions of the menus from their actuators
		// respectively. To make a menu appear a little to the left and bottom of an actuator, you could use
		// something like -5, 5
		//
		// The last parameter can be .topLeft, .bottomLeft, .topRight, or .bottomRight to inidicate the corner
		// of the actuator from which to measure the offset positions above. Here we are saying we want the 
		// menu to appear directly below the bottom left corner of the actuator
		//==================================================================================================
		var ms = new mtDropDownSet(mtDropDown.direction.down, 0, 0, mtDropDown.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
		
		//==================================================================================================

		//==================================================================================================
		// add a sub-menu
		//==================================================================================================
		// to add a sub menu to an existing menu object, call it's addMenu method and pass it the item from
		// the parent menu which should act as it's actuator. To add a submenu to the fourth item of a menu
		// called "theMenu", you would do theMenu.addMenu(theMenu.items[3])
		//==================================================================================================

		
		// menu Markets
		var menu1 = ms.addMenu(document.getElementById("menu1"));
		menu1.addItem("Quotes", "http://demo.stockgroup.com/snapshot_quote.asp?ticker=msft");
		menu1.addItem("Charts", "http://demo.stockgroup.com/snapshot_chart.asp?ticker=msft");
		menu1.addItem("Interactive Charts", "http://demo.stockgroup.com/snapshot_chart.asp?ticker=msft&interactive=yes");
		menu1.addItem("Intraday Indices", "http://demo.stockgroup.com/stockgroupinfo.asp?page=indices&sh=indices");
		menu1.addItem("Scrolling Ticker", "http://demo.stockgroup.com/stockgroupinfo.asp?page=ticker&sh=st");
		menu1.addItem("Watchlists", "http://demo.stockgroup.com/stockgroupinfo.asp?page=watchlist&sh=wl");
		menu1.addItem("Market Movers", "http://demo.stockgroup.com/mostactive.asp?sh=ma");
		menu1.addItem("Portfolio Manager", "http://demo.stockgroup.com/pfolio.asp?uniqueid=guest&username=sg_guest");
		menu1.addItem("International Currencies", "http://demo.stockgroup.com/currency.asp?sh=currency");		
		menu1.addItem("Stock Alerts", "http://demo.stockgroup.com/stockalert.asp?sh=sa&page=login&uniqueid=1234");
		menu1.addItem("Company Search/Symbol Lookup", "http://demo.stockgroup.com/tools_companysearch.asp?sh=cs");
		menu1.addItem("Markets Overview", "http://demo.stockgroup.com/markets.asp?c=us&sh=mo");
		menu1.addItem("Option Chains", "http://demo.stockgroup.com/snapshot_optionchain.asp?ticker=msft&sh=oc");
		menu1.addItem("Option Volatility", "http://demo.stockgroup.com/sn_optionvolatility.asp?symbol=ge&sh=ov");
		menu1.addItem("Real-Time Quotes", "http://demo.stockgroup.com/snapshot_quote.asp?ticker=msft&action=rtq&sh=rtquote");
		menu1.addItem("Level II Quotes", "http://demo.stockgroup.com/stockgroupinfo.asp?page=ltquote&sh=ltquote");
	
		// menu NEWS
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("Press Releases", "http://demob.stockgroup.com/snapshot_newsrelease.asp?ticker=gm&sh=press");
		menu2.addItem("Newsroom", "http://demob.stockgroup.com/financial_news.asp?subfeed=1&sh=comtex");
		menu2.addItem("News & Analysis", "http://demob.stockgroup.com/customwire_newsrelease.asp?sh=specialequity");
		menu2.addItem("News Alerts", "http://demob.stockgroup.com/newsalerts.asp?sh=newsalerts");

		// menu RESEARCH
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("Company Profiles", "http://democ.stockgroup.com/snapshot_overview.asp?ticker=msft&sh=profile");
		menu3.addItem("Technical Analysis", "http://democ.stockgroup.com/snapshot_techanalysis.asp?ticker=MSFT&lang=EN&sh=tech");
		menu3.addItem("CoreData Fundamentals", "http://democ.stockgroup.com/fundamentals_MG.asp?ticker=MSFT&lang=EN&sh=fundamentals");
		menu3.addItem("Zacks Fundamentals", "http://democ.stockgroup.com/fundamentals_balancesheet.asp?ticker=msft&sh=bs");
		menu3.addItem("Stock Screeners", "http://democ.stockgroup.com/cd_searchtool_zacks.asp?sh=fs");
		menu3.addItem("Insider Trading", "http://democ.stockgroup.com/sn_insidertrades.asp?symbol=msft&sh=it");
		menu3.addItem("SEC Filings", "http://democ.stockgroup.com/sn_secfilings.asp?symbol=msft&sh=secfilings");

		// menu MUTUTAL FUNDS
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("US Fund Suite", "http://demod.stockgroup.com/mutualfunds_usa.asp?sh=usfund");
		menu4.addItem("Canadian Fund Suite", "http://demod.stockgroup.com/fundcenter.asp?sh=fc");
		menu4.addItem("Quotes & Charts", "http://demod.stockgroup.com/mutualfund.asp?symbol=FMAGX&sh=mf");
		menu4.addItem("Screeners", "http://demod.stockgroup.com/tools_mutualfundsearch.asp?sh=mfs");

		// menu XML
		var menu5 = ms.addMenu(document.getElementById("menu5"));
		menu5.addItem("Quote Tool", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlquotetool&sh=xmlq");
		menu5.addItem("Market Traders", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlmarkettraders&sh=xmlmt");
		menu5.addItem("Equity Search", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlequitysearch&sh=xmles");
		menu5.addItem("Bank Rates", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlbankrate&sh=xmlbr");
		menu5.addItem("News", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlcomtexnews&sh=xmlcn");
		menu5.addItem("Mutual Fund Search", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlfundsearch&sh=xmlfs");
		menu5.addItem("Mutual Fund Quote", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlfundquote&sh=xmlfq");
		menu5.addItem("Mutual Fund Movers", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlfundmovers&sh=xmlfm");
		menu5.addItem("Market Diaries", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlmarketdiaries&sh=xmlmd");
		menu5.addItem("AP News", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlapnews&sh=xmlapn");
		menu5.addItem("Fundamentals", "http://demoe.stockgroup.com/stockgroupinfo.asp?page=xmlbalancesheetannual&sh=xmlbsa");
		
		// menu ADDITIONS
		var menu6 = ms.addMenu(document.getElementById("menu6"));
		menu6.addItem("Wireless", "http://demof.stockgroup.com/stockgroupinfo.asp?page=wireless&sh=wireless");
		menu6.addItem("MultiLingual Tools", "http://demof.stockgroup.com/snapshot_quote.asp?ticker=msft&sh=mlt&lang=fr");
		menu6.addItem("BullBoards", "http://demof.stockgroup.com/boards.asp?sh=boards");
		menu6.addItem("Bonds", "http://demof.stockgroup.com/futures.asp?futuresView=financials");
		menu6.addItem("Futures", "http://demof.stockgroup.com/futures.asp");
		menu6.addItem("Economic Indicators", "http://demof.stockgroup.com/stockgroupinfo.asp?page=ecowatchlist");
		menu6.addItem("World Indicators", "http://demof.stockgroup.com/worldIndicators.asp?sh=wi");
		menu6.addItem("Calculators", "http://demof.stockgroup.com/basicsavingscalculator.asp?sh=bscalc");
		menu6.addItem("SEC Filings", "http://demof.stockgroup.com/sn_secfilings.asp?sh=secfilings");
		
		
		//==================================================================================================
		// write drop downs into page
		//==================================================================================================
		// this method writes all the HTML for the menus into the page with document.write(). It must be
		// called within the body of the HTML page.
		//==================================================================================================
		mtDropDown.renderAll();
	}
