var IE = (navigator.appName == "Microsoft Internet Explorer") ? 1 : 0;
var NS = (navigator.appName == "Netscape") ? 1 : 0;
var star = 0;
var lay;
var this_lay;

function SetLayer(arg) {
if (this_lay) {
    clearTimeout(this_lay);
}
if (star) {
    HideAll();
}
if(IE){
document.all["g" + arg].style.visibility = "visible";
}
if(NS){
document.layers["g" + arg].visibility="visible";
}
star = 1;
}

function timeHide(){
this_lay=setTimeout('HideAll()',600);
}

function HideLayer(lay) {
if(IE){
document.all["g" + lay].style.visibility = "hidden";
}
if(NS){
document.layers["g" + lay].visibility="hidden"
}
}

function HideAll() {
        HideLayer(1);
	HideLayer(2); 
	HideLayer(3);
	HideLayer(4);

}

function mOn() { clearTimeout(this_lay); }

function OpenWindow(url, w, h) {
open(url, "", 'menubar=no,directories=no,location=no,resizable=no, target=viv scrollbars=no,width='+w +',height='+h);
}

function MM_jumpMenu(selObj,restore){ //v3.0 
var url = selObj.options[selObj.selectedIndex].value; 
if (url) window.open(url); 
if (restore) selObj.selectedIndex=0; 
}




ns=window.navigator.appName == "Netscape"
ie=window.navigator.appName == "Microsoft Internet Explorer"

function openIt(x) {
if(ns) {
   showbox= document.layers[x+1]
     showbox.visibility = "show"
       showbox.top=44
    var items = 4      
     for (i=0; i<=items; i++) {
      elopen=document.layers[i]
        if (i != (x + 1)) { 
          elopen.visibility = "hide" }
            }
  }    

if(ie) {
   curEl = event.toElement
   curEl.style.background = "silver"   

   showBox = document.all.box[x];
     showBox.style.visibility = "visible";
        showBox.style.top = 40;
         
   var items = 4 
    for (i=0; i<items; i++) {
      elOpen=document.all.box[i]
       barEl=document.all.mnubar[i]
        if (i != x){ 
          elOpen.style.visibility = "hidden" 
          barEl.style.background = "#000000"
       }
     }
   }
}

function closeIt() {
   var items = 4 
     for (i=0; i<items; i++) {
       if(ie){
        document.all.box[i].style.visibility = "hidden"
          barEl=document.all.mnubar[i]
           barEl.style.background = "#000000" 
       }
       if(ns){ document.layers[i+1].visibility = "hide"}          
}
}	 


<!-- Begin
function movepic(img_name,img_src) {
document[img_name].src=img_src;
}
// End -->


<!--
if (document.images) {
  buttonon = new Image();
  buttonon.src = "../img/001_t.gif";
  buttonoff = new Image();
  buttonoff.src = "../img/001.gif";
  button1on = new Image();
  button1on.src = "../img/002_t.gif";
  button1off = new Image();
  button1off.src = "../img/002.gif"; 
  button2on = new Image();
  button2on.src = "../img/003_t.gif";
  button2off = new Image();
  button2off.src = "../img/003.gif";
  button3on = new Image();
  button3on.src = "../img/004_t.gif";
  button3off = new Image();
  button3off.src = "../img/004.gif";
}
function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}
// -->

