<!--


self.name="mainwin";

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;}


/*var curscrollnum = "0";
var thisscrollnum = "0";
var maxscrollnum = "20";*/

var layersarr = new Array('aboutlayer','admissionlayer','academicslayer','graduatelayer','campuslayer','alumnilayer','parentslayer','instituteslayer','institutesinstlayer','institutesaffillayer','newslayer','newswhatsnewslayer');

function showhidefunk(showthis,andshowthis)
{

  if (document.all || document.getElementById)
{

thislayer = document.getElementById? document.getElementById(showthis):document.all(showthis);
if (andshowthis) {andthislayer = document.getElementById? document.getElementById(andshowthis):document.all(andshowthis);}

for (var i=0; i<layersarr.length; i++) {
	thatlayer = document.getElementById? document.getElementById(layersarr[i]):document.all(layersarr[i]);
	if (layersarr[i] != showthis) {
		thatlayer.style.visibility='hidden';
	}
}

/*thislayer = document.getElementById? document.getElementById(showthis):document.all(showthis);
if (andshowthis) {andthislayer = document.getElementById? document.getElementById(andshowthis):document.all(andshowthis);}

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

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

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

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

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

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

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

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

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

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


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

		thatlayer = document.getElementById? document.getElementById('newswhatsnewslayer'):document.all('newswhatsnewslayer');
		thatlayer.style.visibility='hidden';*/


/*    if (section == "home"){
       if (thisscrollnum != "0"){
          if (curscrollnum != "0") {
          thatscrolllayer = "scrolllayer" + curscrollnum;
          thatlayer = document.getElementById? document.getElementById(thatscrolllayer):document.all(thatscrolllayer);
             if (thatlayer.style.visibility='visible'){thatlayer.style.visibility='hidden'}
             else {
                   for (i=1; i<=maxscrollnum; i=i+1){
                   thatscrolllayer = "scrolllayer" + i;
                   thatlayer = document.getElementById? document.getElementById(thatscrolllayer):document.all(thatscrolllayer);
                   thatlayer.style.visibility='hidden';
                       }
                  }
             }
          curscrollnum = thisscrollnum;
          }
       }*/


    if (document.all){ thisel=event.srcElement;}
    else if (document.getElementById){ thisel=thisevent.target;}
thisparel=document.getElementById? thisel.parentNode : thisel.parentElement;
//alert(thisel.parentElement.parentElement.id);
if (thisparel.id=="el_headnav"){
	//do nothing 
   }
else { thislayer.style.visibility='visible';
if (andshowthis){andthislayer.style.visibility='visible';}
   }

}

else if (document.layers)
{thislayer = eval("document." + showthis);
 if (andshowthis){andthislayer = eval("document." + andshowthis);}
document.aboutlayer.visibility="hidden";

document.admissionlayer.visibility="hidden";

document.academicslayer.visibility="hidden";

document.graduatelayer.visibility="hidden";

document.campuslayer.visibility="hidden";

document.alumnilayer.visibility="hidden";

document.parentslayer.visibility="hidden";

document.instituteslayer.visibility="hidden";
		document.institutesinstlayer.visibility="hidden";
		document.institutesaffillayer.visibility="hidden";

document.newslayer.visibility="hidden";
		document.newswhatsnewslayer.visibility="hidden";


/*    if (section == "home"){
//       if (thisscrollnum != "0"){
//          if (curscrollnum != "0") {
//          thatlayer = eval("document.scrolllayer" + curscrollnum);
//             if (thatlayer.visibility='visible'){thatlayer.visibility='hidden'}
//             else {
                   for (i=1; i<=maxscrollnum; i=i+1){
                   thatlayer = eval("document.scrolllayer" + i);
                   thatlayer.visibility='hidden';
                       }
//                  }
//             }
//          curscrollnum = thisscrollnum;
//          }
       }*/


/*thisel=thisevent.target;
thisparel=thisel.parentElement;
if (thisparel.name=="el_headnav"){
//do nothing
}
else { 
thislayer.visibility="visible";
if (andshowthis){andthislayer.visibility="visible";}
}*/

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

}


}



function positionfunk(setthis,tohere){

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

  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.top=e.pageY+12}

}


//function setscrollnumfunk(setthisscrollnum){thisscrollnum=setthisscrollnum}



/*function subnavbrfunk(thisbrel,thissection) {
if (IE || NS6){
	if (section == thissection) {
//	thisbrel = document.getElementById? document.getElementById('el_subnavbr'):document.all('el_subnavbr');
//	thisbrel = this;
//	thisparbrel=document.getElementById? thisbrel.parentNode : thisbrel.parentElement;
//		if (thisparbrel.id=="el_headnav"){
//alert(thisbrel.id);
		if (thisbrel.id == "el_headnav"){
			//do nothing 
		   }
		else {document.write("<br>.");}
	}
	else {document.write("<br>");}
}
}*/


/*function subnavbrfunk() {
if (IE || NS6){
thisbrel = document.getElementById? document.getElementById('el_subnavbr'):document.all('el_subnavbr');
thisparbrel=document.getElementById? thisbrel.parentNode : thisbrel.parentElement;
	if (thisparbrel.id=="el_headnav"){
		//do nothing 
	   }
	else {document.write("<br>");}
}
}
*/


function website(form) {
        var myindex=form.select.selectedIndex;
        var gohere=form.select.options[myindex].value;
  if(gohere != "none"){
        window.open(gohere,'newwin','toolbar=yes,resizable=yes,location=yes,status=yes,scrollbars=yes');
       }
  else {}
    }


function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}





//-->