//'********************************************************************
//'	Copyright (c) 1998-2010 Web Alchemy
//'********************************************************************
//'	/scripts/rollovers.js
//'********************************************************************

InitializeRolloverArrays();
function InitializeRolloverArrays()
{
	{
		UnHighLight = new MakeArray(7);
		HighLight = new MakeArray(7);

		//UnHighLight[1].src = "/images/splash/electronicscrap.off.gif";
		//UnHighLight[1].src = "/images/products/M2000.224x110.off.jpg";
		UnHighLight[1].src = "/images/products/MS1000.224x110.off.jpg";
		UnHighLight[2].src = "/images/splash/residues.off.gif";
		UnHighLight[3].src = "/images/splash/preciousmetals.off.gif";
		//UnHighLight[4].src = "/images/splash/scrapmetals.off.gif";
		UnHighLight[4].src = "/images/splash/electronicscrap.off.gif";
		UnHighLight[5].src = "/images/splash/aboutus.off.gif";
		UnHighLight[6].src = "/images/splash/contactus.off.gif";
		UnHighLight[7].src = "/images/facilities/more_photos_off.jpg";

		//HighLight[1].src = "/images/products/M2000.224x110.jpg";
		HighLight[1].src = "/images/products/MS1000.224x110.jpg";
		//HighLight[1].src = "/images/splash/electronicscrap.on.gif";
		HighLight[2].src = "/images/splash/residues.on.gif";
		HighLight[3].src = "/images/splash/preciousmetals.on.gif";
		//HighLight[4].src = "/images/splash/scrapmetals.on.gif";
		HighLight[4].src = "/images/splash/electronicscrap.on.gif";
		HighLight[5].src = "/images/splash/aboutus.on.gif";
		HighLight[6].src = "/images/splash/contactus.on.gif";
		HighLight[7].src = "/images/facilities/more_photos_on.jpg";
	}
}

function MakeArray(n)
{
	this.length = n;
	for (var i = 1; i<=n; i++)
	{
		this[i] = new Image();
	}

	return this;
}

function TurnOn(imgDocID, imgNum)
{
	if (!document.images[imgDocID])
		return;
	document.images[imgDocID].src = HighLight[imgNum].src;

	//document.images["Snapshots"].src = HighLight[imgNum+4].src;
}

function TurnOff(imgDocID, imgNum)
{
	if (!document.images[imgDocID])
		return;
	document.images[imgDocID].src = UnHighLight[imgNum].src;
}

/*
function TurnOnLink(link_id)
{
	document.getElementById(link_id).style.BACKGROUND-COLOR = gray;
}
*/

/*
function MakeColor_SAMPLE(HexColor, NamedColor)
{
	window.parent.document.namedColorForm.hexColorValue.value = HexColor;
	window.parent.document.namedColorForm.namedColorValue.value = NamedColor;
	if (IsIEBrowser()) {
		self.myDiv.style.backgroundColor = HexColor;
	} else if (IsDOMBrowser()) {
		document.getElementById('myDiv').style.backgroundColor = HexColor;
	} else {
		window.parent.document.namedColorForm.myDiv.style.backgroundColor = HexColor;
	}
}
*/
