function swap_f(eewhitetri,px1){
eewhitetri.src="http://eeweb.poly.edu/wpictures/takespace.gif"
px1.src="http://eeweb.poly.edu/wpictures/eewhitetri.gif"
}

function swap_b(eewhitetri,px1){
px1.src="http://eeweb.poly.edu/wpictures/takespace.gif"
eewhitetri.src="http://eeweb.poly.edu/wpictures/eewhitetri.gif"
}

function displayyear(){
 year = new Date();
 theyear = year.getFullYear();
 return theyear;
}

function displaymonth(){
 var n;
 month1 = new Date();
 n = month1.getMonth();
 var the_month = new Array(12);
 the_month[0]="January";
 the_month[1]="Feburay";
 the_month[2]="March";
 the_month[3]="April";
 the_month[4]="May";
 the_month[5]="June";
 the_month[6]="July";
 the_month[7]="August";
 the_month[8]="September";
 the_month[9]="October";
 the_month[10]="November";
 the_month[11]="December";   
 return the_month[n];
}

function displaydate(){
 date1 = new Date();
 var the_date;
 the_date = date1.getDate(); 
 return the_date;
}

function displayday(){
 var dayofweek=0;
 var ofweek;
 day1 = new Date();
 dayofweek = day1.getDay();
 switch (dayofweek)
 {
  case 1:
   ofweek = "Mon.";
   break;
  case 2:
   ofweek = "Tue.";
   break;
  case 3:
   ofweek = "Wed.";
   break;
  case 4: 
   ofweek = "Thur.";
   break;
  case 5:
   ofweek = "Fri.";
   break;
  case 6:
   ofweek = "Sat.";
   break;
  default: 
   ofweek = "Sun.";
 }
  return ofweek;
}

function showall(){
var the_showall;
the_showall = displayday() + " " + displaymonth() + " " + displaydate() +  ", " + displayyear();
document.write(the_showall);
} 


function hide(id)
{
	if (document.all)
	{
		document.all[id].style.visibility="hidden";
	}
	else if (document.layers)
	{
		document.layers[id].visibility="hidden";
	}
	else if (document.getElementById)
	{
		document.getElementById(id).style.visibility = "hidden";
	}
}

function show(id)
{
	if (document.all)
	{
		document.all[id].style.visibility="visible";
	}
	else if (document.layers)
	{
		document.layers[id].visibility="visible";
	}
	else if (document.getElementById)
	{
		document.getElementById(id).style.visibility = "visible";
	}
}