var DOM;
var NS4;
var IE4;
var preloadFlag = false;


// PRELOAD FUNCTION
	function init() {
		DOM = (document.getElementById) ? true : false;		// is it a DOM-enabled browser?
		NS4 = (document.layers && !DOM) ? true : false;		// is it a Netscape (NON-DOM) browser?
		IE4 = (document.all && !DOM) ? true : false;		// is it an IE (NON-DOM) browser?
		
		preloadLeftNav();
	}

	function preloadLeftNav() {
		createObject('homeOff', '/shared/images/Layout/NAV/LIST nav_r1_c1.gif');
		createObject('homeOn', '/shared/images/Layout/NAV/LIST nav_r1_c1_f2.gif');
		
		createObject('aboutusOff', '/shared/images/Layout/NAV/LIST nav_r2_c1.gif');
		createObject('aboutusOn', '/shared/images/Layout/NAV/LIST nav_r2_c1_f2.gif');
		
		createObject('newsOff', '/shared/images/Layout/NAV/LIST nav_r3_c1.gif');
		createObject('newsOn', '/shared/images/Layout/NAV/LIST nav_r3_c1_f2.gif');
		
		createObject('whereOff', '/shared/images/Layout/NAV/LIST nav_r4_c1.gif');
		createObject('whereOn', '/shared/images/Layout/NAV/LIST nav_r4_c1_f2.gif');
		
		createObject('quickshipOff', '/shared/images/Layout/NAV/LIST nav_r5_c1.gif');
		createObject('quickshipOn', '/shared/images/Layout/NAV/LIST nav_r5_c1_f2.gif');
		
		createObject('productsOff', '/shared/images/Layout/NAV/LIST nav_r6_c1.gif');
		createObject('productsOn', '/shared/images/Layout/NAV/LIST nav_r6_c1_f2.gif');
		
		createObject('contactOff', '/shared/images/Layout/NAV/LIST nav_r7_c1.gif');
		createObject('contactOn', '/shared/images/Layout/NAV/LIST nav_r7_c1_f2.gif');
		
		createObject('specialsOff', '/shared/images/Layout/NAV/LIST nav_r8_c1.gif');
		createObject('specialsOn', '/shared/images/Layout/NAV/LIST nav_r8_c1_f2.gif');
		
		createObject('EmploymentOff', '/shared/images/LIST employment.gif');
		createObject('EmploymentOn', '/shared/images/LIST employment_f2.gif');
		preloadFlag = true;
	}
	
	
	
// CREATING THE MOUSEOVER IMAGES
	function createObject(imgName,imgSrc) {
		if (DOM) {
			var tempImg = document.createElement("img");
			tempImg.src = imgSrc;
			tempImg.id = imgName;
			tempImg.style.visibility = 'hidden';
			tempImg.style.position = 'absolute';
			tempImg.style.top = 0;
			document.body.appendChild(tempImg);
		} else {
			eval(imgName+' = new Image()');
			eval(imgName+'.src = "'+imgSrc+'"');
		}
	}


// MOUSEOVER SWITCHING
	function changeImage(imgName,imgObj) {
		if (preloadFlag) {
			if (DOM) {
				thisImage = document.getElementById(imgName);
				newImage = document.getElementById(imgObj);
				newSrc = newImage.getAttribute("src");
				thisImage.setAttribute("src",newSrc);
			} else {
				if (NS4 && layer!=null) eval('document.'+layer+'.document.images["'+imgName+'"].src = '+imgObj+'.src')
				else document.images[imgName].src = eval(imgObj+".src")
			}
		}
	}

function popup(url) {
	popName			= "copyright";
	popWidth		= 400;
	popHeight		= 250;
	popResizable	= true;
	popScrollbar	= true;
	popMenubar		= false;
	popToolbar		= false;
	popLocation		= false;
	popStatus		= true;
	
	attribs = "width=" + popWidth + ", height=" + popHeight + ", resizable=" + Number(popResizable) + ", scrollbars=" + Number(popScrollbar) + ", menubar=" + Number(popMenubar) + ", toolbar=" + Number(popToolbar) + ", location=" + Number(popLocation) + ", status=" + Number(popStatus);
	remote = window.open(url,popName,attribs);
	if (remote != null ) { if (remote.opener == null) { remote.opener = self; } }
	remote.focus();
}