  function Swap(name, pfad) {
    document.images[name].src = pfad;
  }

  function ShowHide(layer, leer, action) {
    if(action == 'hide'){
      document.getElementById(layer).style.visibility='hidden';
    }
    if(action == 'show'){
      document.getElementById(layer).style.visibility='visible';
    }

    document.getElementById("Layer1").style.left=Rand1;
    document.getElementById("Layer2").style.left=Rand2;
    document.getElementById("Layer3").style.left=Rand3;
    document.getElementById("Layer4").style.left=Rand4;
    document.getElementById("Layer5").style.left=Rand5;
    document.getElementById("Layer51").style.left=Rand51;
    document.getElementById("Layer6").style.left=Rand6;
    document.getElementById("Layer61").style.left=Rand61;
  }

  function init() {
    var leer = "";
  }

  function Fensterweite () {
    if (window.innerWidth) {
      return window.innerWidth;
    } else if (document.body && document.body.offsetWidth) {
      return document.body.offsetWidth;
    } else {
      return 0;
    }
  }

  function neuAufbau () {
    if (Weite != Fensterweite())
    location.href = location.href;
  }

/* Überwachung von Netscape initialisieren */
  if (!window.Weite && window.innerWidth) {
    window.onresize = neuAufbau;
    Weite = Fensterweite();
  }

/* Pop-up Fenster mit variabler Höhe & Breite */
  function fenster(url, hoehe, breite){
    if(breite=="") { breite ="510";}
    if(hoehe=="") {hoehe ="350";}
    Name=window.open(url,"Info","width=" + breite + ",height=" + hoehe + ",scrollbars=yes,resizable=yes")
    Name.focus();
  }

  function allfadein() {
    i = 1;
    while(i<=16){
      fadein("klein" + i);
	  i++;
    }
  }
  
/* Farbwahl bei geölten Produkten */
  function setfarbe(url,name,nummer){
    document.images["farbbild" + nummer].src=url;
    document.forms["produktform" + nummer].farbe.value=name;
  }
  
function styleswitcher(x) {
if(x == 1){
     document.getElementById('style').href = "/layout2.css";
}else {
     document.getElementById('style').href = "/layout.css";
}


}
  