var HasLoaded = false;
function sizeCheck(){
alert(window.innerWidth);
}


if (navigator.appName == "Netscape" & navigator.appVersion.toLowerCase().indexOf('mac') !=-1)
 {
 document.write('<link rel="stylesheet" type="text/css" href="/mac_netstyle.css">')   
 }
else if (navigator.appName == "Netscape" )
 {
 document.write('<link rel="stylesheet" type="text/css" href="/netstyle.css">')   
 }
else
 {  
 document.write('<link rel="stylesheet" type="text/css" href="/winstyle.css">')     
 }
function hide(id) {

 if (document.layers) {
  document.layers[id].visibility = 'hidden';
  }
 else if (document.all) {
  if (HasLoaded==true){
  document.all[id].style.visibility = 'hidden';
}
  }
 }

function show(id) {

 if (document.layers) {
  document.layers[id].visibility = 'visible';
  }
 else if (document.all) {
  if (HasLoaded==true){
  document.all[id].style.visibility = 'visible';
}
 }
}
function hideAll() {
 hide('LayerHome');
 hide('LayerApply');
 hide('LayerAbout');
 hide('LayerClasses');
 hide('LayerContact');
 hide('LayerProStu');
 hide('LayerStudentServ');
}

function hideSec() {
if (over==false){
 hide('LayerAbout');
 }
}
function ValNun() {
 if (document.SearchForm.search.value=='Search') { document.SearchForm.search.value='';}
}
function ValSearch() {
 if (document.SearchForm.search.value=='') { document.SearchForm.search.value='Search';}
} 
 
 if(document.images) {

  ButtonHome = new Image
  ButtonHome.src = "/images/home.gif"

  ButtonHome2 = new Image
  ButtonHome2.src = "/images/home_on.gif"
  
  ButtonAbout = new Image
  ButtonAbout.src = "/images/about.gif"

  ButtonAbout2 = new Image
  ButtonAbout2.src = "/images/about_on.gif"  

  ButtonApply = new Image
  ButtonApply.src = "/images/apply.gif"

  ButtonApply2 = new Image
  ButtonApply2.src = "/images/apply_on.gif"
  
  ButtonClasses = new Image
  ButtonClasses.src = "/images/classes.gif"

  ButtonClasses2 = new Image
  ButtonClasses2.src = "/images/classes_on.gif"
  
  ButtonContact = new Image
  ButtonContact.src = "/images/contact.gif"

  ButtonContact2 = new Image
  ButtonContact2.src = "/images/contact_on.gif"  
  
  ButtonPros = new Image
  ButtonPros.src = "/images/pros.gif"

  ButtonPros2 = new Image
  ButtonPros2.src = "/images/pros_on.gif" 
  
  ButtonStudent = new Image
  ButtonStudent.src = "/images/student.gif"

  ButtonStudent2 = new Image
  ButtonStudent2.src = "/images/student_on.gif"     
  }

document.onclick = hideAll;

function OpenWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}
