//version 2.0 4.1.2000
  var xx,dx;
  var yy,dy;
  var nn;
  function Netscape(){
    return (document.layers!=null)
    }
  function IE(){
    return (document.all!=null)
    }


  function init() {
    if(Netscape()) initNS();
    else {if (IE()) initIE();
         else alert("Ihr Browser unterstuetzt noch keine Layer");
         }
    }

  function initIE(){
    yy=document.body.offsetHeight*3/4;
    xx=document.body.offsetWidth-parseInt(document.all['Home'].style.width)-20;
    moveIE();
    }
  function moveIE(){

    document.all['Home'].style.top=yy+document.body.scrollTop;
    document.all['Home'].style.left=xx+document.body.scrollLeft;

    setTimeout("moveIE()", 300);
    }

  function initNS(){
    yy=window.innerHeight*3/4;
    xx=window.innerWidth-document.layers['Home'].clip.width-20;
    move();
    }

  function move() {
    document.layers['Home'].pageY=yy+window.pageYOffset;
    document.layers['Home'].pageX=xx+window.pageXOffset;

    setTimeout("move()", 300);
  }
  function initEbene(){
    if(document.layers != null) {
      document.write('<layer id="Home" visibility=show>');
      document.write('<a href="index.htm"><img src="images/home.jpg"></a>');
      document.write('</layer>');
      }
    else if(document.all != null) {
      document.write('<div id="Home" style="position:absolute; visibility:visible; left: 0px; top: 100px; width: 100px">');
      document.write('<a href="index.htm"><img src="images/home.jpg"></a>');
      document.write('</div>');
      }
    }

function layerExists(){
  var arg;
  arg=layerExists.arguments[0];
  if (Netscape()) return (document.layers[arg]!=null); 
  else return (document.all[arg]);
  }
function initBildlager(){
  var i,args;
  args=initBildlager.arguments;
  if (document.Bildlager==null) document.Bildlager=new Array();
  for (i=0; i<args.length; i+=2){
    document.Bildlager[args[i]]=args[i+1];
    }
  }
function sourceOf(bildname){
  if (document.Bildlager!=null) return document.Bildlager[bildname]
  else return null;
  }
function showImage(){
    var Source;
    Source=sourceOf(showImage.arguments[0]);
    if ((navigator.appName=='Netscape')&&(document.Schaufenster!=null)){
      if ((Source!=null)&&(document.Schaufenster.document.Bild))      document.Schaufenster.document.Bild.src=Source;
    }else{
      if ((Source!=null)&&(document.Bild)) document.Bild.src=Source;
      }
  }
function preloadImages() { //v2.0
  if (document.images) {
    var imgFiles = preloadImages.arguments;
    if (document.preloadArray==null) document.preloadArray = new Array();
    var i = document.preloadArray.length;
    with (document) for (var j=0; j<imgFiles.length; j++) 
     if ((imgFiles[j]!=null)&&(imgFiles[j].charAt(0)!="#")){
      preloadArray[i] = new Image;
      preloadArray[i++].src = imgFiles[j];
  } }
}
function showSubMenu(){
  var arg,s,theObj;
  arg=showSubMenu.arguments[0];s=arg.substr(0,arg.length-1);
    hideSubMenus(s);
  if (Netscape() && document.layers != null) {
      if (document.layers[arg] != null) document.layers[arg].visibility='show';
      } else if (document.all != null) { //IE
         if (document.all[arg]!=null) document.all[arg].style.visibility='visible';
       }
  showImage(arg);
  for (var i=0; i<10; i+=1){//Bilder vorausladen
    preloadImages(sourceOf(arg+i));
    }
  }
function hideSubMenu(){
  var arg;
  arg=hideSubMenu.arguments[0];
  if (Netscape() && document.layers != null) {
      if (document.layers[arg] != null) document.layers[arg].visibility='hide';
      } else if (document.all != null) { //IE
         if (document.all[arg]!=null) document.all[arg].style.visibility='hidden';
         }
  }
function hideSubMenus(){
  var i,arg;
  showImage('Standard');
  arg=hideSubMenus.arguments[0];i=0;
  while (layerExists(arg+i)){
    hideSubMenus(arg+i);
    hideSubMenu(arg+i);
    i+=1;
    }
  }
function controlSound(sndAction,_sndObj) { //v2.0
  var sndObj = eval( _sndObj );
  if (sndObj != null) {
    if (sndAction=='stop') {
      sndObj.stop();
    } else {
      if (navigator.appName == 'Netscape' ) {
         sndObj.play();
      } else {
         if (document.WMP_DETECTED == null) {
            document.WMP_DETECTED = false;
            var i;
            for( i in sndObj )
               if ( i == "ActiveMovie" ) {
                  document.WMP_DETECTED = true;
                  break; }
         }
         if (document.WMP_DETECTED)
            sndObj.play();
         else if ( sndObj.FileName )
            sndObj.run();
}}}}
if (top.frames) {if(top.frames.length > 0)
      top.location.href=self.location}; //damit Datei nicht in Frames angezeigt

if ((document.URL.indexOf('index')<0)&&(document.URL.indexOf('htm')>0)){
    if (Netscape()||IE()){
      initEbene();
      init();
      }
    }
else {if ((document.all==null)&&(document.layers==null)) window.location.href = "index2.htm";}

