function toggleDisplay(b){var a=document.getElementById(b);if(a.style.display==""){a.style.display="none"}else{a.style.display=""}}function setDisplay(b,a){document.getElementById(b).style.display=a}var checkDateTimeAjax=new AJAXConnection();function checkDateTimeComplete(a){document.getElementById("ContactUsDateTime").innerHTML=a}function checkDateTime(){checkDateTimeAjax.startDownload("/Dynamic/Time/Time.cfm",checkDateTimeComplete)}if(window.attachEvent){window.attachEvent("onload",checkDateTime)}else{if(window.addEventListener){window.addEventListener("load",checkDateTime,true)}else{setTimeout(checkDateTime,500)}}setInterval(checkDateTime,60000);var latLongs={};function addLatLong(c,b,a){latLongs[c]={};latLongs[c].latitude=b;latLongs[c].longitude=a}function MapSystem(k,c,j,g,f,b,i,h,d,e,a){this.mapImageOverlay=k;this.mapImageWidth=c;this.mapImageHeight=j;this.pointerWidthCenter=e;this.pointerHeightCenter=a;this.latitude={};this.latitude.top=g;this.latitude.bottom=f;this.totalLatitude=f-g;this.longitude={};this.longitude.top={};this.longitude.bottom={};this.longitude.top.left=b;this.longitude.top.right=i;this.longitude.bottom.left=h;this.longitude.bottom.right=d;this.topLongitude=i-b;this.bottomLongitude=d-h}MapSystem.prototype.calculateCoordinates=function(f,e){var b={};var d=this.mapImageWidth/this.topLongitude;var a=(f-this.latitude.top)/this.totalLatitude;b.top=Math.round(a*this.mapImageHeight);y1=this.latitude.top-f;y2=this.latitude.top-this.latitude.bottom;x1=((e-this.longitude.top.left)/this.topLongitude);x2=((e-this.longitude.bottom.left)/this.bottomLongitude);x3=x2-x1;d1=Math.atan(x3/y2);x5=y1*Math.tan(d1);b.left=Math.round((x5*this.longitude.top.left+e-this.longitude.top.left)*d);var c=(x1*(1-a))+(x2*(a));b.left=Math.round(c*this.mapImageWidth);return b};MapSystem.prototype.setLocation=function(c,b){if(c!=0){var a=this.calculateCoordinates(c,b);this.mapImageOverlay.style.top=(a.top-this.pointerHeightCenter)-this.mapImageHeight+"px";this.mapImageOverlay.style.left=(a.left-this.pointerWidthCenter)+"px";this.mapImageOverlay.style.visibility="visible"}else{this.mapImageOverlay.style.visibility="hidden"}};MapSystem.prototype.doLocation=function(a){this.setLocation(latLongs[a].latitude,latLongs[a].longitude)};function displayImage(c){var a=document.getElementById("mainHeaderImage1").style;var b=document.getElementById("mainHeaderImage2").style;var d=document.getElementById("mainHeaderImage3").style;switch(c){case 1:b.display="none";d.display="none";a.display="block";break;case 2:a.display="none";d.display="none";b.display="block";break;case 3:a.display="none";b.display="none";d.display="block";break}};

