
var img = new Image();
for (i = 1; i < 9; i++)
{
	img.src = "images/mnu_btn" + i + "_on.gif";
	img.src = "images/mnu_btn" + i + "_off.gif";
}


var ie4 = document.all;
var ns4 = document.layers;
var ns6 = document.getElementById && !document.all; 

function button_on(s) {
	/*if (ie4)
		obj = window.event.srcElement;
	else
		obj = e.target;
		
	var button_name = obj.id;
	
	obj.src = "images/" + button_name + "_on.gif";*/
	if(ie4)
		document.all(s).style.backgroundImage = "url(images/button_on.gif)";
	else
		document.getElementById(s).style.backgroundImage = "url(images/button_on.gif)";
	
}

function button_off(s) {
	/*if (ie4)
		obj = window.event.srcElement;
	else
		obj = e.target;
		
	var button_name = obj.id;
	
	obj.src = "images/" + button_name + "_off.gif";*/
	if(ie4)
		document.all(s).style.backgroundImage = "url(images/button_off.gif)";
	else
		document.getElementById(s).style.backgroundImage = "url(images/button_off.gif)";
	
}

function button2_on(s) {
	if(ie4)
		document.all(s).style.backgroundImage = "url(images/button2_on.gif)";
	else
		document.getElementById(s).style.backgroundImage = "url(images/button2_on.gif)";
	
}

function button2_off(s) {
	if(ie4)
		document.all(s).style.backgroundImage = "url(images/button2_off.gif)";
	else
		document.getElementById(s).style.backgroundImage = "url(images/button2_off.gif)";
	
}

function animate_on(btn, ar, big)
{
	button2_on(btn);
}

function animate_off(btn,big)
{
	button2_off(btn);
}


var days = new Array(8);

days[1] = "Sunday";
days[2] = "Monday";
days[3] = "Tuesday";
days[4] = "Wednesday";
days[5] = "Thursday";
days[6] = "Friday";
days[7] = "Saturday";

var months = new Array(13);
months[1] = "January";
months[2] = "February";
months[3] = "March";
months[4] = "April";
months[5] = "May";
months[6] = "June";
months[7] = "July";
months[8] = "August";
months[9] = "September";
months[10] = "October";
months[11] = "November";
months[12] = "December";

function get_UpdateDocDate()
{
	var dateObj = new Date(document.lastModified);
	var wday = days[dateObj.getDay() + 1];
	var lmonth = months[dateObj.getMonth() + 1];
	var date = dateObj.getDate();
	var fyear = dateObj.getYear();

	if (fyear < 2000)
		fyear = fyear + 1900
	
	document.write(wday + ", " + lmonth + " " + date + ", " + fyear);
}

function writeFooter()
{
	var s = "<table width=\"100%\" border=\"0\">";
	s += "<tr class=\"info\">";
	s += "<td align=\"center\" nowrap><img src=\"images/rose_bullet.gif\"><a href=\"index.html\">Home</a></td>";
	s += "<td align=\"center\" nowrap><img src=\"images/rose_bullet.gif\">Contact Us</td>";
	s += "<td align=\"center\" nowrap><img src=\"images/rose_bullet.gif\">Site Map</td>";
	s += "<td align=\"center\" nowrap><img src=\"images/rose_bullet.gif\">Privacy Policy</td>";
	s += "<td align=\"center\" nowrap><img src=\"images/rose_bullet.gif\">Legal Notice</td>";
	s += "</tr>";
	s += "</table>";
	
	document.write(s);
}

function writeLowerHeader(n)
{
	var s = "<table width=" + n + " border=\"1\" cellpadding=\"2\" cellspacing=\"0\" bordercolor=\"#A7EAF5\" class=\"main3\">";
	s += "<tr><td width=33% align=\"center\" background=\"images/bg1.jpg\"><a href=\"traditional.html\">Early Childhood</a></td>";
	s += "<td width=33% align=\"center\" background=\"images/bg1.jpg\"><a href=\"montessori_early.html\">Montessori</a></td>";
	s += "<td width=33% align=\"center\" background=\"images/bg1.jpg\"><a href=\"montessori_element.html\">Elementary</a></td>";
	s += "</tr></table>";
	
	document.write(s);
}
