// JavaScript Document. To whomever finds this poor piece of code: FIX ME PLZ.


<!-- hide from old browsers
	  /*function swapImage() { 
				theImages = new Array(
"http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo.jpg", "http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo_f2.jpg", "http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo_f3.jpg", "http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo_f4.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo_f5.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo_f6.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo_f7.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo_f8.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/top_main_photo_f9.jpg"); 
			whichImage = Math.floor(Math.random()*theImages.length); 
			document.write('<IMG SRC="' +theImages[whichImage]+ '">'); 
			} 
//-->*/

<!-- hide from old browsers 
	  function swapImage2() { 
				theImages2 = new Array(
"http://www.mcps.k12.md.us/schools/churchillhs/images/right_photo.jpg", "http://www.mcps.k12.md.us/schools/churchillhs/images/right_photo_f2.jpg", "http://www.mcps.k12.md.us/schools/churchillhs/images/right_photo_f3.jpg", "http://www.mcps.k12.md.us/schools/churchillhs/images/right_photo_f4.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/right_photo_f5.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/right_photo_f6.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/right_photo_f7.jpg",
"http://www.mcps.k12.md.us/schools/churchillhs/images/right_photo_f8.jpg"); 
			whichImage2 = Math.floor(Math.random()*theImages2.length); 
			document.write('<IMG SRC="' +theImages2[whichImage2]+ '">'); 
			} 
//-->
 <!-- hide from old browsers
 
 //why do we need this?
  function GetDay(intDay){
    var DayArray = new Array("Sunday", "Monday", "Tuesday", "Wednesday", 
                         "Thursday", "Friday", "Saturday")
    return DayArray[intDay]
    }

  function GetMonth(intMonth){
    var MonthArray = new Array("January", "February", "March",
                               "April", "May", "June",
                               "July", "August", "September",
                               "October", "November", "December") 
    return MonthArray[intMonth] 	  	 
    }
  function getDateStrWithDOW(){
    var today = new Date()
    var todayStr = GetDay(today.getDay()) + ", "
    todayStr += GetMonth(today.getMonth()) + " " + today.getDate()
    return todayStr
    }
//-->

//i really want to konw what this does

 <!-- hide from old browsers
function toggleLayer(whichLayer)
{
if (document.getElementById)
	{
	// this is the way the standards work
	var style2 = document.getElementById(whichLayer).style;
	style2.display = style2.display? "":"block";
	}
	
	else if (document.all)
	{
	// this is the way old msie versions work
	var style2 = document.all[whichLayer].style;
	style2.display = style2.display? "":"block";
	}
}
//-->

