// JavaScript Document

function visible(arg) {
  if( navigator.appName == "Netscape" ) {
    setTimeout("document.getElementById('"+arg+"').style.visibility='visible'",101);
    setTimeout("document.getElementById('"+arg+"').style.visibility='visible'",100);
    setTimeout("document.getElementById('"+arg+"').style.visibility='visible'",100);
  } else {
    document.getElementById(arg).style.visibility='visible';
  }
}
function hidden(arg) {
  //setTimeout("visible('"+arg+"')",1000);
  //setTimeout("document.getElementById('"+arg+"').style.visibility='hidden'",100);
 //alert("navigator.appName:" + navigator.appName + ", Version:" + navigator.appVersion + "!");
 if( navigator.appName == "Netscape" ) {
    setTimeout("document.getElementById('"+arg+"').style.visibility='hidden'",100);
  } else {
    document.getElementById(arg).style.visibility='hidden';
  }
}

function navbar(command, args) {


   // THIS WILL BE ACTIVATED BY BUTTON NUMBER 1 OF YOUR NAVBAR
   if ( command == "0" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
        parent.main.location.href="de/home.php";
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER
	    document.getElementById('home').className="navi_over";
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT 
	    document.getElementById('home').className="navi";
	  }
   }

   if ( command == "1" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
 		document.getElementById('proto_subnavi').style.visibility='hidden';
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER
  	    visible('proto_subnavi');
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT 
        hidden('proto_subnavi');
	  }
   }

   if ( command == "11" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
        parent.main.location.href="de/snow.php";
        hidden('proto_subnavi');
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER
	    document.getElementById('snow').className="subnavi_over";
	    event.returnValue = false;
  	    visible('proto_subnavi');
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT
	    document.getElementById('snow').className="subnavi";
        hidden('proto_subnavi');
	  }
   }
   if ( command == "12" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
        parent.main.location.href="de/water.php";
        hidden('proto_subnavi');
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER
	    document.getElementById('water').className="subnavi_over";
	    event.returnValue = false;
  	    visible('proto_subnavi');
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT 
	    document.getElementById('water').className="subnavi";
        hidden('proto_subnavi');
	  }
   }
   if ( command == "13" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
        parent.main.location.href="de/wheel.php";
        hidden('proto_subnavi');
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER 
	    document.getElementById('wheel').className="subnavi_over";
	    event.returnValue = false;
  	    visible('proto_subnavi');
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT
        hidden('proto_subnavi');
	    document.getElementById('wheel').className="subnavi";
	  }
   }

   if ( command == "2" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
        parent.main.location.href="de/events.php";
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER 
	    document.getElementById('events').className="navi_over";
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT 
	    document.getElementById('events').className="navi";
	  }
   }

   if ( command == "3" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
        parent.main.location.href="de/news.php";
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER 
	    document.getElementById('news').className="navi_over";
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT 
	    document.getElementById('news').className="navi";
	  }
   }


   if ( command == "4" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
        parent.main.location.href="de/company.php";
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER 
	    document.getElementById('company').className="navi_over";
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT 
	    document.getElementById('company').className="navi";
	  }
   }

   if ( command == "5" ) {
      if ( args == "click" ) { // ACTIVATED ON CLICK 
        parent.main.location.href="de/links.php";
	  }
      if ( args == "over") { // ACTIVATED ON MOUSEOVER 
	    document.getElementById('links').className="navi_over";
	  }
      if ( args == "out" ) { // ACTIVATED ON MOUSEOUT 
	    document.getElementById('links').className="navi";
	  }
   }

}







