	var mac_firefox = false;

 	function init(test_for_mac_firefox) {
		//==========================================================================================
		// if supported, initialize TransMenus
		//==========================================================================================
		// Check isSupported() so that menus aren't accidentally sent to non-supporting browsers.
		// This is better than server-side checking because it will also catch browsers which would
		// normally support the menus but have javascript disabled.
		//
		// If supported, call initialize() and then hook whatever image rollover code you need to do
		// to the .onactivate and .ondeactivate events for each menu.
		//==========================================================================================

		if (test_for_mac_firefox) {
			// firefox for mac hack -- turns off slider menu
			var ua = navigator.userAgent.toLowerCase();
			if (ua.indexOf("macintosh")>0 && ua.indexOf("firefox")>0) mac_firefox = true;
		}

		if (TransMenu.isSupported() && mac_firefox==false) {
			TransMenu.initialize();

			// hook all the highlight swapping of the main toolbar to menu activation/deactivation
			// instead of simple rollover to get the effect where the button stays hightlit until
			// the menu is closed.
			menu1.onactivate = function() { document.getElementById("menu_1").className = "menu_main the_school_over"; };
			menu1.ondeactivate = function() { document.getElementById("menu_1").className = "menu_main the_school"; };

			menu2.onactivate = function() { document.getElementById("menu_2").className = "menu_main winter_term_over"; };
			menu2.ondeactivate = function() { document.getElementById("menu_2").className = "menu_main winter_term"; };

			menu3.onactivate = function() { document.getElementById("menu_3").className = "menu_main summer_course_over"; };
			menu3.ondeactivate = function() { document.getElementById("menu_3").className = "menu_main summer_course"; };

			menu4.onactivate = function() { document.getElementById("menu_4").className = "menu_main career_planning_over"; };
			menu4.ondeactivate = function() { document.getElementById("menu_4").className = "menu_main career_planning"; };
			
			menu5.onactivate = function() { document.getElementById("menu_5").className = "menu_main parents_over"; };
			menu5.ondeactivate = function() { document.getElementById("menu_5").className = "menu_main parents"; };
			
			menu6.onactivate = function() { document.getElementById("menu_6").className = "menu_main alumni_over"; };
			menu6.ondeactivate = function() { document.getElementById("menu_6").className = "menu_main alumni"; };
			
			menu7.onactivate = function() { document.getElementById("menu_7").className = "menu_main supporting_sab_over"; };
			menu7.ondeactivate = function() { document.getElementById("menu_7").className = "menu_main supporting_sab"; };
			
			menu8.onactivate = function() { document.getElementById("menu_8").className = "menu_main news_events_over"; };
			menu8.ondeactivate = function() { document.getElementById("menu_8").className = "menu_main news_events"; };
			
			menu9.onactivate = function() { document.getElementById("menu_9").className = "menu_main store_over"; };
			menu9.ondeactivate = function() { document.getElementById("menu_9").className = "menu_main store"; };
			
			menu10.onactivate = function() { document.getElementById("menu_10").className = "menu_main contact_us_over"; };
			menu10.ondeactivate = function() { document.getElementById("menu_10").className = "menu_main contact_us"; };
		}
	}

	// 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() && mac_firefox==false) {

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

		menu1.addItem("What Motivates Us?", "/about/us.php");

		menu1.addItem("What Motivates You?", "/about/you.php");

		menu1.addItem("Who Aren't Our Clients?", "/about/who_arent_our_clients.php");

		menu1.addItem("Working with Byte Studios", "/about/workingwithbyte.php");

		menu1.addItem("Byte Studios Team", "/about/team.php");

		menu1.addItem("Employment Opportunities", "/about/employment.php");

		menu1.addItem("--------------------", "/about/");

		menu1.addItem("Contact", "/about/contact.php");

		menu1.addItem("Request a Proposal", "/about/requestaproposal.php");
		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("menu_2"));

		menu2.addItem("Web Site Design and Programming", "/services/webdesign/");

		menu2.addItem("Web Application Development", "/services/webapplication/");

		menu2.addItem("E-Commerce", "/services/ecommerce/");

		menu2.addItem("E-Marketing", "/services/emarketing/");

		menu2.addItem("Flash / Data Development", "/services/flashdevelopment/");

		menu2.addItem("iPhone Development", "/services/iphone/");

		menu2.addItem("Video / Multimedia", "/services/video_multimedia/");

		menu2.addItem("CD-Rom Development", "/services/cdromdevelopment/");

		menu2.addItem("Site Hosting / Advanced Statistics", "/services/hosting/");

		menu2.addItem("--------------------", "/services/");

		menu2.addItem("Web Services for Non-Profits", "/services/fornonprofits.php");

		menu2.addItem("Web Services for Retail", "/services/forretail.php");

		menu2.addItem("Web Services for Small Business", "/services/forsmallbusiness.php");

		menu2.addItem("Web Services for Corporations", "/services/forcorporations.php");
		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("menu_3"));

		menu3.addItem("Byte Professional CMS", "/bytecms/professionalcontentmanagement/");

		menu3.addItem("Byte Enterprise CMS", "/bytecms/enterprisecontentmanagement/");

		menu3.addItem("Byte CMS Modules", "/bytecms/modules/");

		menu3.addItem("Byte CMS Dashboard", "/bytecms/dashboard.php");

		menu3.addItem("--------------------", "/bytecms/");

		menu3.addItem("E-Commerce Content Management", "/bytecms/ecommerce.php");

		menu3.addItem("PR / Press Content Management", "/bytecms/pr.php");

		menu3.addItem("E-Newsletter Content Management", "/bytecms/enewsletter.php");
		//==================================================================================================

		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("menu_4"));

		menu4.addItem("Case Studies", "/clients/case_studies/");

		menu4.addItem("Portfolio", "/clients/portfolio/");

		menu4.addItem("Testimonials", "/clients/testimonials.php");
		//==================================================================================================

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