﻿//JANUARY ENTRIESvar JANUARY = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','','','','',''],[1,'tue','','','','',''],[1,'wed','','','','',''],[1,'thu','1','','','',''],[1,'fri','2','','','',''],[1,'sat','3','','','',''],[2,'sun','4','','','',''],[2,'mon','5','','','',''],[2,'tue','6','','','',''],[2,'wed','7','','','',''],[2,'thu','8','','','',''],[2,'fri','9','','','',''],[2,'sat','10','','','',''],[3,'sun','11','','','',''],[3,'mon','12','','','',''],[3,'tue','13','','','',''],[3,'wed','14','','','',''],[3,'thu','15','','','',''],[3,'fri','16','','','',''],[3,'sat','17','','','',''],[4,'sun','18','','','',''],[4,'mon','19','','','',''],[4,'tue','20','','','',''],[4,'wed','21','','','',''],[4,'thu','22','','','',''],[4,'fri','23','','','',''],[4,'sat','24','','','',''],[5,'sun','25','','','',''],[5,'mon','26','','','',''],[5,'tue','27','','','',''],[5,'wed','28','','','',''],[5,'thu','29','','','',''],[5,'fri','30','','','',''],[5,'sat','31','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//FEBRUARY ENTRIESvar FEBRUARY = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','1','','','',''],[1,'mon','2','','','',''],[1,'tue','3','','','',''],[1,'wed','4','','','',''],[1,'thu','5','','','',''],[1,'fri','6','','','',''],[1,'sat','7','','','',''],[2,'sun','8','','','',''],[2,'mon','9','','','',''],[2,'tue','10','','','',''],[2,'wed','11','','','',''],[2,'thu','12','','','',''],[2,'fri','13','','','',''],[2,'sat','14','','','',''],[3,'sun','15','','','',''],[3,'mon','16','','','',''],[3,'tue','17','','','',''],[3,'wed','18','','','',''],[3,'thu','19','','','',''],[3,'fri','20','','','',''],[3,'sat','21','','','',''],[4,'sun','22','','','',''],[4,'mon','23','','','',''],[4,'tue','24','','','',''],[4,'wed','25','','','',''],[4,'thu','26','','','',''],[4,'fri','27','','','',''],[4,'sat','28','','','',''],[5,'sun','','','','',''],[5,'mon','','','','',''],[5,'tue','','','','',''],[5,'wed','','','','',''],[5,'thu','','','','',''],[5,'fri','','','','',''],[5,'sat','','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//MARCH ENTRIESvar MARCH = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','1','','','',''],[1,'mon','2','','','',''],[1,'tue','3','','','',''],[1,'wed','4','','','',''],[1,'thu','5','','','',''],[1,'fri','6','','','',''],[1,'sat','7','','','',''],[2,'sun','8','','','',''],[2,'mon','9','','','',''],[2,'tue','10','','','',''],[2,'wed','11','','','',''],[2,'thu','12','','','',''],[2,'fri','13','','','',''],[2,'sat','14','','','',''],[3,'sun','15','','','',''],[3,'mon','16','','','',''],[3,'tue','17','','','',''],[3,'wed','18','','','',''],[3,'thu','19','','','',''],[3,'fri','20','','','',''],[3,'sat','21','','','',''],[4,'sun','22','','','',''],[4,'mon','23','','','',''],[4,'tue','24','','','',''],[4,'wed','25','','','',''],[4,'thu','26','','','',''],[4,'fri','27','','','',''],[4,'sat','28','','','',''],[5,'sun','29','','','',''],[5,'mon','30','','','',''],[5,'tue','31','','','',''],[5,'wed','','','','',''],[5,'thu','','','','',''],[5,'fri','','','','',''],[5,'sat','','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//APRIL ENTRIESvar APRIL = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','','','','',''],[1,'tue','','','','',''],[1,'wed','1','','','',''],[1,'thu','2','','','',''],[1,'fri','3','','','',''],[1,'sat','4','','','',''],[2,'sun','5','','','',''],[2,'mon','6','','','',''],[2,'tue','7','','','',''],[2,'wed','8','','','',''],[2,'thu','9','','','',''],[2,'fri','10','','','',''],[2,'sat','11','','','',''],[3,'sun','12','','','',''],[3,'mon','13','','','',''],[3,'tue','14','','','',''],[3,'wed','15','','','',''],[3,'thu','16','','','',''],[3,'fri','17','','','',''],[3,'sat','18','','','',''],[4,'sun','19','','','',''],[4,'mon','20','','','',''],[4,'tue','21','','','',''],[4,'wed','22','','','',''],[4,'thu','23','','','',''],[4,'fri','24','','','',''],[4,'sat','25','','','',''],[5,'sun','26','','','',''],[5,'mon','27','','','',''],[5,'tue','28','','','',''],[5,'wed','29','','','',''],[5,'thu','30','','','',''],[5,'fri','','','','',''],[5,'sat','','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//MAY ENTRIESvar MAY = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','','','','',''],[1,'tue','','','','',''],[1,'wed','','','','',''],[1,'thu','','','','',''],[1,'fri','1','','','',''],[1,'sat','2','','','',''],[2,'sun','3','','','',''],[2,'mon','4','','','',''],[2,'tue','5','','','',''],[2,'wed','6','','','',''],[2,'thu','7','','','',''],[2,'fri','8','','','',''],[2,'sat','9','','','',''],[3,'sun','10','','','',''],[3,'mon','11','','','',''],[3,'tue','12','','','',''],[3,'wed','13','','','',''],[3,'thu','14','','','',''],[3,'fri','15','','','',''],[3,'sat','16','','','',''],[4,'sun','17','','','',''],[4,'mon','18','','','',''],[4,'tue','19','','','',''],[4,'wed','20','','','',''],[4,'thu','21','','','',''],[4,'fri','22','','','',''],[4,'sat','23','','','',''],[5,'sun','24','','','',''],[5,'mon','25','','','',''],[5,'tue','26','','','',''],[5,'wed','27','','','',''],[5,'thu','28','','','',''],[5,'fri','29','','','',''],[5,'sat','30','','','',''],[6,'sun','31','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//JUNE ENTRIESvar JUNE = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','1','','','',''],[1,'tue','2','','','',''],[1,'wed','3','','','',''],[1,'thu','4','','','',''],[1,'fri','5','','','',''],[1,'sat','6','','','',''],[2,'sun','7','','','',''],[2,'mon','8','','','',''],[2,'tue','9','','','',''],[2,'wed','10','','','',''],[2,'thu','11','','','',''],[2,'fri','12','','','',''],[2,'sat','13','','','',''],[3,'sun','14','','','',''],[3,'mon','15','','','',''],[3,'tue','16','','','',''],[3,'wed','17','','','',''],[3,'thu','18','','','',''],[3,'fri','19','','','',''],[3,'sat','20','','','',''],[4,'sun','21','','','',''],[4,'mon','22','','','',''],[4,'tue','23','','','',''],[4,'wed','24','','','',''],[4,'thu','25','','','',''],[4,'fri','26','','','',''],[4,'sat','27','','','',''],[5,'sun','28','','','',''],[5,'mon','29','','','',''],[5,'tue','30','','','',''],[5,'wed','','','','',''],[5,'thu','','','','',''],[5,'fri','','','','',''],[5,'sat','','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//JULY ENTRIESvar JULY = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','','','','',''],[1,'tue','','','','',''],[1,'wed','1','','','',''],[1,'thu','2','','','',''],[1,'fri','3','','','',''],[1,'sat','4','','','',''],[2,'sun','5','','','',''],[2,'mon','6','','','',''],[2,'tue','7','','','',''],[2,'wed','8','','','',''],[2,'thu','9','','','',''],[2,'fri','10','','','',''],[2,'sat','11','','','',''],[3,'sun','12','','','',''],[3,'mon','13','','','',''],[3,'tue','14','','','',''],[3,'wed','15','','','',''],[3,'thu','16','','','',''],[3,'fri','17','','','',''],[3,'sat','18','','','',''],[4,'sun','19','','','',''],[4,'mon','20','','','',''],[4,'tue','21','','','',''],[4,'wed','22','','','',''],[4,'thu','23','','','',''],[4,'fri','24','','','',''],[4,'sat','25','','','',''],[5,'sun','26','','','',''],[5,'mon','27','','','',''],[5,'tue','28','','','',''],[5,'wed','29','','','',''],[5,'thu','30','','','',''],[5,'fri','31','','','',''],[5,'sat','','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//AUGUST ENTRIESvar AUGUST = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','','','','',''],[1,'tue','','','','',''],[1,'wed','','','','',''],[1,'thu','','','','',''],[1,'fri','','','','',''],[1,'sat','1','','','',''],[2,'sun','2','','','',''],[2,'mon','3','','','',''],[2,'tue','4','','','',''],[2,'wed','5','','','',''],[2,'thu','6','','','',''],[2,'fri','7','','','',''],[2,'sat','8','','','',''],[3,'sun','9','','','',''],[3,'mon','10','','','',''],[3,'tue','11','','','',''],[3,'wed','12','','','',''],[3,'thu','13','','','',''],[3,'fri','14','','','',''],[3,'sat','15','','','',''],[4,'sun','16','','','',''],[4,'mon','17','','','',''],[4,'tue','18','','','',''],[4,'wed','19','','','',''],[4,'thu','20','','','',''],[4,'fri','21','','','',''],[4,'sat','22','','','',''],[5,'sun','23','','','',''],[5,'mon','24','','','',''],[5,'tue','25','','','',''],[5,'wed','26','','','',''],[5,'thu','27','','','',''],[5,'fri','28','','','',''],[5,'sat','29','','','',''],[6,'sun','30','','','',''],[6,'mon','30','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//SEPTEMBER ENTRIESvar SEPTEMBER = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','','','','',''],[1,'tue','1','','','',''],[1,'wed','2','','','',''],[1,'thu','3','','','',''],[1,'fri','4','','','',''],[1,'sat','5','','','',''],[2,'sun','6','','','',''],[2,'mon','7','','','',''],[2,'tue','8','','','',''],[2,'wed','9','','','',''],[2,'thu','10','','','',''],[2,'fri','11','','','',''],[2,'sat','12','','','',''],[3,'sun','13','','','',''],[3,'mon','14','','','',''],[3,'tue','15','','','',''],[3,'wed','16','','','',''],[3,'thu','17','','','',''],[3,'fri','18','','','',''],[3,'sat','19','','','',''],[4,'sun','20','','','',''],[4,'mon','21','','','',''],[4,'tue','22','','','',''],[4,'wed','23','','','',''],[4,'thu','24','','','',''],[4,'fri','25','','','',''],[4,'sat','26','','','',''],[5,'sun','27','','','',''],[5,'mon','28','','','',''],[5,'tue','29','','','',''],[5,'wed','30','','','',''],[5,'thu','','','','',''],[5,'fri','','','','',''],[5,'sat','','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//OCTOBER ENTRIESvar OCTOBER = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','','','','',''],[1,'tue','','','','',''],[1,'wed','','','','',''],[1,'thu','1','','','',''],[1,'fri','2','','','',''],[1,'sat','3','','','',''],[2,'sun','4','','','',''],[2,'mon','5','','','',''],[2,'tue','6','','','',''],[2,'wed','7','','','',''],[2,'thu','8','','','',''],[2,'fri','9','','','',''],[2,'sat','10','','','',''],[3,'sun','11','','','',''],[3,'mon','12','','','',''],[3,'tue','13','','','',''],[3,'wed','14','','','',''],[3,'thu','15','','','',''],[3,'fri','16','','','',''],[3,'sat','17','','','',''],[4,'sun','18','','','',''],[4,'mon','19','','','',''],[4,'tue','20','','','',''],[4,'wed','21','','','',''],[4,'thu','22','','','',''],[4,'fri','23','','','',''],[4,'sat','24','','','',''],[5,'sun','25','','','',''],[5,'mon','26','','','',''],[5,'tue','27','','','',''],[5,'wed','28','','','',''],[5,'thu','29','','','',''],[5,'fri','30','','','',''],[5,'sat','31','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//NOVEMBER ENTRIESvar NOVEMBER = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','1','','','',''],[1,'mon','2','','','',''],[1,'tue','3','','','',''],[1,'wed','4','','','',''],[1,'thu','5','','','',''],[1,'fri','6','','','',''],[1,'sat','7','','','',''],[2,'sun','8','','','',''],[2,'mon','9','','','',''],[2,'tue','10','','','',''],[2,'wed','11','','','',''],[2,'thu','12','','','',''],[2,'fri','13','','','',''],[2,'sat','14','','','',''],[3,'sun','15','','','',''],[3,'mon','16','','','',''],[3,'tue','17','','','',''],[3,'wed','18','','','',''],[3,'thu','19','','','',''],[3,'fri','20','','','',''],[3,'sat','21','','','',''],[4,'sun','22','','','',''],[4,'mon','23','','','',''],[4,'tue','24','','','',''],[4,'wed','25','','','',''],[4,'thu','26','','','',''],[4,'fri','27','','','',''],[4,'sat','28','','','',''],[5,'sun','29','','','',''],[5,'mon','30','','','',''],[5,'tue','','','','',''],[5,'wed','','','','',''],[5,'thu','','','','',''],[5,'fri','','','','',''],[5,'sat','','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//DECEMBER ENTRIESvar DECEMBER = [//0=row, 1=weekday, 2=date, 3=header1, 4=event1, 5=header2, 6=event2[1,'sun','','','','',''],[1,'mon','','','','',''],[1,'tue','1','','','',''],[1,'wed','2','','','',''],[1,'thu','3','','','',''],[1,'fri','4','','','',''],[1,'sat','5','','','',''],[2,'sun','6','','','',''],[2,'mon','7','','','',''],[2,'tue','8','','','',''],[2,'wed','9','','','',''],[2,'thu','10','','','',''],[2,'fri','11','','','',''],[2,'sat','12','','','',''],[3,'sun','13','','','',''],[3,'mon','14','','','',''],[3,'tue','15','','','',''],[3,'wed','16','','','',''],[3,'thu','17','','','',''],[3,'fri','18','','','',''],[3,'sat','19','','','',''],[4,'sun','20','','','',''],[4,'mon','21','','','',''],[4,'tue','22','','','',''],[4,'wed','23','','','',''],[4,'thu','24','','','',''],[4,'fri','25','','','',''],[4,'sat','26','','','',''],[5,'sun','27','','','',''],[5,'mon','28','','','',''],[5,'tue','29','','','',''],[5,'wed','30','','','',''],[5,'thu','31','','','',''],[5,'fri','','','','',''],[5,'sat','','','','',''],[6,'sun','','','','',''],[6,'mon','','','','',''],[6,'tue','','','','',''],[6,'wed','','','','',''],[6,'thu','','','','',''],[6,'fri','','','','',''],[6,'sat','','','','','']];//images of the Calendar page besides all month gifsvar imageArray = ['images/2006.gif','images/button_back-over.gif','images/button_back.gif','images/button_next-over.gif','images/button_next.gif','images/closebox.gif'];//placement for event info boxvar boxPlacementARRAY = ['right','right','right','right','left','left','left'];var pageLoaded = false;var zMonthsARRAY = [JANUARY,FEBRUARY,MARCH,APRIL,MAY,JUNE,JULY,AUGUST,SEPTEMBER,OCTOBER,NOVEMBER,DECEMBER];var zMonths = ['January','February','March','April','May','June','July','August','September','October','November','December'];var zWeekdays = ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'];var zDate = new Date();var nowMonth = zMonthsARRAY[zDate.getMonth()];var monthNum = zDate.getMonth();var boxContent = "";var detect = navigator.userAgent.toLowerCase();var OS = "";var browser = "";var curWidth = 1;var curHeight = 1;// FINAL BOX SIZE//var destWidth = 237;var destHeight = 235;var curLeft = 0;var curRight = 0;var keepGrowingTall = false;var keepShrinkingTall = false;// INFO for HIDDEN BOXvar zCloseBox = "";var zHeadDate = "";var zEventInfo = "";// browser detection //function browserCheck(string){	place = detect.indexOf(string) + 1;	return place;}//voids linksfunction myVoid(){}//adds all current info to the calendarcal_info = function(theMonth){for(i=0;i<theMonth.length;i++){	zEvents = '';	document.getElementById('block' + i).style.backgroundColor = "transparent";	document.getElementById('block' + i).style.backgroundImage = "none";	if(theMonth[i][3] !== ""){		zEvents = '<p>&bull; ' + theMonth[i][3] + '<br /><br />';		if(theMonth[i][5] !== ""){			zEvents = zEvents + '&bull; ' + theMonth[i][5] + '</p>';		}else{			zEvents = zEvents + '</p>';		}	}	// places Xs in boxes prior to today's date //	if(monthNum < zDate.getMonth() && !nowMonth[i][2]==""){		document.getElementById('block' + i).style.backgroundImage = "url(images/redX.png)";	}	if(monthNum == zDate.getMonth() && theMonth[i][2]<zDate.getDate() && !nowMonth[i][2]==""){		document.getElementById('block' + i).style.backgroundImage = "url(images/redX.png)";	}		//adds the number box in case it was removed before	document.getElementById('date' + i).style.borderRight = "1px solid white";	document.getElementById('date' + i).style.borderBottom = "1px solid white";	document.getElementById('date' + i).innerHTML = theMonth[i][2];	document.getElementById('date' + i).style.backgroundColor = "#B7B7B7";	document.getElementById('block' + i).style.border = "1px solid white";	document.getElementById('block' + i).style.backgroundColor = "transparent";	//if there isn't a date, the elements of that box are removed 	if(theMonth[i][2] == ""){		document.getElementById('date' + i).style.backgroundColor = "#3A3A3A";		document.getElementById('date' + i).style.borderRight = "0px";		document.getElementById('date' + i).style.borderBottom = "0px";		document.getElementById('block' + i).style.border = "0px";		document.getElementById('block' + i).style.backgroundColor = "#3A3A3A";	}	document.getElementById('event' + i).innerHTML = zEvents;	document.getElementById('month_graphic').innerHTML = "<img src=\"images/" + zMonths[monthNum] + ".gif\" />";	if(browserCheck('firefox')){		document.getElementById('date'+i).style.textAlign = 'left';		document.getElementById('date'+i).style.color = 'black';	}	// highlights current day	if(monthNum == zDate.getMonth() && theMonth[i][2] == zDate.getDate()){		document.getElementById('block' + i).style.backgroundColor = "#1B3348";		//document.getElementById('block' + i).style.backgroundImage = "url(images/today.png)";	} } //preloads images on page if they haven't already been loaded if(pageLoaded == false){ 	doLoad(); }};//cycles forward or backward thru months with button pushchange_calendar = function(zDirection){	for(i=0;i<zMonthsARRAY.length;i++){		if(zMonthsARRAY[i][0]==nowMonth){		monthNum = i;		}	}	if(zDirection=='next'){		monthNum++;	}else{		monthNum--;	}	if(monthNum==zMonthsARRAY.length){		monthNum = 0;	}else if(monthNum<0){		monthNum = zMonthsARRAY.length-1;	}	nowMonth = zMonthsARRAY[monthNum];hideBox();cal_info(nowMonth);};// Makes the info box div visible // Fills it with appropriate info// Prepares it to grow to the right sizeprepareInfoBox = function(boxNum){	/// empties out old info	document.getElementById('hiddenBox').innerHTML = "";	curLeft = 5;	curRight = 5;	zBoxTop = 224;	//destWidth = 237;	destHeight = 235;	keepGrowingTall = true;	//if there is actually a date in that box, the function will continue	if(nowMonth[boxNum][2] !== ""){		zEventInfo = "";		if(browserCheck('msie')){			zCloseBox = "<p><a href=\"javascript:myVoid()\" id=\"closeLink\" onclick=\"hideBox()\">[X]</a><br />";		}else{			zCloseBox = '<a href="javascript:myVoid()" onClick=\"hideBox()\" border=\"0\"><div id=\"closeBox\"><img src=\"images/closebox.gif\" border="0" /></a></div>';		}		//if there's no header1 it says No Event in box		if(nowMonth[boxNum][3] == ""){			if(browserCheck('msie')){				zEventInfo = '<span id=\"boldHeader\">No Events Currently Scheduled</span></p>';			}else{				zEventInfo = '<p id=\"boldHeader\">No Events Currently Scheduled</p>';			}		}else{			if(browserCheck('msie')){				zEventInfo = zEventInfo + '<span id=\"boldHeader\">' + nowMonth[boxNum][3] + '</span><br />';				zEventInfo = zEventInfo + nowMonth[boxNum][4] + '<br /><br />';			}else{				zEventInfo = zEventInfo + '<p><span id=\"boldHeader\">' + nowMonth[boxNum][3] + '</span><br />';				zEventInfo = zEventInfo + nowMonth[boxNum][4] + '<br /><br />';			}			//if there's a second header			if(nowMonth[boxNum][3] !== ""){				zEventInfo = zEventInfo + '<span id=\"boldHeader\">' + nowMonth[boxNum][5] + '</span><br />';				zEventInfo = zEventInfo + nowMonth[boxNum][6] + '</p>';			}else{				zEventInfo = zEventInfo + '</p>';			}		}		/////////////////////////////////////		/// Figures out where on the grid //		// the selected day falls /////////		zLeft = 0;		zColumn = 0;		zRow = 0;		jj = 0;		for (i=0;i<boxNum;i++){			jj++;			zColumn = jj;			if(jj > 6){				jj = 0;				zColumn = 0;				zRow++;			}		}		zPlacement = boxPlacementARRAY[zColumn];		if(zPlacement == 'right'){			if(browserCheck('msie')){				zHeadDate = '<span id=\"dateHeader\">&larr; ' + zWeekdays[zColumn] + ', ' + zMonths[monthNum] + ' ' + (nowMonth[boxNum][2]) + '</span><br /><br />';			}else{				zHeadDate = '<p id=\"dateHeader\">&larr; ' + zWeekdays[zColumn] + ', ' + zMonths[monthNum] + ' ' + (nowMonth[boxNum][2]) + '</p>';			}			zLeft = (zColumn+1) * 122 - 63;		}else{			if(browserCheck('msie')){				zHeadDate = '<span id=\"dateHeader\">' + zWeekdays[zColumn] + ', ' + zMonths[monthNum] + ' ' + (nowMonth[boxNum][2]) + ' &rarr;</span><br /><br />';			}else{				zHeadDate = '<p id=\"dateHeader\">' + zWeekdays[zColumn] + ', ' + zMonths[monthNum] + ' ' + (nowMonth[boxNum][2]) + ' &rarr;</p>';			}			zLeft = zColumn * 122 - 307;		}		document.getElementById('hiddenBox').style.left = zLeft + 'px';		document.getElementById('hiddenBox').style.top = (zRow*122+zBoxTop) + 'px';		document.getElementById('hiddenBox').style.visibility = 'visible';		if(browserCheck('msie')){			document.getElementById('dateHeader').style.paddingTop = '0px';			document.getElementById('dateHeader').style.marginTop = '0px';			document.getElementById('dateHeader').style.paddingLeft = '0px';			document.getElementById('dateHeader').style.marginLeft = '0px';			document.getElementById('dateHeader').style.fontSize = '14px';		}		for(i=0;i<nowMonth.length;i++){			if(!nowMonth[i][2] == ""){				document.getElementById('block' + i).style.backgroundColor = "transparent";			}			if(monthNum == zDate.getMonth() && nowMonth[i][2] == zDate.getDate()){				document.getElementById('block' + i).style.backgroundColor = "#1B3348";			}		}		document.getElementById('block' + boxNum).style.backgroundColor = "#465B21";		//document.getElementById('block' + boxNum).style.backgroundColor = "#613434";	}	// to make the box now grow to correct size	boxGrow();};//// Grows the box to size /////function boxGrow(){	if(keepGrowingTall == true){		if(curHeight <= destHeight){			document.getElementById('hiddenBox').style.height = curHeight+"px";			curHeight+=10;		}else{			document.getElementById('hiddenBox').style.height = destHeight+"px";			keepGrowingTall = false;		}	setTimeout('boxGrow()',1);	}else{				document.getElementById('hiddenBox').innerHTML = zCloseBox + zHeadDate + zEventInfo;		curHeight = 1;		curLeft = 0;		curTop = 0;		keepGrowingTall = false;	}}///////////////////////////////////////// prepares to SHRINK and HIDE box ///hideBox = function(){	document.getElementById('hiddenBox').innerHTML = "";	destHeight = 1;	curHeight = 235;	keepShrinkingTall = true;	boxShrink();};/// SHRINKS THE BOX ///boxShrink = function(){	if(keepShrinkingTall == true){		if(curHeight >= destHeight){			document.getElementById('hiddenBox').style.height = curHeight+"px";			curHeight-=10;		}else{			document.getElementById('hiddenBox').style.height = destHeight+"px";			keepShrinkingTall = false;		}	setTimeout('boxShrink()',1);	}else{	document.getElementById('hiddenBox').style.visibility = 'hidden';	if(document.getElementById('closeBox')){		document.getElementById('closeBox').style.visibility = 'hidden';	}	for(i=0;i<nowMonth.length;i++){		if(!nowMonth[i][2] == ""){			document.getElementById('block' + i).style.backgroundColor = "transparent";		}		if(monthNum == zDate.getMonth() && nowMonth[i][2] == zDate.getDate()){			document.getElementById('block' + i).style.backgroundColor = "#1B3348";		}	}	keepShrinkingTall = false;	}};////////////////////////////////////////image preloader//function to preload all of the images on calendar pagefunction doLoad() {	for (i=0;i<imageArray.length;i++) {		loadImage = new Image();		loadImage.src = imageArray[i];	}	//loads the month gifs	for (i=0;i<zMonths.length;i++) {		loadImage = new Image();		loadImage.src = 'images/' + zMonths[i] + '.gif';	}	pageLoaded = true;}