function MM_findObj(n, d) { //v4.01 var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) { d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p); } if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&iGoogle // ^URL ^PName ^Width ^Height ^Scrollbars ^Status // Change the above variables to change the URL, Pagename, Width, Height, Scrollbars and Status. function popupWindow(mypage, myname, w, h, scroll, stat) { var winl = (screen.width - w) / 2; var wint = (screen.height - h) / 2; // to add resize functionality to page winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable' winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',status='+stat+'' win = window.open(mypage, myname, winprops) // Put Focus on the Window if the Browser Navigator version is above 4. if (parseInt(navigator.appVersion) >= 4) { win.focus(); } } function openNewWinNoOptions(url,w,h){ myWidth = 800; myHeight = 600; if(url != null){//if url is supplied continue if(w != null){myWidth=w;} //define w if it is not already defined if(h != null){myHeight=h;} //define h if it is not already defined window.open(url,'_blank','width='+ this.myWidth +',height='+this.myHeight+',resizable=no,scrollbars=no'+ ',toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }else{//tell the user that no parameters have been passed. window.alert("No URL specified. - Cannot continue"); } } function openNewWinScroll(url,w,h){ myWidth = 800; myHeight = 600; if(url != null){//if url is supplied continue if(w != null){myWidth=w;} //define w if it is not already defined if(h != null){myHeight=h;} //define h if it is not already defined window.open(url,'_blank','width='+ this.myWidth +',height='+this.myHeight+',resizable=no,scrollbars=yes'+ ',toolbar=no,location=no,directories=no,status=no,menubar=no,copyhistory=no'); }else{//tell the user that no parameters have been passed. window.alert("No URL specified. - Cannot continue"); } } function newWin(url,w,h){ myWidth = 800; myHeight = 600; if(url != null){//if url is supplied continue if(w != null){myWidth=w;} //define w if it is not already defined if(h != null){myHeight=h;} //define h if it is not already defined window.open(url,'_blank','width='+ this.myWidth +',height='+this.myHeight+',resizable=yes,scrollbars=yes'+ ',toolbar=yes,location=yes,directories=yes,status=yes,menubar=yes,copyhistory=yes'); }else{//tell the user that no parameters have been passed. window.alert("No URL specified. - Cannot continue"); } } function turnButtonOn(){ closeTarget("menu_on_rider_rider"); closeTarget("menu_off_road_rider"); closeTarget("menu_scooter_rider"); document.getElementById("but_road_rider").className = "road_bg"; document.getElementById("but_off_road_rider").className = "off_road_bg"; document.getElementById("but_scooter").className = "scooter_bg"; if(turnButtonOn.arguments[0] == "but_road_rider"){ document.getElementById(turnButtonOn.arguments[0]).className = "road_bg_on"; openTarget(turnButtonOn.arguments[1]); }else if(turnButtonOn.arguments[0] == "but_off_road_rider"){ document.getElementById(turnButtonOn.arguments[0]).className = "off_road_bg_on"; openTarget(turnButtonOn.arguments[1]); }else if(turnButtonOn.arguments[0] == "but_scooter"){ document.getElementById(turnButtonOn.arguments[0]).className = "scooter_bg_on"; openTarget(turnButtonOn.arguments[1]); } } //Chrome Drop Down Menu- Author: Dynamic Drive (http://www.dynamicdrive.com) //Last updated: Jan 1st, 06' var cssdropdown={ disappeardelay: 250, //set delay in miliseconds before menu disappears onmouseout //No need to edit beyond here//////////////////////// dropmenuobj: null, ie: document.all, firefox: document.getElementById&&!document.all, getposOffset:function(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset += (offsettype=="left")? parentEl.offsetLeft : parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; }, showhide:function(obj, e, visible, hidden){ if (this.ie || this.firefox) this.dropmenuobj.style.left=this.dropmenuobj.style.top="-500px" if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") obj.visibility=visible else if (e.type=="click") obj.visibility=hidden }, iecompattest:function(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body }, clearbrowseredge:function(obj, whichedge){ var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=this.ie && !window.opera? this.iecompattest().scrollLeft+this.iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetWidth if (windowedge-this.dropmenuobj.x < this.dropmenuobj.contentmeasure) //move menu to the left? edgeoffset=this.dropmenuobj.contentmeasure-obj.offsetWidth } else{ var topedge=this.ie && !window.opera? this.iecompattest().scrollTop : window.pageYOffset var windowedge=this.ie && !window.opera? this.iecompattest().scrollTop+this.iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 this.dropmenuobj.contentmeasure=this.dropmenuobj.offsetHeight if (windowedge-this.dropmenuobj.y < this.dropmenuobj.contentmeasure){ //move up? edgeoffset=this.dropmenuobj.contentmeasure+obj.offsetHeight if ((this.dropmenuobj.y-topedge)");