<!--


self.name="mainwin";

var section;

browsver = parseInt(navigator.appVersion);
browsname = parseInt(navigator.appName);


//-----------------------------------------------------------------------------------------


IE = document.all;
NS4 = document.layers;
NS6 = document.getElementById;

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


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

 if (NS4) onResize = NSfixfunk;


function checkcssfunk()
{if (!document.csschecklayer)
  {if (!IE && !NS6)
    {/*location.href = "index_alt.shtml";*/}
   else {}
  }
 else {}
}



function preloadfunk() {
//checkcssfunk();
//showthis ="nulllayer";
//showhidefunk;
}



//-----------------------------------------------------------------------------------------



function ecap(e){
thisevent = e;
}

if (NS6 && !IE){addEventListener("mouseover",ecap, true);}

//if (NS4){ document.captureEvents(Event.MOUSEOVER);
//document.onmouseover = ecap;}



function showhidefunk(showthis)
{

  if (document.all || document.getElementById)
{
thislayer = document.getElementById? document.getElementById(showthis):document.all(showthis);

thatlayer = document.getElementById? document.getElementById('aboutlayer'):document.all('aboutlayer');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('classroomlayer'):document.all('classroomlayer');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('resourceslayer'):document.all('resourceslayer');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('actionlayer'):document.all('actionlayer');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('eventslayer'):document.all('eventslayer');
thatlayer.style.visibility='hidden';

thatlayer = document.getElementById? document.getElementById('searchlayer'):document.all('searchlayer');
thatlayer.style.visibility='hidden';

thislayer.style.visibility='visible';

}

else if (document.layers)
{thislayer = eval("document." + showthis);

document.aboutlayer.visibility="hidden";

document.classroomlayer.visibility="hidden";

document.resourceslayer.visibility="hidden";

document.actionlayer.visibility="hidden";

document.eventslayer.visibility="hidden";

document.searchlayer.visibility="hidden";

thislayer.visibility="visible";
if (andshowthis){andthislayer.visibility="visible";}

}


}



function positionfunk(setthis,tohere){
xcoord = 96;
if(section=="home"){xcoord=60};

  if (document.all || document.getElementById){
thelayer = document.getElementById? document.getElementById(setthis):document.all(setthis);
//thelayer.style.left=tohere.clientX-10;
thelayer.style.left=xcoord;
thelayer.style.top=tohere.clientY-7}

  else if (document.layers){
thelayer = eval("document." + setthis);
//thelayer.left=e.x-10;
//thelayer.top=e.y+12
e = tohere;
//thelayer.left=e.pageX-10;
thelayer.left=xcoord;
thelayer.top=e.pageY-7}

}


//-->