// 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 (TransMenu.isSupported()) {

	//==================================================================================================
	// create a set of dropdowns
	//==================================================================================================
	// the first param should always be down, as it is here
	//
	// The second and third param are the left and top 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 TransMenuSet(TransMenu.direction.down, 0, -5, TransMenu.reference.bottomLeft);

	//==================================================================================================
	// create a dropdown menu
	//==================================================================================================
	// the first parameter should be the HTML element which will act actuator for the menu
	//==================================================================================================
	var menu0 = ms.addMenu(document.getElementById("home"));
	menu0.addItem("About <b>VSN</b>",    "../en-up/legal-d.htm");
	menu0.addItem("Latest News",         "../en-up/news-index.htm");
	menu0.addItem("Customer References", "../en-up/reference.htm");
	menu0.addItem("License Request",     "../en-up/licencias.htm");
	menu0.addItem("RMA Request",     "../en-up/rma.php");
	menu0.addItem("Online Support","http://remote.vsn-tv.com");

	//menu0.addItem("Support Area",        "../soporte/soporte.php?lan=EN");

	var menu1 = ms.addMenu(document.getElementById("highlights"));
	menu1.addItem("Key Features", "../en-up/higlight.htm");
	menu1.addItem("Workflow", "../en-up/flujo.htm");
	menu1.addItem("New at NAB09", "../en-up/mailing-NAB2009modules.htm");

	var menu2 = ms.addMenu(document.getElementById("newsroom"));
	menu2.addItem("Ingest",                  "../en-up/ingest.htm");
	menu2.addItem("Networked Editing",       "../en-up/editing.htm");
	menu2.addItem("Digital News Production", "../en-up/news.htm");
	menu2.addItem("Storage",                 "../en-up/storage.htm");
	menu2.addItem("Asset Management",        "../en-up/archive.htm");
	menu2.addItem("Play out",                "../en-up/playout-n.htm");
	menu2.addItem("CG News",                 "../en-up/cgnews.htm");
	menu2.addItem("Prompter",                "../en-up/prompter.htm");
	menu2.addItem("Web Publishing",          "../en-up/webp.htm");
  	menu2.addItem("Shared VTR's Ingest", "../en-up/recpro.htm");
 	menu2.addItem("Hi-lo res conversion", "../en-up/transcoder.htm");
  	menu2.addItem("Lo-hi consolidation", "../en-up/renderfarm.htm");
  	menu2.addItem("XDCAM proxy editor", "../en-up/scenes.htm");
  	menu2.addItem("Engineering and network surveillance", "../en-up/logger.htm");
  	menu2.addItem("External wire feeds", "../en-up/wires.htm");

	var menu3 = ms.addMenu(document.getElementById("mastercontrolroom"));
	menu3.addItem("Advertising",      "../en-up/publi.htm");
	menu3.addItem("Asset Management", "../en-up/archive.htm");
	menu3.addItem("Play out",         "../en-up/playout-m.htm");
	menu3.addItem("Smart playlist",         "../en-up/Scheduling-ing.htm");
	menu3.addItem("CG Logos",         "../en-up/cglogos.htm");
	menu3.addItem("Data Collector",   "../en-up/datacollector.htm");
	menu3.addItem("TV Automation",   "../en-up/tvautomation.htm");
	menu3.addItem("Traffic and Management",   "../en-up/traffic2.htm");

	var menu4 = ms.addMenu(document.getElementById("smartsolutions"));
	menu4.addItem("Legal rec",     "../en-up/legal.htm");
	menu4.addItem("Internet Live", "../en-up/internet.htm");
	menu4.addItem("SMS",           "../en-up/sms.htm");
	menu4.addItem("RSS",           "../en-up/rss.htm");
	menu4.addItem("IP Contribution",           "../en-up/IP-contribution.htm");
	menu4.addItem("Case study vsnIPTransfer",           "../en-up/whitepaper-VSN-eng.pdf");
	menu4.addItem("Case study vsnIPTransfer (portuguese)",           "../en-up/whitepaper-VSN-pt.pdf");

	//var submenu1 = menu1.addMenu(menu1.items[2]);
	//submenu1.addItem("", "");
	//==================================================================================================


	//==================================================================================================
	// 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.
	//==================================================================================================
	TransMenu.renderAll();
}
