// JavaScript Document
/**********************Loads a random background image from the ones listed**************************/
function bgimage(){
document.body.background="../images/bg4.jpg"
today=new Date();
jran=today.getTime();
//Change the var number for homany random pictures you have ///
var number = 9;
var random_number="";
ia=9301;
ic=49297;
im=233280;
jran = (jran*ia+ic) % im;
random_number = Math.ceil( (jran/(im*1.0)) *number);
// Loads the image based on random number.
document.write("<img src=\"../bgPics/"+random_number+".jpg\" name=\"bgImage\" class=bgimg id=bgpic>");
// End -->

}


/****sets the background pic size for the different resolutions*******/
function scrensize(){
	if(screen.width < 801){
 		document.getElementById("bgpic").style.width="84%"
 		document.getElementById("bgpic").style.height="81%"
	}
	else if(screen.width < 1025){
		document.getElementById("bgpic").style.width="88%"
		document.getElementById("bgpic").style.height="86%"
 	}
 	else{
  		document.getElementById("bgpic").style.width="90%"
  		document.getElementById("bgpic").style.height="90%"	
	}
}


/***************the background of the selected link in IE and Net***************************/ 
 function linkshadow(num){
 if (navigator.appName =="Netscape"){
 	var SHDW = document.getElementById("lbg")
	var toplink=113
	SHDW.style.top=((num*39)+toplink)+"px"
	}
else{
 	var SHDW = document.getElementById("lbg")
	var toplink=115
	SHDW.style.top=((num*37)+toplink)+"px"
 	}
}

/***********This function is for links that are to be put in a new window ----like target='new'--***********/
function popup(linkaddr){
window.open(linkaddr)
}
