// JavaScript Document

//Set is_ie variable for based on browser for use in code  
var agt=navigator.userAgent.toLowerCase();
var is_ie   = (agt.indexOf("msie") != -1);

//if screen is smaller than 1024 use stylesheet2 for smaller fonts
if (screen.availWidth < 1024)
{
   document.write('<link href="stylesheet2.css" rel="stylesheet" type="text/css">');         
} else {
   document.write('<link href="stylesheet.css" rel="stylesheet" type="text/css">');      
}  

function sizeTable(value)
{
	if (screen.availWidth >= 1024)
	{
		document.getElementById('table' + value).style.width='900';		
	}
}


function pageChange(tmp)
{
   window.location.href = tmp + ".htm"
}
   
function onMouse(buttonname)
{
	if (is_ie)
	{	     
	  document.getElementById(buttonname).style.cursor = "hand";
    } else {	     
	  document.getElementById(buttonname).style.cursor = "pointer";
	}	 				
	document.getElementById(buttonname).src = "images/button_" + buttonname + "_on.gif"	     
}

function offMouse(buttonname)
{		
   if (buttonname != pagename)
   {
	document.getElementById(buttonname).src = "images/button_" + buttonname + "_off.gif"	     
   }
   document.getElementById(pagename).src = "images/button_" + pagename + "_on.gif"
}

function mouseoverImage(theimage)
{
	if (is_ie)
	{	     	
	  theimage.style.cursor='hand';
    } else {
	  theimage.style.cursor='pointer';	     	  
	}	 				
}

function showImage(theImage)
{
	green_things_pop = window.open(theImage,"new", "directories=no,location=no,menubar=no,resizable=yes,status=yes,toolbar=no,scrollbars=yes,width=645,height=475,left=0,top=0");
	green_things_pop.focus();   
}

function openWindow(theStyle, theURL)
{
	if (theStyle == 0)
	{
	green_things_pop = window.open(theURL,"new", "directories=no,location=no,menubar=no,resizable=yes,status=yes,toolbar=no,scrollbars=yes,width=645,height=475,left=0,top=0");
	} else {
	green_things_pop = window.open(theURL,"new", "directories=no,location=no,menubar=no,resizable=yes,status=yes,toolbar=yes,scrollbars=yes,width=645,height=575,left=0,top=0");
    }	
	green_things_pop.focus();   
}

