
// Button functions...
//
	
	var garrColor = new Array("#FFFFFF","#F1F1EB","#C6C6A5");
	var gintLullTime = 100;
	var gbIE = true;
	
	//Detect IE5.5+
	strVersion=0
	if (navigator.appVersion.indexOf("MSIE")!=-1){
		temp=navigator.appVersion.split("MSIE")
		strVersion=parseFloat(temp[1])
	}

	gbIE = (strVersion>=5.5);
	
	function onClickAction(page)
	{
		var strArg = "index.asp?Page="+page;
		
		strArg += (page=="Events"||page=="Gallery") ? "&IE="+gbIE:"" ;
		
		document.location.href = strArg;

	}

	function mouseOverLink(id)
	{
		buttonFader(id,"over",garrColor.length-1);
		document.body.style.cursor="hand";

	}

	function mouseOutLink(id)
	{
		buttonFader(id,"out",0);
		document.body.style.cursor="default";
	}

	function buttonFader(id,strDirection,intValue)
	{

		var strArgument;

		document.getElementById(id).style.backgroundColor = garrColor[intValue];

		if (strDirection == "out")
		{
			intValue++;
			//alert(intValue + " " + garrColor.length);
			if (intValue < garrColor.length)
			{
				strArgument = "buttonFader('"+id+"','"+strDirection+"',"+intValue+");";
				setTimeout(strArgument,gintLullTime);
			}

		} else

		{
			intValue--;
			if (intValue >= 0)
			{
				strArgument = "buttonFader('"+id+"','"+strDirection+"',"+intValue+");";
				setTimeout(strArgument,gintLullTime);
			}
		}
	}

	
// Pseudo-link Functions
//

	function setDisplayOnLink(strItem)
	{
		if (document.getElementById(strItem).style.display=="block")
		{
			document.getElementById(strItem).style.display="none";
		} else {
			document.getElementById(strItem).style.display="block";
		}
	}
