<!--

/* Function to load teachers popup window*/
function popupteach() {
  window.open('tp/teachers.html','teach','width=720,height=550,location=no,menubar=yes,status=no,resizable=yes,scrollbars=yes');
  window.open('tp/eisnote.html','note','width=400,height=200,left=150,top=200,location=no,menubar=no,status=no,resizable=yes,scrollbars=no');
}

/* Function to make sure layers work in both IE4 and Netscape.  Loaded with command in BODY tag*/
function init(){
	if (navigator.appName == "Netscape"){
         if (document.layers) {
		layerRef="document.layers";
            b1='["'; b2='"]';
		styleSwitch="";
         }
         if (document.getElementById) {
		layerRef="document.getElementById";
            b1='("'; b2='")';
		styleSwitch=".style";
         }
	}else{
		layerRef="document.all";
            b1='["'; b2='"]';
		styleSwitch=".style";
	} 
}

/* Two functions to hide and show layers */

var timerset=0

function showLayer(layerName){
	eval(layerRef+b1+layerName+b2+styleSwitch+'.visibility="visible"');
}
        
function hideLayer(layerName){
      timerset=0
	eval(layerRef+b1+layerName+b2+styleSwitch+'.visibility="hidden"');
}  


/* Functions to start animation revealing a background image, when the mouse is over a letter link */

function revealbg(letter) {
   layerText="<img src='img/1"+letter+"a.gif'>";
   toShow=letter+"anim";
   toHide=letter+"fg";
   writelayer(toShow,layerText);
   showLayer(toShow);
   hideID = setTimeout('hideLayer(toHide)', 50); timerset=1
}

function hidebg(letter) {
   if (timerset!=0) {clearTimeout('hideID'); timerset=0; }
   toShow=letter+"fg";
   toHide=letter+"anim";
   showLayer(toShow);
   hideLayer(toHide);
}

function reveal(l1,l2) {
   hideLayer(l1);  hideLayer(l2);
}

function cover(l1,l2) {
   showLayer(l1);  showLayer(l2);
}

function showall() {
 showLayer('wtT2'); showLayer('wtB');   showLayer('wtC');     
 showLayer('eqT2'); showLayer('eqB');    
 showLayer('ccT2'); showLayer('ccB');    
 showLayer('cnT2'); showLayer('cnB');    
 showLayer('qzT2'); showLayer('qzB');    
 showLayer('mtT2a'); showLayer('mtT2b'); showLayer('mtT2c'); showLayer('mtT2d');
 showLayer('mtB1'); showLayer('mtB2'); showLayer('mtB3'); showLayer('mtB4');  
}

function startup() {
   init();
   showall();
}



//-->

