/*********************************************** * AnyLink Drop Down Menu- © Dynamic Drive (www.dynamicdrive.com) * This notice MUST stay intact for legal use * Visit http://www.dynamicdrive.com/ for full source code * * This code has been modified from the orginal source code obtained from * the source mentioned above. ***********************************************/ /************************************** * This section defines the links in the drop downs * * * ***************************************/ var MyDunnMenu = new Array(); MyDunnMenu[1] = 'Apply/Reactivate Account'; MyDunnMenu[2] = 'Login to My Account'; MyDunnMenu[3] = 'About The Portal'; var LocationsMenu = new Array(); LocationsMenu[1] = 'Store Hours'; LocationsMenu[2] = 'Bellevue'; LocationsMenu[3] = 'Everett'; LocationsMenu[4] = 'Kirkland'; LocationsMenu[5] = 'Lynnwood'; LocationsMenu[6] = 'Marysville'; LocationsMenu[7] = 'Normandy Park'; LocationsMenu[8] = 'Greenlake (Olson Lumber)'; LocationsMenu[9] = 'Renton'; LocationsMenu[10] = 'Shoreline'; LocationsMenu[11] = 'Seattle'; LocationsMenu[12] = 'Boulevard Park'; LocationsMenu[13] = 'Parker Lumber East'; LocationsMenu[14] = 'Pacific Siding Company'; var CustomerMenu = new Array(); CustomerMenu[1]= 'Project Advice Appointment'; CustomerMenu[2]= 'Contractor Clinics & Events'; CustomerMenu[3]= 'Contractor Sales Team'; CustomerMenu[4]= 'Industrial & Commercial'; CustomerMenu[5] = 'Apply for an Account'; var ServicesMenu = new Array(); ServicesMenu[1]= 'Estimating Services'; ServicesMenu[2]= 'Door Shop'; ServicesMenu[3]= 'Dunn Lumber Delivers'; ServicesMenu[4]= 'Lumber Packages'; ServicesMenu[5]= 'Siding Installation Services'; var ProductMenu = new Array(); ProductMenu[1]='Product Catalog'; ProductMenu[2]='Clearance Items'; ProductMenu[3]= 'Windows'; ProductMenu[4]='Green Products'; ProductMenu[5]='Moulding Patterns'; var ResourcesMenu = new Array(); ResourcesMenu[1] = 'Related Links'; ResourcesMenu[2] = 'Dunn Newsletter'; ResourcesMenu[3]='Moulding Patterns'; ResourcesMenu[4] = 'Ad Archive'; ResourcesMenu[6] = 'Dunn Logos'; ResourcesMenu[7] = 'Vendor Support'; var GreenTeamMenu = new Array(); GreenTeamMenu[1] = 'Green Products'; GreenTeamMenu[2] = 'Green Policy'; GreenTeamMenu[3] = 'Wood is Good'; GreenTeamMenu[4] = 'Green Fleet'; var CompanyMenu = new Array(); CompanyMenu[1] ='About Dunn Lumber'; CompanyMenu[2] ='The Dunn Family'; CompanyMenu[3] ='Community Support'; var JobsMenu = new Array(); JobsMenu[1] = 'Job Opportunitites'; JobsMenu[2] = 'Application Form'; JobsMenu[3] = 'Apply on line'; function OpenNewJobApp(JobId, JobsURL) { if (JobId) { var u ='application/?action=new&id='+JobId; }else{ var u ='application/?action=new&nojob=1'; } if (JobsURL) { u =JobsURL+u; } var o = 'scrollbars=yes,resizable=yes,width=800,height=500'; var w = window.open(u,'Application',o); w.focus(); } // REMOVE ?? var xxMenu = new Array(); xxMenu[6]= 'Site Help'; xxMenu[1]='Catalog'; xxMenu[2]='Quick Price'; var AccountMenu = new Array(); AccountMenu[1] = 'Account Status'; /********************************* * * End of drop down defs * **********************************/ var menuwidth='120px' //default menu width var menubgcolor='#0055A4' //menu bgcolor var menuactivecolor = '#0055A4'; var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? var MenuObjRestoreStyle = false; // stores style of menu obj var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) { document.write('') } function getposOffset(what, offsettype){ var totaloffset=(offsettype=="left")? what.offsetLeft : what.offsetTop; var parentEl=what.offsetParent; while (parentEl!=null){ totaloffset=(offsettype=="left")? totaloffset+parentEl.offsetLeft : totaloffset+parentEl.offsetTop; parentEl=parentEl.offsetParent; } return totaloffset; } function showhide(obj, e, visible, hidden, menuwidth){ if (ie4||ns6) { dropmenuobj.style.left=dropmenuobj.style.top="50px" } if (menuwidth!=""){ dropmenuobj.widthobj=dropmenuobj.style dropmenuobj.widthobj.width=menuwidth } if (e.type=="click" && obj.visibility==hidden || e.type=="mouseover") { obj.visibility=visible; }else if (e.type=="click"){ obj.visibility=hidden } } function iecompattest(){ return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body } function clearbrowseredge(obj, whichedge){ return 0;// so the menu will not reposition to avoid windows edge var edgeoffset=0 if (whichedge=="rightedge"){ var windowedge=ie4 && !window.opera? iecompattest().scrollLeft+iecompattest().clientWidth-15 : window.pageXOffset+window.innerWidth-15 dropmenuobj.contentmeasure=dropmenuobj.offsetWidth if (windowedge-dropmenuobj.x < dropmenuobj.contentmeasure) edgeoffset=dropmenuobj.contentmeasure-obj.offsetWidth }else{ var topedge=ie4 && !window.opera? iecompattest().scrollTop : window.pageYOffset var windowedge=ie4 && !window.opera? iecompattest().scrollTop+iecompattest().clientHeight-15 : window.pageYOffset+window.innerHeight-18 dropmenuobj.contentmeasure=dropmenuobj.offsetHeight if (windowedge-dropmenuobj.y < dropmenuobj.contentmeasure){ //move up? edgeoffset=dropmenuobj.contentmeasure+obj.offsetHeight if ((dropmenuobj.y-topedge)