//
//	Can we Hover ?
//
MouseHover = ( ( (navigator.appName == "Netscape")      && 
				 (parseInt(navigator.appVersion) >= 3 )  )  || 
		 	   ( (navigator.appName == "Microsoft Internet Explorer") && 
				 (parseInt(navigator.appVersion) >= 4 )                )  );

//
//	Pre Load
//
function Preload(img) 
{
  var a = new Image();
  a.src = img;
  return a; 
}
//
//	Go to Clothing page
//
function GotoClothing() 
{
  window.location = "html/clothing.htm";
}
//
//	Display NOTHING for Mouse Over Object
//
function DisplayNOMO(object)
{
	object.style.cursor = "auto";
	object.alt = " ";
	window.status = " ";
	document.body.setAttribute("gotoAddress", "html/clothing.htm");
	//alert("got gotoAddress - " + document.body.getAttribute("gotoAddress") );
}
//
//	Display Mouse Over Dual Picture Object
//
function DisplayMOver(object,event,leftAlt,leftHTML,rightAlt,rightHTML)
{
	//alert("Offset X " + event.offsetX + " Y " + event.offsetY);
	object.style.cursor = "hand";

	//alert("Offset X " + event.offsetX + " Width/2 " + (object.width / 2) );
	if (event.offsetX < (object.width / 2))
	{
		object.alt = leftAlt;
		window.status = leftAlt;
		document.body.setAttribute("gotoAddress", leftHTML);
		//alert("gotoAddress - " + leftHTML);
	}
	else
	{
		object.alt = rightAlt;
		window.status = rightAlt;
		document.body.setAttribute("gotoAddress", rightHTML);
		//alert("gotoAddress - " + rightHTML);
	}
}
//
//	Display Mouse Over Single Picture Object
//
function DisMOver(object,event,Alt,HTML)
{
	//alert("Offset X " + event.offsetX + " Y " + event.offsetY);
	object.style.cursor = "hand";
	object.alt = Alt;
	window.status = Alt;
	document.body.setAttribute("gotoAddress", HTML);
	//alert("gotoAddress - " + HTML);
}
//
//	Get go to Address
//
function SetAddress(addressHTML)
{
	document.body.setAttribute("gotoAddress", addressHTML);
}
//
//	On Mouse Click, go to Destination
//		First Parameter is event.button
//			1 Left button is pressed. 
//			2 Right button is pressed. 
//
//function GotoMOver(object,event,left,right)
function GotoMOver(event)
{
	if (event.button == 1)
	{
		if ( document.body.getAttribute("gotoAddress") == null )
			window.location = "html/clothing.htm";
		else
			window.location = document.body.getAttribute("gotoAddress");

		//alert("LEFT");
		//if (event.offsetX < (object.width / 2))
		//{
		//	window.location = left;
		//}
		//if (event.offsetX > (object.width / 2))
		//{
		//	window.location = right;
		//}
	}

	if (event.button == 2)
	{
		//alert("RIGHT");
	}
}

