/*********************************************** * 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 ProductsMenu = new Array(); ProductsMenu[1]='Catalog'; ProductsMenu[2]='Quick Price'; ProductsMenu[3]='Clearance Items'; ProductsMenu[4]='Green Products List'; ProductsMenu[5]='Product Literature'; ProductsMenu[6]='Moulding Patterns'; var AccountMenu = new Array(); AccountMenu[1] = 'Account Status'; AccountMenu[2] = 'Apply for an Account'; var CustomerMenu = new Array(); CustomerMenu[1]= 'Project Advice Appointment'; CustomerMenu[2]= 'Estimating Services'; CustomerMenu[3]= 'Contractor Sales Team'; CustomerMenu[4]= 'Industrial & Commercial'; CustomerMenu[5]= 'Contractor Clinics & Events'; CustomerMenu[6]= 'Site Help'; CustomerMenu[7]= 'Dunn Lumber Delivers'; CustomerMenu[8]= 'Lumber Packages'; CustomerMenu[9]= 'Engineered Truss Manufacturing'; CustomerMenu[10]= 'Windows'; CustomerMenu[11]= 'Siding Installation Services'; 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] = 'Trussworks'; LocationsMenu[15] = 'Pacific Siding Company'; var ResourcesMenu = new Array(); ResourcesMenu[1] = 'Related Links'; ResourcesMenu[2] = 'Dunn Newsletter'; ResourcesMenu[3] = 'Ad Archive'; ResourcesMenu[4] = 'Moulding Patterns'; ResourcesMenu[5] = 'Abbreviations'; ResourcesMenu[6] = 'Dunn Logos'; ResourcesMenu[7] = 'Vendor Support'; var CompanyMenu = new Array(); CompanyMenu[1] ='About Dunn Lumber'; CompanyMenu[2] ='The Dunn Family'; CompanyMenu[3] ='Community Support'; var GreenTeamMenu = new Array(); GreenTeamMenu[1] = 'Green Products'; GreenTeamMenu[2] = 'Green Policy'; GreenTeamMenu[3] = 'Wood is Good'; GreenTeamMenu[4] = 'Green Fleet'; 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(); } /********************************* * * End of drop down defs * **********************************/ var menuwidth='100px' //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)