ns=window.navigator.appName == "Netscape"
ie=window.navigator.appName == "Microsoft Internet Explorer"



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function openIt(x) {
 if(ns) {

   showbox= document.layers[x];
  
   showbox.visibility = "show";
   showbox.top=100
        if (x == 0){
        showbox.left=158;
		}
		else if (x == 1){
        showbox.left=278;
		}
		else if (x == 2){
        showbox.left=398;
		}
		else if (x == 3){
        showbox.left=518;
		}
		else if (x == 4){
        showbox.left=638;
		}
      
     var items = 5;
     for (i=0; i<=items; i++) {
      elOpen=document.layers[i]
        if (i != x){
        elOpen.visibility = "hide";
		}
     }
 }    

 if(ie) {
   //curEl = event.toElement
   //curEl.style.background = "blue"   
   showBox = document.all.box[x];
   showBar = document.all.mnubar[x];
   //showDiv = document.all.mnudiv[x];
   //showBox.style.border="1px solid #8FD8F5";
   showBox.style.visibility = "visible";
   showBar.style.background = "red";
   //showDiv.style.background = "red";
   showBox.style.top = 100;
         
   var items = 5;
    for (i=0; i<items; i++) {
       elOpen=document.all.box[i];
       barEl=document.all.mnubar[i];
	   //showDiv = document.all.mnudiv[i];

        if (i != x){ 
          elOpen.style.visibility = "hidden";
		  barEl.style.background = "#00764a";
 	  	  //showDiv.style.background = "#00764a";
        
       }
    }
  }
}

function HideAll() {
 if(ns) {       
    var items = 5;
     for (i=0; i<=items; i++) {
      elopen=document.layers[i];
      elopen.visibility = "hide";
	 }
 }    

 if(ie) {
   var items = 5; 
    for (i=0; i<items; i++) {
      elOpen=document.all.box[i];
      barEl=document.all.mnubar[i];
	  //showDiv = document.all.mnudiv[i];
      elOpen.style.visibility = "hidden";
	  barEl.style.background = "#00764a";
 	  //showDiv.style.background = "#00764a";
      }
   }
}

var tabshow1=0;
var tabshow2=0;

function showpop1() {
if (tabshow1 == 0)
 if(ns) {
   hidepop();
   document.popdiv1.visibility = "show";
   tabshow1 = 1;
   }
  if (ie) {
    hidepop();
    popdiv1.style.visibility = "visible";
    tabshow1 = 1;
	}
  }

 function showpop2() {
 if (tabshow2 == 0)
 if(ns) {
   //hidepop();
   document.popdiv2.visibility = "show";
   tabshow2 = 1;
   }
  if (ie) {
    //hidepop();
    popdiv2.style.visibility = "visible";
    tabshow2 = 1;
	}
  }
 
 
 function hidepop() {
	if (ns) {
        document.popdiv1.visibility = "hide";
		document.popdiv2.visibility = "hide";
		tabshow1 = 0;
		tabshow2 = 0;
		}
	if (ie) {
        popdiv1.style.visibility = "hidden";
		popdiv2.style.visibility = "hidden";
		tabshow1 = 0;
		tabshow2 = 0;
		}
    }