// to get rid of the following msg on IE
// "click to activate the use the control" 
// over a flash object
objects = document.getElementsByTagName("object");
for (var i = 0; i < objects.length; i++)
{
objects[i].outerHTML = objects[i].outerHTML;
}
// end


function showmenu(elmnt) {
	document.all(elmnt).style.visibility="visible";
}

function hidemenu(elmnt) {
	document.all(elmnt).style.visibility="hidden"
}

function rollOver(id) {
	document.all(id).style.color="999999";
}

function rollOut(id) {
	document.all(id).style.color="D6D6D6";
}

function sm_rollOver(id) {
	document.all(id).style.color="000033";
}

function sm_rollOut(id) {
	document.all(id).style.color="03145A";
}

function startTime() {
	var weekday=new Array(7);
	weekday[0]="Sunday";
	weekday[1]="Monday";
	weekday[2]="Tuesday";
	weekday[3]="Wednesday";
	weekday[4]="Thursday";
	weekday[5]="Friday";
	weekday[6]="Saturday";
	
	var months= new Array(12);
	months[0] = "January";
	months[1] = "February";
	months[2] = "March";
	months[3] = "April";
	months[4] = "May";
	months[5] = "June";
	months[6] = "July";
	months[7] = "August";
	months[8] = "September";
	months[9] = "October";
	months[10] = "November";
	months[11] = "December";
	
	
	date = new Date();
	var d = date.getDay();
	var y = date.getYear();
	var m = date.getMonth();
	var dt = date.getDate();
	document.getElementById('today').innerHTML=weekday[d]+", "+months[m]+" "+dt+", "+y;
	//document.getElementById('thismonth').innerHTML=months[m]+" ";
	
	//also, resize the browse window size to the screen size
	window.resizeTo(screen.width,screen.height);
}


function popup_window(url,w,h) {  
	var width=w;  
	var height=h;  
	var from_top=50;  
	var from_left=50;  
	var toolbar='no';  
	var location='no';  
	var directories='no';  
	var status='no';  
	var menubar='no';  
	var scrollbars='yes';  
	var resizable='yes';  
	var atts='width='+width+'show,height='+height+',top='+from_top+',screenY=';  
		atts+= from_top+',left='+from_left+',screenX='+from_left+',toolbar='+toolbar;  
		atts+=',location='+location+',directories='+directories+',status='+status;  
		atts+=',menubar='+menubar+',scrollbars='+scrollbars+',resizable='+resizable;  
		window.open(url,'win_name',atts); 
} 
