<!-- hide JavaScript code from browsers that are not JavaScript enabled

var v5;
var active;
if (document.images) { // if browser supports images
//Preload menu images
//Define on and off images, first off state, second on state...
imgsrc = new Array(
	'images/home_09.gif','images/homeHi_09.gif',
	'images/home_21.gif','images/homeHi_21.gif',
	'images/home_30.gif','images/homeHi_30.gif',
	'images/home_33.gif','images/homeHi_33.gif',
	'images/home_42.gif','images/homeHi_42.gif',
	'images/home_45.gif','images/homeHi_45.gif'
);
//Convert imgsrc array to img objects
hizzimage = new Array();
for(i=0; i<imgsrc.length; i++)
{	
	hizzimage[i] = new Image();
	hizzimage[i].src = prefix + imgsrc[i];
}

function MouseOn(num, imageName) 
{
	if (document.images)
	{	
		document.images[imageName].src = hizzimage[num].src;
	}
} //end function MouseOn

function MouseOff(num, imageName) 
{
	if (document.images) 
	{ // if browser supports images
		document.images[imageName].src = hizzimage[num].src;
	}
} // end function MouseOff

function randDisplay()
{
	num=Math.round(Math.random()*3);
	img = new Image();
	source = 'images/front' + num + '.gif';
	img.src = source;

	imageName = 'frontimage';
	document.images[imageName].src = img.src;
}
}
//end hiding of JavaScript code -->

function sniff()
{
	v5 = (document.getElementById) ? "true" : "false";
}

//function hideAllLayers()
//{
//	if(v5)
//	{	
//		element = document.getElementById('aboutusID');
//		element.style.visibility = 'hidden';
//	}
//	else
//	{
//		document[aboutusLayer].visibility = 'hidden';
//	}
//}

function showLayer(button)
{
	if(v5)
	{
		document.getElementById(button + 'ID').style.visibility = 'visible';
	}
	else
	{
		document[button + 'Layer'].visibility = 'visible';
	}
}

function hideLayer(button)
{
	if(v5)
	{
		document.getElementById(button + 'ID').style.visibility = 'hidden';
	}
	else
	{
		document[button + 'Layer'].visibility = 'hidden';
	}
}

function loginPop()
{
	window.open(prefix+'customer/login.html','Login','height=150,width=300,directories=false,left=400,top=200');
}
	
