	// 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 STOCKHOUSE
		var menu1 = ms.addMenu(document.getElementById("menu1"));
		menu1.addItem("Profile", "http://www.stockgroup.com/template1.asp?pid=70");
		menu1.addItem("Audience", "http://www.stockgroup.com/template1.asp?pid=71");
		
		// menu SOLUTIONS
		var menu2 = ms.addMenu(document.getElementById("menu2"));
		menu2.addItem("Brokerage", "http://www.stockgroup.com/template2.asp?pid=21");
		menu2.addItem("Bank", "http://www.stockgroup.com/template2.asp?pid=22");
		menu2.addItem("Mutual Fund Company", "http://www.stockgroup.com/template2.asp?pid=23");
		menu2.addItem("Media", "http://www.stockgroup.com/template2.asp?pid=24");
		menu2.addItem("Portal", "http://www.stockgroup.com/template2.asp?pid=25");
		menu2.addItem("Public Company", "http://www.stockgroup.com/template2.asp?pid=26");
		
		// menu PRODUCTS
		var menu3 = ms.addMenu(document.getElementById("menu3"));
		menu3.addItem("Stockstream", "http://www.stockgroup.com/template2.asp?pid=78");
		menu3.addItem("Stockstream Mobile", "http://www.stockgroup.com/template2.asp?pid=83");
		menu3.addItem("Quotes & Charts", "http://www.stockgroup.com/template2.asp?pid=27");
		menu3.addItem("Portfolio Manager", "http://www.stockgroup.com/template2.asp?pid=28");
		menu3.addItem("Markets", "http://www.stockgroup.com/template2.asp?pid=29");
		menu3.addItem("Alerts", "http://www.stockgroup.com/template2.asp?pid=30");
		menu3.addItem("Mutual Funds", "http://www.stockgroup.com/template2.asp?pid=31");
		menu3.addItem("News", "http://www.stockgroup.com/template2.asp?pid=32");
		menu3.addItem("Research & Analysis", "http://www.stockgroup.com/template2.asp?pid=33");
		menu3.addItem("Disclosure", "http://www.stockgroup.com/template2.asp?pid=34");
		menu3.addItem("Delivery", "http://www.stockgroup.com/template2.asp?pid=36");
		// menu3.addItem("Marketstream", "http://www.marketstreamlive.com/");
		
		
		// menu WHO WE ARE
		var menu4 = ms.addMenu(document.getElementById("menu4"));
		menu4.addItem("Management","http://ir.stockgroup.com/management.asp?ticker=stkh&title=null&theurl=files.php?source=31");
		menu4.addItem("Mission & Values", "http://www.stockgroup.com/template1.asp?pid=18");
		menu4.addItem("Technology", "http://www.stockgroup.com/template1.asp?pid=11");
		menu4.addItem("Our Partners", "http://www.stockgroup.com/template1.asp?pid=12");
		menu4.addItem("Our Clients", "http://www.stockgroup.com/template1.asp?pid=54");
		menu4.addItem("For Investors", "http://www.stockgroup.com/template2.asp?pid=15");
		// menu4.addItem("Careers", "http://www.stockgroup.com/template1.asp?pid=19");
		
		
		var subMenu10 = menu4.addMenu(menu4.items[3]);
		subMenu10.addItem("Channel Partners & Resellers", "http://www.stockgroup.com/template1.asp?pid=14");
		
		var subMenu10 = menu4.addMenu(menu4.items[4]);
		subMenu10.addItem("Overview", "http://www.stockgroup.com/template1.asp?pid=54");
		subMenu10.addItem("Client Feature: National Bank", "http://www.stockgroup.com/template2.asp?pid=38");
		subMenu10.addItem("Client Feature: Credential Direct", "http://www.stockgroup.com/template2.asp?pid=39");
		subMenu10.addItem("Client Feature: Union Bank of California", "http://www.stockgroup.com/template2.asp?pid=40");
		
		var subMenu11 = menu4.addMenu(menu4.items[5]);
		subMenu11.addItem("Overview","http://www.stockgroup.com/template2.asp?pid=15");
		subMenu11.addItem("Board of Directors","http://www.stockgroup.com/template2.asp?pid=82");
		// subMenu11.addItem("Stock Information","http://ir.stockgroup.com/quote_chart.asp?ticker=stkh&title=null");
		subMenu11.addItem("Press Releases","http://ir.stockgroup.com/newsrelease.asp?ticker=stkh&title=null");
		subMenu11.addItem("Financial Reports","http://ir.stockgroup.com/financialreports.asp?ticker=stkh&title=null");
		// subMenu11.addItem("Regulatory Filings","http://ir.stockgroup.com/cfiling.asp?ticker=stkh&title=null&theurl=files.php?source=31");
		subMenu11.addItem("Corporate Governance","http://ir.stockgroup.com/corporategovernance.asp?ticker=STKH&title=null");
		subMenu11.addItem("Investor Services","http://ir.stockgroup.com/Requestinfo.asp?ticker=stkh&title=null");
		subMenu11.addItem("Email Alerts","http://ir.stockgroup.com/emailalerts.asp?ticker=stkh&title=null");
		
		
		
			// menu CAREERS
		// var menu5 = ms.addMenu(document.getElementById("menu5"));
		// menu5.addItem("Careers", "http://www.stockgroup.com/template1.asp?pid=19");
		
		//==================================================================================================
		// 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();
	}
