
// ------------------TEST FOR COOKIES ---------------------

//var cookMsg='Our tests indicate that your browswer blocks cookies.\nA cookie is a small piece of data that our website\nneeds to store temporarily on your computer.\n\nThis website will still function without the ability to\nstore cookies, but you may notice some unusual\nresults when viewing this site without allowing cookies!';

//if (document.cookie.indexOf('SID=')==-1) {
//	alert(cookMsg);
//}

//------------------END TEST FOR COOKIES ------------------

	var flyoutInc=(document.all&&!window.opera)?26:26
	var sT;
	var divID=0
	
	function showFlyout(flyNum){
		clearTimeout(sT);
		if (divID!=0) document.getElementById('flyout'+divID).style.visibility='hidden';
		if (document.getElementById(flyNum+'1')){
			divID=flyNum;
			var e=document.getElementById('flyout'+flyNum).style;
			e.top=98+flyNum*flyoutInc;
			e.left=calcX(flyNum);
			e.visibility='visible';
		}
	}
	
	function hideFlyout(flyNum){
		if (document.getElementById('flyout'+flyNum)){
			var e=document.getElementById('flyout'+flyNum).style
			e.visibility='hidden';
		}
	}
	
	function calcX(buttonNum){
	   if(document.all){
		  availW = document.body.clientWidth;
	   }else{
		  availW = innerWidth;
	   }
	   return availW/2-230;
	 }
	
	function MM_reloadPage(init) {  //reloads the window if Nav4 resized
	  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
		document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
	  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
	}
	
	MM_reloadPage(true);

		var day=new Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
	var month=new Array('January','February','March','April','May','June','July','August','September','October','November','December');
	
	function calcTime(){
		now=new Date();
		var seconds=now.getSeconds()<10?'0'+now.getSeconds():now.getSeconds();
		var minutes=now.getMinutes()<10?'0'+now.getMinutes():now.getMinutes();
		var timeStr=now.getHours()>12?(now.getHours()-12)+':'+minutes+':'+seconds+' PM':now.getHours()+':'+minutes+':'+seconds+' AM';
		var dayStr=month[now.getMonth()]+' '+now.getDate()+', '+now.getFullYear()+'&nbsp;&nbsp;-&nbsp;&nbsp;'+timeStr;
		return dayStr;
	}
	function updateTime(){
		document.getElementById('currentTime').innerHTML=calcTime();
	}
	
	function setupDate(){
		if (document.getElementById) setInterval('updateTime()',1000);
	}

