var test = 0;

var win;
function popup(url,win,x,y) {
var str = "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=no,top=20,left=2,width="+x+",height="+y+"";
win = window.open(url, "win",str)
z = parseFloat(navigator.appVersion);
if (navigator.appName.substring(0.8) == "Netscape" || z > 4){
this.win.focus();
}
}

function clean ()
{
  if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt (0)<'5'))
  {
  window.document.b.visibility="hide";
  window.document.Submenu1.visibility="hide";
  window.document.Submenu2.visibility="hide";
  window.document.Submenu3.visibility="hide";
  window.document.Submenu4.visibility="hide";
  window.document.Submenu7.visibility="hide";
  return;
  }
 if (navigator.appVersion.charAt (0)<'5')
    {
    var layers=document.all.tags ("div");
    }
    else {
    var layers=document.getElementsByTagName("div");
    }
 layers[0].style.visibility='hidden'; 
 layers[3].style.visibility='hidden';
 layers[6].style.visibility='hidden';
 layers[9].style.visibility='hidden';
 layers[12].style.visibility='hidden';
 layers[19].style.visibility='hidden';
 return;
}

function menu (i)
{

switch(i)
 {
  case 1:
   {
    
	test = 1; 
	
	if ((navigator.appName=='Netscape') && (navigator.appVersion.substring(0,1) == "4"))
	{
	}
	else {
	window.document.MM_001.src='img/MM_001_B.gif';
	window.document.MM_002.src='img/MM_002_G.gif';
	window.document.MM_003.src='img/MM_003_G.gif';
	window.document.MM_004.src='img/MM_004_G.gif';
	window.document.MM_005.src='img/MM_005_G.gif';
	window.document.MM_006.src='img/MM_006_G.gif';
	window.document.MM_007.src='img/MM_007_G.gif'; }
		  
    if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)<'5'))
     {
      window.document.Submenu1.visibility="show";
      window.document.Submenu2.visibility="hide";
      window.document.Submenu3.visibility="hide";
      window.document.Submenu4.visibility="hide"; 
	  window.document.Submenu7.visibility="hide";
     return;
     }
    if (navigator.appVersion.charAt (0)<'5')
    {
    var layers=document.all.tags ("div");
    }
    else {
    var layers=document.getElementsByTagName("div");
    }
    layers[0].style.visibility='visible'; 
    layers[3].style.visibility='visible';
    layers[6].style.visibility='hidden';
    layers[9].style.visibility='hidden';
    layers[12].style.visibility='hidden';
	layers[19].style.visibility='hidden';
    return;
   }
 
  case 2:
   {
    
	test = 2; 
	
	if ((navigator.appName=='Netscape') && (navigator.appVersion.substring(0,1) == "4"))
	{
	}
	else {
	window.document.MM_001.src='img/MM_001_G.gif';
	window.document.MM_002.src='img/MM_002_B.gif';
	window.document.MM_003.src='img/MM_003_G.gif';
	window.document.MM_004.src='img/MM_004_G.gif';
	window.document.MM_005.src='img/MM_005_G.gif';
	window.document.MM_006.src='img/MM_006_G.gif';
	window.document.MM_007.src='img/MM_007_G.gif'; }
		  
    if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)<'5'))
     {
      window.document.Submenu1.visibility="hide";
      window.document.Submenu2.visibility="show";
      window.document.Submenu3.visibility="hide";
      window.document.Submenu4.visibility="hide"; 
	  window.document.Submenu7.visibility="hide";
     return;
     }
    if (navigator.appVersion.charAt (0)<'5')
    {
    var layers=document.all.tags ("div");
    }
    else {
    var layers=document.getElementsByTagName("div");
    }
    layers[0].style.visibility='visible'; 
    layers[3].style.visibility='hidden';
    layers[6].style.visibility='visible';
    layers[9].style.visibility='hidden';
    layers[12].style.visibility='hidden';
	layers[19].style.visibility='hidden';
    return;
   }
 
 case 3:
   {
    
	test = 3;
	if ((navigator.appName=='Netscape') && (navigator.appVersion.substring(0,1) == "4"))
	{
	}
	else {
	window.document.MM_001.src='img/MM_001_G.gif';
	window.document.MM_002.src='img/MM_002_G.gif';
	window.document.MM_003.src='img/MM_003_B.gif';
	window.document.MM_004.src='img/MM_004_G.gif';
	window.document.MM_005.src='img/MM_005_G.gif';
	window.document.MM_006.src='img/MM_006_G.gif';
	window.document.MM_007.src='img/MM_007_G.gif';
	}
	   
    if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)<'5'))
     {
      window.document.Submenu1.visibility="hide";
      window.document.Submenu2.visibility="hide";
      window.document.Submenu3.visibility="show";
      window.document.Submenu4.visibility="hide"; 
	  window.document.Submenu7.visibility="hide";
     return;
     }
    if (navigator.appVersion.charAt (0)<'5')
    {
    var layers=document.all.tags ("div");
    }
    else {
    var layers=document.getElementsByTagName("div");
    }
    layers[0].style.visibility='visible'; 
    layers[3].style.visibility='hidden';
    layers[6].style.visibility='hidden';
    layers[9].style.visibility='visible';
    layers[12].style.visibility='hidden';
	layers[19].style.visibility='hidden';
    return;
   }
 
 case 4:
   {
    
	test = 4;
	if ((navigator.appName=='Netscape') && (navigator.appVersion.substring(0,1) == "4"))
	{
	}
	else {
	window.document.MM_001.src='img/MM_001_G.gif';
	window.document.MM_002.src='img/MM_002_G.gif';
	window.document.MM_003.src='img/MM_003_G.gif';
	window.document.MM_004.src='img/MM_004_B.gif';
	window.document.MM_005.src='img/MM_005_G.gif';
	window.document.MM_006.src='img/MM_006_G.gif';
	window.document.MM_007.src='img/MM_007_G.gif';
	}
	
    if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)<'5'))
     {
      window.document.Submenu1.visibility="hide";
      window.document.Submenu2.visibility="hide";
      window.document.Submenu3.visibility="hide";
      window.document.Submenu4.visibility="show"; 
	  window.document.Submenu7.visibility="hide";
     return;
     }
    if (navigator.appVersion.charAt (0)<'5')
    {
    var layers=document.all.tags ("div");
    }
    else {
    var layers=document.getElementsByTagName("div");
    }
    layers[0].style.visibility='visible'; 
    layers[3].style.visibility='hidden';
    layers[6].style.visibility='hidden';
    layers[9].style.visibility='hidden';
    layers[12].style.visibility='visible';
	layers[19].style.visibility='hidden';
    return;
   }

 case 7:
   {
   	
	test = 7;
	
	if ((navigator.appName=='Netscape') && (navigator.appVersion.substring(0,1) == "4"))
	{
	}
	else {
	window.document.MM_001.src='img/MM_001_G.gif';
	window.document.MM_002.src='img/MM_002_G.gif';
	window.document.MM_003.src='img/MM_003_G.gif';
	window.document.MM_004.src='img/MM_004_G.gif';
	window.document.MM_005.src='img/MM_005_G.gif';
	window.document.MM_006.src='img/MM_006_G.gif';
	window.document.MM_007.src='img/MM_007_B.gif';
	}
	
    if ((navigator.appName=='Netscape') && (navigator.appVersion.charAt(0)<'5'))
     {
      window.document.Submenu1.visibility="hide";
      window.document.Submenu2.visibility="hide";
      window.document.Submenu3.visibility="hide";
      window.document.Submenu4.visibility="hide"; 
	  window.document.Submenu7.visibility="show";
     return;
     }
    if (navigator.appVersion.charAt (0)<'5')
    {
    var layers=document.all.tags ("div");
    }
    else {
    var layers=document.getElementsByTagName("div");
    }
    layers[0].style.visibility='visible'; 
    layers[3].style.visibility='hidden';
    layers[6].style.visibility='hidden';
    layers[9].style.visibility='hidden';
    layers[12].style.visibility='hidden';
	layers[19].style.visibility='visible';
    return;
   }
 
 
 }

}

function change_out (nr) {

     if (nr == 1) {
	    window.document.MM_001.src='img/MM_001_G.gif';
		return;
	  }

     if (nr == 2) {	 	 
	    if (test == 2) {
          return;
        }
        else {
	      window.document.MM_002.src='img/MM_002_G.gif';
		  return;
		}
	  }
	  
	 if (nr == 3) {
        if (test == 3) {
          return;
        }
        else {
	      window.document.MM_003.src='img/MM_003_G.gif';
		  return;
		}
	  }
	 
	 if (nr == 4) {
        if (test == 4) {
          return;
        }
        else {
	      window.document.MM_004.src='img/MM_004_G.gif';
		  return;
		}
	  }
	  
	 if (nr == 5) {
	    window.document.MM_005.src='img/MM_005_G.gif';
		return;
	  }
	 
	 if (nr == 6) {
	    window.document.MM_006.src='img/MM_006_G.gif';
	    return;
	  }
	 
	 if (nr == 7) {
	    if (test == 7) {
          return;
        }
        else {
	      window.document.MM_007.src='img/MM_007_G.gif';
		  return;
		}
	  }

} 

function change_over (nr) {

    if (nr == 1) {
	    window.document.MM_001.src='img/MM_001_B.gif';
		return;
	  }

     if (nr == 2) {	    
	    window.document.MM_002.src='img/MM_002_B.gif';
		return;
	  }
	  
	 if (nr == 3) {
        window.document.MM_003.src='img/MM_003_B.gif';	  
		return;
	  }
	 
	 if (nr == 4) {
        window.document.MM_004.src='img/MM_004_B.gif';
	    return;
	  }
	  
	 if (nr == 5) {
	    window.document.MM_005.src='img/MM_005_B.gif';
		return;
	  }
	 
	 if (nr == 6) {
	    window.document.MM_006.src='img/MM_006_B.gif';
	    return;
	  }
	 
	 if (nr == 7) {
        window.document.MM_007.src='img/MM_007_B.gif';
		return;
	  }

} 

