var online=1;
var pageSize="779";
var onClr="ff9900";
var offClr="000066";
var lastUpdate="November 2005";

var isMac = (navigator.appVersion.indexOf("Mac") == -1) ? false : true;
var isX = (navigator.appVersion.indexOf("X11") == -1) ? false : true;
var isIE = ((navigator.appVersion.indexOf("MSIE") == -1) && (navigator.appVersion.indexOf("Microsoft") == -1)) ? false : true;
var isNS = (navigator.appVersion.indexOf("compatible") > -1) ? false : true;

var isOpera = (navigator.userAgent.indexOf('Opera') != -1) ? false : true;
var isWebTV = (navigator.appName.indexOf('WebTV') != -1) ? false : true;

var ie6 = (document.all && document.getElementbyID) ? true : false;
var ie4 = (document.all) ? true : false;
var ns4 = (document.layers) ? true : false;
var ns3 = (document.images) ? true : false;

if (ns4) {
 origWidth = innerWidth;
 origHeight = innerHeight;
}

function reDo() {if (innerWidth != origWidth || innerHeight != origHeight) {location.reload();}}
if (ns4) {onresize = reDo;}

function putdate(){
 var thisDate=new Date();
 var thismonth=thisDate.getMonth()+1;
 if (thismonth=="1") {monthname="January"}
 if (thismonth=="2") {monthname="February"}
 if (thismonth=="3") {monthname="March"}
 if (thismonth=="4") {monthname="April"}
 if (thismonth=="5") {monthname="May"}
 if (thismonth=="6") {monthname="June"}
 if (thismonth=="7") {monthname="July"}
 if (thismonth=="8") {monthname="August"}
 if (thismonth=="9") {monthname="September"}
 if (thismonth=="10") {monthname="October"}
 if (thismonth=="11") {monthname="November"}
 if (thismonth=="12") {monthname="December"}
 var year=thisDate.getYear();
 if (navigator.appVersion.lastIndexOf('Mac') != -1) 
  if (navigator.appName == ('Microsoft Internet Explorer')) 
  var year = (thisDate.getYear());
  else var year = (thisDate.getYear()+1900);
 if ((navigator.appName=="Netscape") && (navigator.appVersion.indexOf("Win") != -1))
      var year = (thisDate.getYear()+1900);
 currentDate=monthname+' '+thisDate.getDate()+', '+year+'';
 document.write(currentDate);
}

function clrovr(hiliteclr){
  if(jsvers>1.1){
  source=event.srcElement
  if (source.tagName=="TR"||source.tagName=="table")
  return
  while(source.tagName!="TD")
  source=source.parentElement
  if (source.style.backgroundColor!=hiliteclr&&source.id!="ignore")
  source.style.backgroundColor=hiliteclr
  }
}

function clrout(origclr){
  if(jsvers>1.1){
  if (event.fromElement.contains(event.toElement)||source.contains(event.toElement)||source.id=="ignore")
  return
  if (event.toElement!=source)
  source.style.backgroundColor=origclr
  }
}

function myUnescape(theWord){
  var x=0;
  var outStr ="";
  var ch="";
  for (x=0; x<theWord.length; x++)
  {
  ch = theWord.substr(x,1);
  if (ch=='+') {ch=" "};
  outStr+=ch;
  }
  return outStr;
}

function sideTopWriter(thePath,wotSect,theTitle){
  if (wotSect==1){theSuffix="_school"};
  if (wotSect==2){theSuffix="_curriculum"};
  if (wotSect==3){theSuffix="_parents"};
  if (wotSect==4){theSuffix="_gallery"};
  document.write('<div align="center"><table border="0" cellpadding="0" cellspacing="0" width="779">');
  document.write('<tr>');
  document.write('<td valign="top">');
  document.write('<table border="0" cellpadding="0" cellspacing="0" width="191">');
  document.write('<tr>');
  document.write('<td valign="top"><img name="topleft" src="'+thePath+'topleft.gif" width="9" height="148" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="buttonsquare" src="'+thePath+'buttonsquare'+theSuffix+'.gif" width="146" height="148" border="0" usemap="#buttonsquare" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="top_corner" src="'+thePath+'top_corner.gif" width="36" height="148" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'leftdivider_a.gif" width="9" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_b" src="'+thePath+'leftdivider_b.gif" width="146" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'leftdivider_c.gif" width="36" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'leftdivider_a.gif" width="9" height="11" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="nameplate" src="'+thePath+'nameplate'+theSuffix+'.gif" width="146" height="11" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'leftdivider_c.gif" width="36" height="11" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'leftdivider_a.gif" width="9" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_b" src="'+thePath+'leftdivider_b.gif" width="146" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'leftdivider_c.gif" width="36" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'leftdivider_a.gif" width="9" height="13" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="buttonplate_top" src="'+thePath+'buttonplate_top.gif" width="146" height="13" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'leftdivider_c.gif" width="36" height="13" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  document.write('<tr>');
  document.write('<td valign="top" background="'+thePath+'leftdivider_a.gif"><img src="'+thePath+'shim.gif" width="9" height="1" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top">');
  document.write('<div align="center"><table border="0" cellpadding="0" cellspacing="0" width="146">');
  document.write('<tr><td><img src="'+thePath+'buttonplate_body.gif" width="146" height="4" border="0" hspace="0" vspace="0"><'+'/td><'+'/tr>');
  document.write('<tr><td bgcolor="#000000"><img src="'+thePath+'shim.gif" width="146" height="1" border="0" hspace="0" vspace="0"><'+'/td><'+'/tr>');
  
    var theRow="";
    var theButtons=eval("theButtons"+wotSect);
    var theButtonUrls=eval("theButtonsURLs"+wotSect);
    for (var loop=0;loop<theButtons.length;loop++){
    
      if (buttonNum!=(loop+1)){
      var theRow='<tr><td valign="middle" align="center" class="buttonoff" background="'+thePath+'buttonstrip_off.gif" ';
	  theRow +='height="16"><a href="'+ myUnescape(theButtonUrls[loop])+'.htm" class="buttonLinkoff">'+ myUnescape(theButtons[loop])+'<'+'/a><'+'/td><'+'/tr>';
	  theRow +='<tr><td bgcolor="#000000"><img src="'+thePath+'shim.gif" width="146" ';
	  theRow +='height="1" border="0" hspace="0" vspace="0"><'+'/td><'+'/tr>';
      document.write(theRow);
      }
      else{
      var theRow='<tr><td valign="middle" align="center" class="buttonon" background="'+thePath+'buttonstrip_on.gif" ';
	  theRow +='height="16"><a href="'+ myUnescape(theButtonUrls[loop])+'.htm" class="buttonLinkon">'+ myUnescape(theButtons[loop])+'<'+'/a><'+'/td><'+'/tr>';
	  theRow +='<tr><td bgcolor="#000000"><img src="'+thePath+'shim.gif" width="146" ';
	  theRow +='height="1" border="0" hspace="0" vspace="0"><'+'/td><'+'/tr>';
      document.write(theRow);
      }
    }
  document.write('<tr><td><img src="'+thePath+'buttonplate_body.gif" width="146" height="9" border="0" hspace="0" vspace="0"><'+'/td><'+'/tr>');
  
  document.write('<'+'/table><'+'/div>');
  document.write('<'+'/td>');
  document.write('<td valign="top" background="'+thePath+'leftdivider_c.gif"><img src="'+thePath+'shim.gif" width="36" height="1" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'leftdivider_a.gif" width="9" height="13" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="buttonplate_top" src="'+thePath+'buttonplate_bottom.gif" width="146" height="13" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'leftdivider_c.gif" width="36" height="13" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'leftdivider_a.gif" width="9" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_b" src="'+thePath+'leftdivider_b.gif" width="146" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'leftdivider_c.gif" width="36" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  
  
  
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'leftdivider_a.gif" width="9" height="50" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="logo_bottom" src="'+thePath+'logo_bottom.gif" width="146" height="50" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'leftdivider_c.gif" width="36" height="50" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'leftdivider_a.gif" width="9" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_b" src="'+thePath+'leftdivider_b.gif" width="146" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'leftdivider_c.gif" width="36" height="12" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  
  
  document.write('<tr>');
  document.write('<td valign="top"><img name="leftdivider_a" src="'+thePath+'bottomleft.gif" width="9" height="10" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_b" src="'+thePath+'buttonstrip_bottom.gif" width="146" height="10" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="leftdivider_c" src="'+thePath+'bottomright.gif" width="36" height="10" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  
  document.write('<tr>');
  document.write('<td><img src="'+thePath+'shim.gif" width="9" height="1" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td><img src="'+thePath+'shim.gif" width="146" height="1" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td><img src="'+thePath+'shim.gif" width="36" height="1" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  
//if (wotPage=="welcome"){
//document.write('<tr><td colspan="3"><img src="'+thePath+'shim.gif" width="140" height="5" alt=""><'+'/td><'+'/tr>');
//document.write('<tr><td class="updateTxt" colspan="3">Last update: <font color="#000000">'+lastUpdate+'<'+'/font>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<'+'/td><'+'/tr>');
//}
  
  document.write('<'+'/table>');
  document.write('<'+'/td>');
  document.write('<td valign="top">');
  document.write('<table border="0" cellpadding="0" cellspacing="0">');
  document.write('<tr>');
  document.write('<td valign="top" rowspan="3"><img name="top_spacer" src="'+thePath+'top_spacer.gif" width="56" height="93" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="bar_top" src="'+thePath+'bar_top.gif" width="476" height="22" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="barend_top" src="'+thePath+'barend_top.gif" width="32" height="22" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top" rowspan="3"><img name="barend" src="'+thePath+'barend.gif" width="24" height="93" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  document.write('<tr><td valign="top" colspan="2"><img name="titlebar" src="'+thePath+'titlebar.gif" width="508" height="42" border="0" hspace="0" vspace="0"><'+'/td><'+'/tr>');
  document.write('<tr>');
  document.write('<td valign="top"><img name="bar_bottom" src="'+thePath+'bar_bottom.gif" width="476" height="29" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<td valign="top"><img name="barend_bottom" src="'+thePath+'barend_bottom.gif" width="32" height="29" border="0" hspace="0" vspace="0"><'+'/td>');
  document.write('<'+'/tr>');
  document.write('<tr><td colspan="4"><img src="'+thePath+'shim.gif" width="10" height="10" border="0" hspace="0" vspace="0"><'+'/td><'+'/tr>');
  document.write('<'+'/table>');
  document.write('<table border="0" cellpadding="0" cellspacing="0" width="95%">');
  document.write('<tr><td class="mainPagehead">'+theTitle+'<'+'/td><'+'/tr>');
  document.write('<tr><td><img src="'+thePath+'shim.gif" width="10" height="12" border="0" hspace="0" vspace="0"><'+'/td><'+'/tr>');
  document.write('<'+'/table>');
  document.write('<table border="0" cellpadding="0" cellspacing="0" width="95%">');
}

function swapImage(imgName,newImg){
  if ((navigator.appName == 'Netscape' && parseFloat(navigator.appVersion) >= 3) || (parseFloat(navigator.appVersion) >= 4)){		
		eval('document.' + imgName + '.src = "' + newImg + '"');
	}
}

function swap(id, newSrc) {
    var theImage = wotImage(document, id, 0);
    if (theImage) {
        theImage.src = newSrc;
    }
}

function wotImage(doc, name, j) {
    var theImage = false;
    if (doc.images) {
        theImage = doc.images[name];
    }
    if (theImage) {
        return theImage;
    }
    if (doc.layers) {
        for (j = 0; j < doc.layers.length; j++) {
            theImage = wotImage(doc.layers[j].document, name, 0);
            if (theImage) {
                return (theImage);
            }
        }
    }
    return (false);
}

function jumpWriter(colspanner){
 document.write('<tr><td colspan='+colspanner+' align="right"><a href="#top" ');
 document.write('onmouseover="dm(\'Click here to jump to the top of this page...\');return document.status;"');
 document.write('onmouseout="dm(\'\');return document.status;">');
 document.write('<img src="images/sitestuff/up_t.gif" alt="Jump to Top" width="12" height="7" border="0" vspace="8">');
 document.write('<'+'/a><'+'/td><'+'/tr>');
 document.write('<tr><td colspan='+colspanner+'>');
 document.write('<img src="images'+'/spacer.gif" width="20" height="6" hspace="0" vspace="0" border="0">');
 document.write('<'+'/td><'+'/tr>');
}

function writeFooter(thePath,wotSect){
  if (wotSect==1){theSuffix="_school"};
  if (wotSect==2){theSuffix="_curriculum"};
  if (wotSect==3){theSuffix="_parents"};
  if (wotSect==4){theSuffix="_gallery"};
 document.write('<'+'/td>');
 document.write('<'+'/tr>');
 document.write('<tr><td colspan="2"><img src="images/bgnd/shim.gif" width="10" height="28" border="0"><'+'/td><'+'/tr>');
 document.write('<tr><td colspan="2"><img src="images/bgnd/footerbar.gif" alt="" width="779" height="5"><'+'/td><'+'/tr>');
 document.write('<'+'/table><'+'/div>');
 document.write('<map name="buttonsquare">');
 if (wotSect!=2){
 document.write('<area shape="circle" coords="35,81, 26" href="curriculum.htm" title="Click to visit this section" ');
 document.write('onMouseOut="swap(\'nameplate\',\'images/bgnd/nameplate'+theSuffix+'.gif\'); swap(\'buttonsquare\',\'images/bgnd/buttonsquare'+theSuffix+'.gif\');" ');
 document.write('onMouseOver="swap(\'nameplate\',\'images/bgnd/nameplate_curriculum.gif\'); swap(\'buttonsquare\',\'images/bgnd/buttonsquare_curriculum.gif\');">');
 }
 if (wotSect!=4){
 document.write('<area shape="circle" coords="75,121, 26" href="gallery_nursery.htm" title="Click to visit this section" ');
 document.write('onMouseOut="swap(\'nameplate\',\'images/bgnd/nameplate'+theSuffix+'.gif\'); swap(\'buttonsquare\',\'images/bgnd/buttonsquare'+theSuffix+'.gif\');" ');
 document.write('onMouseOver="swap(\'nameplate\',\'images/bgnd/nameplate_gallery.gif\'); swap(\'buttonsquare\',\'images/bgnd/buttonsquare_gallery.gif\');">');
 }
 if (wotSect!=3){
 document.write('<area shape="circle" coords="116,81, 26" href="parental_involvement.htm" title="Click to visit this section" ');
 document.write('onMouseOut="swap(\'nameplate\',\'images/bgnd/nameplate'+theSuffix+'.gif\'); swap(\'buttonsquare\',\'images/bgnd/buttonsquare'+theSuffix+'.gif\');" ');
 document.write('onMouseOver="swap(\'nameplate\',\'images/bgnd/nameplate_parents.gif\'); swap(\'buttonsquare\',\'images/bgnd/buttonsquare_parents.gif\');">');
 }
 if (wotSect!=1){
 document.write('<area shape="circle" coords="75,41, 26" href="welcome.htm" title="Click to visit this section" ');
 document.write('onMouseOut="swap(\'nameplate\',\'images/bgnd/nameplate'+theSuffix+'.gif\'); swap(\'buttonsquare\',\'images/bgnd/buttonsquare'+theSuffix+'.gif\');" ');
 document.write('onMouseOver="swap(\'nameplate\',\'images/bgnd/nameplate_school.gif\'); swap(\'buttonsquare\',\'images/bgnd/buttonsquare_school.gif\');">');
 }
 document.write('<area shape="rect" coords="93,54,94,55" href="#" >');
 document.write('<'+'/map>');
}

function creditWriter(thePath){
 document.write('<div align="center"><table border="0" cellpadding="0" cellspacing="0" width="779"><tr><td class="creditFooter">');
 document.write('site design by <a class="creditFooter" href="http://www.macdigital-uk.com/" target="_blank">macdigital<'+'/a>');
 document.write('<'+'/td><'+'/tr><'+'/table><'+'/div>');
 
  document.write('<div align="center"><table border="0" width="'+pageSize+'" cellpadding="2" cellspacing="2">');
  if (online>0){
  document.write('<tr><td align="center"><a href="http://www.eazschools.org/index.htm">');
  document.write('<img src="'+thePath+'eazschoolsfooter_105x17.gif" alt="eazschools logo" ');
  document.write('title="Click to visit &quot;eazschools.org&quot;" ');
  document.write('width="105" height="17" border="0" hspace="0" vspace="0"></a></td></tr>');
  }
  else {
  document.write('<tr><td align="center"><a href="../index.htm">');
  document.write('<img src="'+thePath+'eazschoolsfooter_105x17.gif" alt="eazschools logo" ');
  document.write('title="Click to visit &quot;eazschools.org&quot;" ');
  document.write('width="105" height="17" border="0" hspace="0" vspace="0"></a></td></tr>');
  }
  document.write('<tr><td><img src="'+thePath+'shim.gif" alt="" width="10" height="6"></td></tr>');
  document.write('</table></div>');
 
 
 
}



