// JavaScript Document

	// 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 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 TransMenuSet(TransMenu.direction.down, 1, 0, TransMenu.reference.bottomLeft);

		//==================================================================================================
		// create a dropdown menu
		//==================================================================================================
		// the first parameter should be the HTML element which will act actuator for the menu
		//==================================================================================================
var menu1 = ms.addMenu(document.getElementById("networking"));
menu1.addItem("<font face=sans-serif size=1 color=#ffffff >Overview</font>", "/radix.php?node=networking");
menu1.addItem("<font face=sans-serif size=1 color=#ffffff >BGP Multihoming Jumpstart</font>", "/radix.php?node=networking&key=bgp");
menu1.addItem("<font face=sans-serif size=1 color=#ffffff >Network Builder</font>", "/radix.php?node=networking&key=netbuilder");
menu1.addItem("<font face=sans-serif size=1 color=#ffffff >Managed Router</font>", "/radix.php?node=networking&key=manrouter");
menu1.addItem("<font face=sans-serif size=1 color=#ffffff >Managed Autonomous System</font>", "/radix.php?node=networking&key=manas");
menu1.addItem("<font face=sans-serif size=1 color=#ffffff >IP Config Review</font>", "/radix.php?node=networking&key=confrev");
menu1.addItem("<font face=sans-serif size=1 color=#ffffff >IP Professional Services</font>", "/radix.php?node=networking&key=prof");
menu1.addItem("<font face=sans-serif size=1 color=#ffffff >inet6 RapidDeploy</font>", "/radix.php?node=networking&key=inet6");

		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("inet"));
menu2.addItem("<font face=sans-serif size=1 color=#ffffff >Overview</font>", "/radix.php?node=inet");
menu2.addItem("<font face=sans-serif size=1 color=#ffffff >Managed IP Bandwidth</font>", "/radix.php?node=inet&key=mantransit");
menu2.addItem("<font face=sans-serif size=1 color=#ffffff >IP Bandwidth</font>", "/radix.php?node=inet&key=transit");
menu2.addItem("<font face=sans-serif size=1 color=#ffffff >Boston Colocation</font>", "/radix.php?node=inet&key=colo");
menu2.addItem("<font face=sans-serif size=1 color=#ffffff >Data Transport</font>", "/radix.php?node=inet&key=transport");
		
		
		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("webhosting"));
menu3.addItem("<font face=sans-serif size=1 color=#ffffff >EasyColo&trade; Smart Business Colocation</font>", "/easycolo");
		

		var menu4 = ms.addMenu(document.getElementById("support"));
menu4.addItem("<font face=sans-serif size=1 color=#ffffff >Customer Support</font>", "/radix.php?node=support");
	
		var menu5 = ms.addMenu(document.getElementById("company"));
menu5.addItem("<font face=sans-serif size=1 color=#ffffff >Overview</font>", "/radix.php?node=company");
menu5.addItem("<font face=sans-serif size=1 color=#ffffff >Contact Us</font>", "/radix.php?node=company&key=contact");
 // menu5.addItem("<font face=sans-serif size=1 color=#ffffff >Our Customers</font>", "/radix.php?node=company&key=customers");
menu5.addItem("<font face=sans-serif size=1 color=#ffffff >News</font>", "/radix.php?node=company&key=news");
menu5.addItem("<font face=sans-serif size=1 color=#ffffff >Channel Partner Programs</font>", "/radix.php?node=company&key=partnering");
menu5.addItem("<font face=sans-serif size=1 color=#ffffff >Job Oppurtunities</font>", "/radix.php?node=company&key=employment");
menu5.addItem("<font face=sans-serif size=1 color=#ffffff >Investor Relations</font>", "/radix.php?node=company&key=investors");
menu5.addItem("<font face=sans-serif size=1 color=#ffffff >Network Acceptable Use Policy</font>", "/radix.php?node=company&key=aup");


		//==================================================================================================

		//==================================================================================================
		// 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();
	}
