// JavaScript Document
if (document.images)
{
		//LEFT NAVIGATION
	
	homeon = new Image(144, 30);
	homeon.src = "images/home_on.gif";
	homeoff = new Image(144, 30);
	homeoff.src = "images/home.gif";

	profileon = new Image(144, 30);
	profileon.src = "images/profile_on.gif";
	profileoff = new Image(144, 30);
	profileoff.src = "images/profile.gif";

	serviceson = new Image(144, 30);
	serviceson.src = "images/services_on.gif";
	servicesoff = new Image(144, 30);
	servicesoff.src = "images/services.gif";

	productson = new Image(144, 30);
	productson.src = "images/products_on.gif";
	productsoff = new Image(144, 30);
	productsoff.src = "images/products.gif";

	colorson = new Image(144, 30);
	colorson.src = "images/colors_on.gif";
	colorsoff = new Image(144, 30);
	colorsoff.src = "images/colors.gif";

	priceson = new Image(144, 30);
	priceson.src = "images/pricing_on.gif";
	pricesoff = new Image(144, 30);
	pricesoff.src = "images/pricing.gif";
	
	contactson = new Image(144, 30);
	contactson.src = "images/contacts_on.gif";
	contactsoff = new Image(144, 30);
	contactsoff.src = "images/contacts.gif";
	
	//BOTTOM NAVAGATION IMAGES IMAGES
	_industrialon = new Image(144, 30);
	_industrialon.src = "images/industrial_on.jpg";
	_industrialoff = new Image(144, 30);
	_industrialoff.src = "images/industrial_off.jpg";

	_atvon = new Image(144, 30);
	_atvon.src = "images/atv_on.jpg";
	_atvoff = new Image(144, 30);
	_atvoff.src = "images/atv_off.jpg";

	_automotiveon = new Image(144, 30);
	_automotiveon.src = "images/automotive_on.jpg";
	_automotiveoff = new Image(144, 30);
	_automotiveoff.src = "images/automotive_off.jpg";

	_antiqueson = new Image(144, 30);
	_antiqueson.src = "images/antique_on.jpg";
	_antiquesoff = new Image(144, 30);
	_antiquesoff.src = "images/antique_off.jpg";

	_gateson = new Image(144, 30);
	_gateson.src = "images/gates_on.jpg";
	_gatesoff = new Image(144, 30);
	_gatesoff.src = "images/gates_off.jpg";

        _militaryon = new Image(144, 30);
        _militaryon.src = "images/military_on.JPG";
        _militaryoff = new Image(144, 30);
        _militaryoff.src = "images/military_off.JPG";

        _fabricationon = new Image(144, 30);
        _fabricationon.src = "images/fabrication_on.JPG";
        _fabricationoff = new Image(144, 30);
        _fabricationoff.src = "images/fabrication_off.JPG";

}

var IE = document.all?true:false;
if (!IE) document.captureEvents(Event.MOUSEMOVE)
document.onmousemove = getMouseXY;
var tempX = 0;
var tempY = 0;
function getMouseXY(e) 
{
	// grab the x-y pos.s if browser is IE
	if (IE) 
	{ 
		tempX = event.clientX + document.body.scrollLeft;
		tempY = event.clientY + document.body.scrollTop;
	}
	// grab the x-y pos.s if browser is NS
	else 
	{
		tempX = e.pageX;
		tempY = e.pageY;
	}  
}

function on(imgName)
{
	if (document.images)
	{
		document[imgName].src = eval(imgName + "on.src");
	}
}

function off(imgName)
{
	if (document.images)
	{
		document[imgName].src = eval(imgName + "off.src");
	}
}

function define(linkName,func)
{
	if(func == "on")
	{
		if (IE) { // grab the x-y pos.s if browser is IE
		tempX = event.clientX + document.body.scrollLeft;
		tempY = event.clientY + document.body.scrollTop;
		}
		document.getElementById(linkName).className = "linkinfo_on";
		document.getElementById(linkName).style.top = tempY + 5 + "px";
		document.getElementById(linkName).style.left = tempX + 5 + "px";
		//document.getElementById(linkName).style.right = tempX + 100 +"px";
		document.getElementById(linkName).style.width = "300px";
	}
	if(func == "off")
	{
		document.getElementById(linkName).className = "linkinfo_off";
	}
}