/***********************************************
* 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
***********************************************/

//Contents for menu 1 - About Wilson
var menu1=new Array()
menu1[0]='<a href="officer.htm">Corporate Directory</a>'
menu1[1]='<a href="commit.htm">Commitment To Excellence</a>'
menu1[2]='<a href="WilsonMissionStatement.htm">Wilson Mission Statement</a>'
menu1[3]='<a href="download/WilsonMissionStatement.pdf">Wilson Mission Statement - pdf version</a>'
menu1[4]='<a href="about.htm">About Wilson Trucking</a>'

//Contents for menu 2 - Services
var menu2=new Array()
menu2[0]='<a href="fleet.htm">The Wilson Fleet</a>'
menu2[1]='<a href="liftgate.htm">Lift Gate Service</a>'
menu2[2]='<a href="infosys.htm">Information Systems</a>'
menu2[3]='<a href="natlacct.htm">National Account Manager Information</a>'
menu2[4]='<A href="download/pdf.htm">Download Documents</a>'
menu2[5]='<A href="mailto:bidrequest@wilsontrucking.com?Subject=Wilson Trucking Bid Request - Website Link">Bid Request</a>'
menu2[6]='<A href="claims/claims.htm">Freight Claims Information</a>'

//Contents for menu 3 - News
var menu3=new Array()
menu3[0]='<a href="wtvanews.htm">WTVA News</a>'
menu3[1]='<a href="wtvapeople.htm">Wilson People In The News</a>'
menu3[2]='<a href="news/customercomment.htm">What Our Customers Say..</a>'
menu3[3]='<a href="news/terminalofyear.htm">Terminals Of The Year</a>'
menu3[4]='<a href="news/fuelschd.htm">Fuel Surcharge Information</a>'
menu3[5]='<a href="news/fuelhist.htm">Fuel Surcharge History</a>'


//Contents for menu 4 - Contact Us
var menu4=new Array()
menu4[0]='<A href="mailto:traffic@wilsontrucking.com">Pricing / Traffic</A>'
menu4[1]='<A href="mailto:hr@wilsontrucking.com">Human Resources</A>'
menu4[2]='<A href="mailto:safety@wilsontrucking.com">Safety</A>'
menu4[3]='<A href="mailto:csd@wilsontrucking.com">Customer Service</A>'
menu4[4]='<A href="mailto:billing@wilsontrucking.com">Customer Billing</A>'
menu4[5]='<A href="mailto:webmaster@wilsontrucking.com">Web Pages</A>'


//Contents for menu 5 - Downloadable Documents
var menu5=new Array()
menu5[0]='<A href="/download/WilsonSystemMap.pdf">Wilson Trucking System Map</A>'
menu5[1]='<A href="/download/wilsonbol.pdf">Printable Wilson Trucking BOL</A>'
menu5[2]='<A href="/download/WTVA100-N.pdf">Wilson Trucking Corporation Rules Tariff</A>'
menu5[3]='<A href="/download/EmeraldExpeditedServices.pdf">Wilson Trucking Emerald Expedited Services</A>'
menu5[4]='<A href="/download/WilsonTransitTimeMatrix.pdf">Wilson Trucking Transit Times Matrix</A>'
menu5[5]='<A href="/download/WilsonDirectPointsList.pdf">Wilson Trucking Direct Points Listing</A>'
menu5[6]='<A href="/download/VICS_BOL_Blank.pdf">VICS BOL</A>'
menu5[7]='<A href="/download/VICS_BOL_with_fields.pdf">VICS BOL with fields</A>'
menu5[8]='<A href="/documents/WTVAcreditapplicationfields.pdf">Wilson Trucking Corporation Credit Application</A>'
menu5[9]='<A href="/documents/WTVAclaimform.pdf">Wilson Trucking Claim Form</A>'
menu5[10]='<A href="/documents/DOThazmatcert.pdf">Dept. Of Transportation Hazardous Materials Certificate</A>'
menu5[11]='<A href="/documents/certificateofinsurance.pdf">Wilson Trucking Corporation Certificate of Insurance</A>'
menu5[12]='<A href="/download/QuickClearEmb.pdf">Quick Clear Form for U.S. To Canada Shipments</A>'
menu5[13]='<A href="/download/QuickClearInstructions.pdf">Quick Clear Form Instructions for U.S. To Canada Shipments</A>'
menu5[14]='<A href="/download/cdncustinv.pdf">Customs Invoice (CCI) for U.S. To Canada Shipments</A>'
menu5[15]='<A href="/download/cdncertoforigin.pdf">Certificate of Origin for U.S. To Canada Shipments</A>'
menu5[16]='<A href="/download/Commercial_Inv.pdf">Commercial Invoice for Canada To U.S. Shipments</A>'
menu5[17]='<A href="/download/cdncertoforigin.pdf">Certificate of Origin for Canada to U.S. Shipments</A>'
menu5[18]='<A href="/download/HeatedServiceAgreement.pdf">Canadian Heated Service Agreement</A>'

//Contents for menu 6 - Terminals
var menu6=new Array()
menu6[0]='<a href="termlist.htm">Wilson Terminal Listing</a>'
//menu6[1]='<a href="terminal.htm">Terminal Information</a>'

var menuwidth='165px' //default menu width
var menubgcolor='lightyellow'  //menu bgcolor
var disappeardelay=250  //menu disappear speed onMouseout (in miliseconds)
var hidemenu_onclick="yes" //hide menu when user clicks within menu?
var horizontaloffset=0 //horizontal offset of menu from default location. (0-5 is a good value)


/////No further editing needed

var ie4=document.all
var ns6=document.getElementById&&!document.all

if (ie4||ns6)
document.write('<div id="dropmenudiv" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>')

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="-500px"
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){
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)<dropmenuobj.contentmeasure) //up no good either?
edgeoffset=dropmenuobj.y+obj.offsetHeight-topedge
}
}
return edgeoffset
}

function populatemenu(what){
if (ie4||ns6)
dropmenuobj.innerHTML=what.join("")
}


function dropdownmenu(obj, e, menucontents, menuwidth){
if (window.event) event.cancelBubble=true
else if (e.stopPropagation) e.stopPropagation()
clearhidemenu()
dropmenuobj=document.getElementById? document.getElementById("dropmenudiv") : dropmenudiv
populatemenu(menucontents)

if (ie4||ns6){
showhide(dropmenuobj.style, e, "visible", "hidden", menuwidth)
dropmenuobj.x=getposOffset(obj, "left")
dropmenuobj.y=getposOffset(obj, "top")
//dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+"px"
dropmenuobj.style.left=dropmenuobj.x-clearbrowseredge(obj, "rightedge")+horizontaloffset+"px"
dropmenuobj.style.top=dropmenuobj.y-clearbrowseredge(obj, "bottomedge")+obj.offsetHeight+"px"
}

return clickreturnvalue()
}

function clickreturnvalue(){
if (ie4||ns6) return false
else return true
}

function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}

function dynamichide(e){
if (ie4&&!dropmenuobj.contains(e.toElement))
delayhidemenu()
else if (ns6&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhidemenu()
}

function hidemenu(e){
if (typeof dropmenuobj!="undefined"){
if (ie4||ns6)
dropmenuobj.style.visibility="hidden"
}
}

function delayhidemenu(){
if (ie4||ns6)
delayhide=setTimeout("hidemenu()",disappeardelay)
}

function clearhidemenu(){
if (typeof delayhide!="undefined")
clearTimeout(delayhide)
}

if (hidemenu_onclick=="yes")
document.onclick=hidemenu

