// 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("canonMenu"));
		menu1.addItem("IV/EOS3", "canon_1v-eos3.html"); 
		menu1.addItem("ID MARK 2N", "id-mark-2n.htm");
		menu1.addItem("CANON MK3", "canon_mk3.html");
		menu1.addItem("5DMK2 and 5D", "canon_5d.html");
		menu1.addItem("7D", "waterhousing-canon-7D.htm");
		menu1.addItem("20D/30D/40D/50D", "canon_20d-30d-40d.html");
		menu1.addItem("300D/350D", "canon_300d-350d.html");
		menu1.addItem("MORE", "more.html");
		//==================================================================================================

		//==================================================================================================
		var menu2 = ms.addMenu(document.getElementById("nikonMenu"));
		menu2.addItem("D2XS/D2HS", "nikon_d2h.html");
		menu2.addItem("D200/D300/D700", "nikon_d200_d300.html");
		menu2.addItem("D80", "nikon_d80.html");
		menu2.addItem("D3", "nikon_d3.html");
		//==================================================================================================

		//==================================================================================================
		var menu3 = ms.addMenu(document.getElementById("videoMenu"));
		menu3.addItem("SONY", "d2xs-d2hs.html");
		menu3.addItem("CANON", "d200.html");
		menu3.addItem("PANASONIC", "d80.html");
		
		var submenu1 = menu3.addMenu(menu3.items[0]);
		submenu1.addItem("HDRV1U", "sony_hdrv1u.htm");
		submenu1.addItem("HDRFX1", "sony_hdrfx1.html");
		submenu1.addItem("HDRHC3", "sony_hdrhc3.html");
		submenu1.addItem("HDRHC38", "sony_hdrhc38.html");
		submenu1.addItem("HDRHC1", "sony_hdrhc1.html");
		submenu1.addItem("FX7 HD", "sony_fx7_HD.html");
		submenu1.addItem("XD CAM EX HD", "sony_XD_EX_HD.html");
		
		var submenu2 = menu3.addMenu(menu3.items[1]);
		submenu2.addItem("GL2", "canon_gl2.html");
		submenu2.addItem("HV10", "canon_hv10.html");
		submenu2.addItem("XH-R1", "canon_xh-r1.html");
		
		var submenu3 = menu3.addMenu(menu3.items[2]);
		submenu3.addItem("AG HVX200", "panasonic_agh.html");
		submenu3.addItem("AG DVX100A", "panasonic_ag.html");	
		submenu3.addItem("AVC HD", "panasonic_AVC_HD.html");
		//==================================================================================================
		
		//==================================================================================================
		var menu4 = ms.addMenu(document.getElementById("16mmMenu"));
		menu4.addItem("MILLICAN HIGH SPEED", "millican_16.html");
		menu4.addItem("BOLEX H16", "bolex_16.html");
		menu4.addItem("PHOTOSONICS 1VN", "photosonics.html");		
		//==================================================================================================
		
		//==================================================================================================
		var menu5 = ms.addMenu(document.getElementById("flashesMenu"));
		menu5.addItem("BOARD FLASH", "boardflash.html");
		menu5.addItem("ON CAMERA FLASH", "oncameraflash.html");
		menu5.addItem("POCKET WIZARD HOUSING", "pocket-wizard-housing.html");		
		//==================================================================================================
		
		//==================================================================================================
		var menu6 = ms.addMenu(document.getElementById("accessoriesMenu"));
		menu6.addItem("REMOTE HAND FLASH", "flashes.html");
		menu6.addItem("GENERAL", "accessories.html");
		menu6.addItem("POLE ATTACHMENT", "camera.html");
		menu6.addItem("HELMET MOUNTS", "helmet.html");
		menu6.addItem("BOARD MOUNTS", "boardmount.html");
		//==================================================================================================

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