// (c) Ger Versluis 2000-2004 version 7.00, July 17, 2004 // You may use this script on non commercial sites // www.burmees.nl/menu/ // Globals effecting all menus var PopNoOffMenus=1; // number of seperate menus var BaseHref=""; // Root of the site var PopRClick=0; // Defines which menu reacts on right click. 0=none var LastMenuID=-1; var LastMenuObj=null; var PopMenuSlide=""; var PopMenuShadow=""; var PopMenuShadow="progid:DXImageTransform.Microsoft.DropShadow(color=#888888, offX=2, offY=2, positive=1)"; var PopMenuShadow="progid:DXImageTransform.Microsoft.Shadow(color=#888888, direction=135, strength=3)"; var PopMenuOpacity=""; function P_BeforeStart(){return} function P_AfterBuild(){return} function P_BeforeFirstOpen(){return} function P_AfterCloseAll(){ if (LastMenuObj!=null) { ChangeTD(LastMenuObj,0,-1); } return; } // Globals effecting one menu // Notation of PopMenu1 is different from PopMenu2. The result is the same. PopMenu1 is more understandable. PopMenu2 loads faster. PopMenu1=new Array(6,0,21,"#ffffff","#66B1D6","#ffffff","#007DBB","#ffffff","arial",0,0,13,0,0,1,"left",.25,.25,1000,0,"Menu2",1,"left","top","",5,10,"",10,5,"",5,10,3,4,0); PopMenu1_1=new Array("Terms & Conditions","http://www.flowmetersdirect.co.uk/customer_service_terms.htm","",0,25,150,"","","","","","",-1,-1,-1,"left",""); PopMenu1_2=new Array("Returns Policy","http://www.flowmetersdirect.co.uk/customer_service_returns.htm","",0,25,150,"","","","","","",-1,-1,-1,"left",""); PopMenu1_3=new Array("Privacy Policy","http://www.flowmetersdirect.co.uk/customer_service_privacy.htm","",0,25,150,"","","","","","",-1,-1,-1,"left",""); PopMenu1_4=new Array("Delivery & Payment","http://www.flowmetersdirect.co.uk/customer_service_delivery.htm","",0,25,150,"","","","","","",-1,-1,-1,"left",""); PopMenu1_5=new Array("How to Place an Order","http://www.flowmetersdirect.co.uk/customer_service_how_order.htm","",0,25,150,"","","","","","",-1,-1,-1,"left",""); PopMenu1_6=new Array("Contact Us","http://www.flowmetersdirect.co.uk/contact_us.htm","",0,25,150,"","","","","","",-1,-1,-1,"left",""); // ********************* My Code Is Below ********************* // var canHideHome=true; var lastMenuID=0; function ResetMainTD() { //window.status = "lastMenuID = " + lastMenuID + " - SelectedMenuID = " + SelectedMenuID; if (lastMenuID!=SelectedMenuID) { var obj=document.getElementById("TDMenu"+lastMenuID); if (obj!=null) { obj.style.backgroundColor="#66B1D6"; //obj.style.color="#007DBB"; } } } function ChangeMainTD(obj,status) { //SelectedMenuID=parseInt(obj.id.charAt(obj.id.length-1)); obj.style.backgroundColor=(status==1)?'#007DBB':"#66B1D6"; //obj.style.color=(status==1)?"#FFFFFF":"#095AA6"; }