initNav = function() {
		var navRoot = document.getElementById("main-nav");
		var lis = navRoot.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
			lis[i].onmouseover = function()
			{
				this.className += " hover";
			}
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
}
if (window.attachEvent && !window.opera)
	attachEvent("onload", initNav);

initNav = function() {
		var navRoot = document.getElementById("left-nav");
		var lis = navRoot.getElementsByTagName("li");
		for (var i=0; i<lis.length; i++)
		{
			lis[i].onmouseover = function()
			{
				this.className += " hover";
			}
			lis[i].onmouseout = function()
			{
				this.className = this.className.replace(" hover", "");
			}
		}
}
if (window.attachEvent && !window.opera)
	attachEvent("onload", initNav);

function detectSafari(){ 
	if (navigator.appVersion.indexOf("Safari") != -1) document.body.className += " safari"; 
}

if (window.addEventListener) 
   window.addEventListener("load", detectSafari, false);
	 
// Preload Menu Images
pic1= new Image(); 
pic1.src="http://www.beckertransportation.com/assets/templates/site/images/bg-hover.gif";
pic2= new Image(); 
pic2.src="http://www.beckertransportation.com/assets/templates/site/images/bg-sub-nav.gif";


