﻿/*function checkRes()
{
	//alert("Resolution is "+screen.width+" by "+screen.height);
	if(screen.width==1024)
	{
		location.href='index_med.html';
	}
	if(screen.width==800)
	{
		location.href='index_low.html';
		
	}
	if(screen.width==1200)
	{
		location.href='index_high.html';
	}
	if(screen.width==1600)
	{
		location.href="index_vhigh.html";
	}
	document.getElementById('res_notice').innerHTML = "Screen must be at least 800 pixels wide";
}*/
function changeToHand()
{
	document.body.style.cursor = "pointer";
}
function changeFromHand()
{
	document.body.style.cursor = "default";
}
function showSub(id)
{
	var b = document.getElementById(id);
	//var y = getY(b);
	//var x = getX(b);
	//alert("Y: "+y);
	//alert("Parent Offset Left: "+x.parentNode.offsetLeft+"\nParent Offset Top: "+x.parentNode.offsetTop);
	//x.offsetLeft = x.parentNode.offsetLeft;
	var nav = navigator.appName;
	//b.style.left=x;
	//b.style.top = y;
	if(nav!='Microsoft Internet Explorer')
	{
		//alert(y);
		b.style.top = 200;
		//b.style.setExpression("top","'"+y+"'");
		//alert(q);
	}
	
	b.style.visibility = "visible";
	//document.getElementById(id).style.visibility = "visible";
	//alert(document.getElementById(id).offsetParent);
}
function hideSub(id)
{
	document.getElementById(id).style.visibility = "hidden";
}
function hl(id)
{
	var x = document.getElementById(id);
	if(x.className=="hl")
	{
		x.className="norm";
	}
	else
	{
		//alert("Changing class to hl for id: "+id);
		x.className="hl";
	}
}

function getY( oElement )
{
var iReturnValue = 0;
while( oElement != null ) {
iReturnValue += oElement.offsetTop;
oElement = oElement.offsetParent;
}
return iReturnValue;
}
function getX( oElement )
{
var iReturnValue = 0;
while( oElement != null ) {
iReturnValue += oElement.offsetLeft;
oElement = oElement.offsetParent;
}
return iReturnValue;
}

function goTo(add)
{
	location.href=add;
}




