
 /* 
			START IE hack to instantiate menus
		*/

		function onLoadIE(strMenuColour, strMenuHiliteColour, strMenuBorderColour) {
		
			//alert('function: onLoadIE')
			
			loadMenus(strMenuColour, strMenuHiliteColour, strMenuBorderColour);
		}

		/* 
			END IE hack to instantiate menus
		*/
		
		/*
			START Common Scripts
		*/
		
		function imageSwap(daImage, daSrc){
			var objStr,obj;
			if(document.images){
				if (typeof(daImage) == 'string') {
					objStr = 'document.' + daImage;
					obj = eval(objStr);
					obj.src = daSrc;
				} else if ((typeof(daImage) == 'object') && daImage && daImage.src) {
					daImage.src = daSrc;
				}
			}
		}

		function WM_preloadImages() {
			// Don't bother if there's no document.images
			if (document.images) {
				if (typeof(document.WM) == 'undefined'){
					document.WM = new Object();
				}
				document.WM.loadedImages = new Array();
				// Loop through all the arguments.
				var argLength = WM_preloadImages.arguments.length;
				for(arg=0;arg<argLength;arg++) {
					// For each arg, create a new image.
					document.WM.loadedImages[arg] = new Image();
					// Then set the source of that image to the current argument.
					document.WM.loadedImages[arg].src = WM_preloadImages.arguments[arg];
				}
			}
		}
		
		function ShowLayer(LayerName,LeftPos,TopPos){
			if (is.nav4){
				document.layers[LayerName].left = LeftPos;
				document.layers[LayerName].top = TopPos;
				document.layers[LayerName].visibility = "show";
			}else if(is.nav6up){
				document.getElementById(LayerName).style.left = LeftPos;
				document.getElementById(LayerName).style.top = TopPos;
				document.getElementById(LayerName).style.visibility = "visible";
			}else{
				document.all[LayerName].style.pixelLeft = LeftPos;
				document.all[LayerName].style.pixelTop = TopPos;
				document.all[LayerName].style.visibility = "visible";
			}
		}
		
	
		/*
			END Common Scripts
		*/

		/* 
			START Menu Definitions
		*/
				
		function loadMenus(strMenuColour, strMenuHiliteColour, strMenuBorderColour) {
		
			//alert('function: loadmenus');
			    
		    var strItemBgColor
		    var strLiteBgColor
		    
		    strItemBgColor = strMenuColour;
		    strLiteBgColor = strMenuHiliteColour;
		    
		    //About ArginMax
			window.menu_About = new Menu();

			menu_About.addMenuItem("<IMG src=images/SubMnu_Contains_.gif>", "location.href='latest.asp?chse_id=1';");
			menu_About.addMenuItem("<IMG src=images/SubMnu_DoesWhat_.gif>", "location.href='latest.asp?chse_id=2';");
			menu_About.addMenuItem("<IMG src=images/SubMnu_ForMen_.gif>", "location.href='latest.asp?chse_id=3';");
			menu_About.addMenuItem("<IMG src=images/SubMnu_ForWomen_.gif>", "location.href='latest.asp?chse_id=4';");
			menu_About.addMenuItem("<IMG src=images/SubMnu_HowtoTake_.gif>", "location.href='latest.asp?chse_id=5';");
			menu_About.addMenuItem("<IMG src=images/SubMnu_WhocanTake.gif>", "location.href='latest.asp?chse_id=6';");
			
			menu_About.menuItemBorder = 2;
			menu_About.menuItemBgColor = strItemBgColor;
			menu_About.menuLiteBgColor = strLiteBgColor;
			menu_About.menuBorderBgColor = strMenuBorderColour;
			menu_About.menuHiliteBgColor = strLiteBgColor;
			menu_About.bgColor = strLiteBgColor;
			menu_About.disableDrag = true;
			menu_About.menuItemWidth = 162;
			menu_About.menuItemHeight = 23;
			
			//Scientific Evidence
			window.menu_Scientific = new Menu();
			menu_Scientific.addMenuItem("<IMG src=images/SubMnu_Intro.gif>", "location.href='latest.asp?chse_id=14';");
			menu_Scientific.addMenuItem("<IMG src=images/SubMnu_TrialsWomen.gif>", "location.href='latest.asp?chse_id=7';");
			menu_Scientific.addMenuItem("<IMG src=images/SubMnu_TrialsMen.gif>", "location.href='latest.asp?chse_id=8';");
			menu_Scientific.addMenuItem("<IMG src=images/SubMnu_TrialsOther.gif>", "location.href='latest.asp?chse_id=28';");
			
			menu_Scientific.menuItemBorder = 2;
			menu_Scientific.menuItemBgColor = strItemBgColor;
			menu_Scientific.menuLiteBgColor = strLiteBgColor;
			menu_Scientific.menuBorderBgColor = strMenuBorderColour;
			menu_Scientific.menuHiliteBgColor = strLiteBgColor;
			menu_Scientific.bgColor = strLiteBgColor;
			menu_Scientific.disableDrag = true;
			menu_Scientific.menuItemWidth = 162;
			menu_Scientific.menuItemHeight = 23;

			//menu_Testimonials
			window.menu_Testimonials = new Menu();

			menu_Testimonials.addMenuItem("<IMG src=images/SubMnu_FromMen.gif>", "location.href='latest.asp?chse_id=9';");
			menu_Testimonials.addMenuItem("<IMG src=images/SubMnu_FromWomen.gif>", "location.href='latest.asp?chse_id=10';");
			menu_Testimonials.addMenuItem("<IMG src=images/SubMnu_FromProfs.gif><br>", "location.href='latest.asp?chse_id=11';");
			
			menu_Testimonials.menuItemBorder = 2;
			menu_Testimonials.menuItemBgColor = strItemBgColor;
			menu_Testimonials.menuLiteBgColor = strLiteBgColor;
			menu_Testimonials.menuBorderBgColor = strMenuBorderColour;
			menu_Testimonials.menuHiliteBgColor = strLiteBgColor;
			menu_Testimonials.bgColor = strLiteBgColor;
			menu_Testimonials.disableDrag = true;
			menu_Testimonials.menuItemWidth = 162;
			menu_Testimonials.menuItemHeight = 23;

			//Press
			window.menu_Press = new Menu();
			
			menu_Press.addMenuItem("<IMG src=images/SubMnu_Press.gif>", "location.href='latest.asp?chse_id=12';");
			
			menu_Press.menuItemBorder = 2;
			menu_Press.menuItemBgColor = strItemBgColor;
			menu_Press.menuLiteBgColor = strLiteBgColor;
			menu_Press.menuBorderBgColor = strMenuBorderColour;
			menu_Press.menuHiliteBgColor = strLiteBgColor;
			menu_Press.bgColor = strLiteBgColor;
			menu_Press.disableDrag = true;
			menu_Press.menuItemWidth = 162;
			menu_Press.menuItemHeight = 23;
			
			//Buy ArginMax
			window.Buy_ArginMax = new Menu();

			Buy_ArginMax.addMenuItem("<IMG src=images/SubMnu_Buy.gif>", "location.href='onlineStore1.asp';");
			Buy_ArginMax.addMenuItem("<IMG src=images/SubMnu_Store.gif>", "location.href='locator.asp';");
			Buy_ArginMax.addMenuItem("<IMG src=images/SubMnu_Coupons.gif>", "location.href='latest.asp?chse_id=42';");
			Buy_ArginMax.addMenuItem("<IMG src=images/SubMnu_Offers.gif>", "location.href='latest.asp?chse_id=22';");
			Buy_ArginMax.addMenuItem("<IMG src=images/SubMnu_Guarantee.gif>", "location.href='latest.asp?chse_id=24';");
			
			Buy_ArginMax.menuItemBorder = 2;
			Buy_ArginMax.menuItemBgColor = strItemBgColor;
			Buy_ArginMax.menuLiteBgColor = strLiteBgColor;
			Buy_ArginMax.menuBorderBgColor = strMenuBorderColour;
			Buy_ArginMax.menuHiliteBgColor = strLiteBgColor;
			Buy_ArginMax.bgColor = strLiteBgColor;
			Buy_ArginMax.disableDrag = true;
			Buy_ArginMax.menuItemWidth = 162;
			Buy_ArginMax.menuItemHeight = 23;

				//Tell Your Friends
			window.Tell_Friends = new Menu();

			Tell_Friends.addMenuItem("<IMG src=images/SubMnu_Joke.gif>", "location.href='latest.asp?chse_id=26';");
			Tell_Friends.addMenuItem("<IMG src=images/SubMnu_Steps.gif>", "location.href='latest.asp?chse_id=23';");
			Tell_Friends.addMenuItem("<IMG src=images/SubMnu_Links.gif>", "location.href='latest.asp?chse_id=25';");
			
			Tell_Friends.menuItemBorder = 2;
			Tell_Friends.menuItemBgColor = strItemBgColor;
			Tell_Friends.menuLiteBgColor = strLiteBgColor;
			Tell_Friends.menuBorderBgColor = strMenuBorderColour;
			Tell_Friends.menuHiliteBgColor = strLiteBgColor;
			Tell_Friends.bgColor = strLiteBgColor;
			Tell_Friends.disableDrag = true;
			Tell_Friends.menuItemWidth = 162;
			Tell_Friends.menuItemHeight = 23;

			//Instantiate menus
			menu_About.writeMenus();
		}		
	
		/* 
			END Menu Definitions
		*/
	

