
function testen(){
   alert("Hallo");
}

function changeBGOn(bestellenBut){
  document.getElementById("bestellenBut").style.backgroundColor = "#D3DAED";
  document.getElementById("bestellenBut").style.color = "#000000";
}

function changeBGOff(bestellenBut){
  document.getElementById("bestellenBut").style.backgroundColor = "#000000";
  document.getElementById("bestellenBut").style.color = "#FFFFFF";
}

function setNaviBoxMouseOver(site){
 switch (site) {
  case "indexTab":
    document.getElementById("indexTab").style.backgroundColor = "#D3DAED";
    break;
  case "materialTab":
    document.getElementById("materialTab").style.backgroundColor = "#D3DAED";
    break;
  case "productionTab":
    document.getElementById("productionTab").style.backgroundColor = "#D3DAED";
    break;
  case "careandcleanTab":
    document.getElementById("careandcleanTab").style.backgroundColor = "#D3DAED";
    break;
  case "imprintTab":
    document.getElementById("imprintTab").style.backgroundColor = "#D3DAED";
    break;
  case "contactTab":
    document.getElementById("contactTab").style.backgroundColor = "#D3DAED";
    break;
  case "linksTab":
    document.getElementById("linksTab").style.backgroundColor = "#D3DAED";
    break;
  case "onlineshopTab":
    document.getElementById("onlineshopTab").style.backgroundColor = "#D3DAED";
    break;
  default:
    alert("jupp0");
    break;
 }
}

function setNaviBoxMouseOut(site){
 switch (site) {
  case "indexTab":
    document.getElementById("indexTab").style.backgroundColor = "#5B5B5B";
    break;
  case "materialTab":
    document.getElementById("materialTab").style.backgroundColor = "#5B5B5B";
    break;
  case "productionTab":
    document.getElementById("productionTab").style.backgroundColor = "#5B5B5B";
    break;
  case "careandcleanTab":
    document.getElementById("careandcleanTab").style.backgroundColor = "#5B5B5B";
    break;
  case "imprintTab":
    document.getElementById("imprintTab").style.backgroundColor = "#5B5B5B";
    break;
  case "contactTab":
    document.getElementById("contactTab").style.backgroundColor = "#5B5B5B";
    break;
  case "linksTab":
    document.getElementById("linksTab").style.backgroundColor = "#5B5B5B";
    break;
  case "onlineshopTab":
    document.getElementById("onlineshopTab").style.backgroundColor = "#5B5B5B";
    break;
  default:
    alert("jupp1");
    break;
 }
}

function setNavi(site){
 switch (site) {
  case "indexTab":
    document.getElementById("indexTab").style.backgroundColor = "#D3DAED";
    break;
  case "materialTab":
    document.getElementById("materialTab").style.backgroundColor = "#D3DAED";
    break;
  case "productionTab":
    document.getElementById("productionTab").style.backgroundColor = "#D3DAED";
    break;
  case "careandcleanTab":
    document.getElementById("careandcleanTab").style.backgroundColor = "#D3DAED";
    break;
  case "imprintTab":
    document.getElementById("imprintTab").style.backgroundColor = "#D3DAED";
    break;
  case "contactTab":
    document.getElementById("contactTab").style.backgroundColor = "#D3DAED";
    break;
  case "linksTab":
    document.getElementById("linksTab").style.backgroundColor = "#D3DAED";
    break;
  case "onlineshopTab":
    document.getElementById("onlineshopTab").style.backgroundColor = "#D3DAED";
    break;
  default:
    alert("jupp2");
    break;
 }
}

function setShopBoxMouseOver(site){
 switch (site) {
  case "uebersichtTab":
    document.getElementById("uebersichtTab").style.backgroundColor = "#D3DAED";
    break;
  case "sucheTab":
    document.getElementById("sucheTab").style.backgroundColor = "#D3DAED";
    break;
  case "agbsTab":
    document.getElementById("agbsTab").style.backgroundColor = "#D3DAED";
    break;
  case "warenkorbTab":
    document.getElementById("warenkorbTab").style.backgroundColor = "#D3DAED";
    break;
  case "loeschenTab":
      document.getElementById("loeschenTab").style.backgroundColor = "#D3DAED";
      document.getElementById("wloeschen").style.color = "#000000";
      break;
  case "bestellenTab":
      document.getElementById("bestellenTab").style.backgroundColor = "#D3DAED";
      document.getElementById("wbestellen").style.color = "#000000";
      break;
  default:
    alert("jupp3");
    break;
 }
}

function setShopBoxMouseOut(site){
 var inhalt = "";
 inhalt = document.getElementById("ShopTabID").value;
 switch (site) {
  case "uebersichtTab":
      if (inhalt == "uebersichtTab"){
       document.getElementById("uebersichtTab").style.backgroundColor = "#D3DAED";
      }
      else{
       document.getElementById("uebersichtTab").style.backgroundColor = "#5B5B5B";
      }
      break;
  case "sucheTab":
      if (inhalt == "sucheTab"){
       document.getElementById("sucheTab").style.backgroundColor = "#D3DAED";
      }
      else{
       document.getElementById("sucheTab").style.backgroundColor = "#5B5B5B";
      }
      break;
  case "agbsTab":
      if (inhalt == "agbsTab"){
       document.getElementById("agbsTab").style.backgroundColor = "#D3DAED";
      }
      else{
       document.getElementById("agbsTab").style.backgroundColor = "#5B5B5B";
      }
      break;
  case "warenkorbTab":
      if (inhalt == "warenkorbTab"){
       document.getElementById("warenkorbTab").style.backgroundColor = "#D3DAED";
      }
      else{
       document.getElementById("warenkorbTab").style.backgroundColor = "#5B5B5B";
      }
      break;
  case "loeschenTab":
      document.getElementById("loeschenTab").style.backgroundColor = "#000000";
      document.getElementById("wloeschen").style.color = "#D3DAED";
      break;
  case "bestellenTab":
      document.getElementById("bestellenTab").style.backgroundColor = "#000000";
      document.getElementById("wbestellen").style.color = "#D3DAED";
      break;
  default:
    alert("jupp4");
    break;
 }
}

function setShop(site){
 switch (site) {
  case "uebersichtTab":
    document.getElementById("uebersichtTab").style.backgroundColor = "#D3DAED";
    document.getElementById("ShopTabID").value = "uebersichtTab";
    break;
  case "sucheTab":
    document.getElementById("sucheTab").style.backgroundColor = "#D3DAED";
    document.getElementById("ShopTabID").value = "sucheTab";
    break;
  case "agbsTab":
    document.getElementById("agbsTab").style.backgroundColor = "#D3DAED";
    document.getElementById("ShopTabID").value = "agbsTab";
    break;
  case "warenkorbTab":
    document.getElementById("warenkorbTab").style.backgroundColor = "#D3DAED";
    document.getElementById("ShopTabID").value = "warenkorbTab";
    break;
  default:
    alert("jupp5");
    break;
 }
}

function BreiteFestlegen () {
  window.innerWidth = document.Eingabe.Feld.value;
}

var oben = 100;
var links = 200;
var hoehe = 80;
var schrittweite = 1;

function higherDiv(){
  hoehe = hoehe + schrittweite;
  oben = oben - schrittweite;
  document.getElementById("moveDiv").style.height = hoehe + "px";
  document.getElementById("moveDiv").style.top = oben + "px";
  if (hoehe != 120){
   window.setTimeout("higherDiv()", 5);
  }
  else{
   moveDiv();
  }
}

function moveDiv(){
  oben = oben - schrittweite;
  links = links + schrittweite;
  document.getElementById("moveDiv").style.top = oben + "px";
  //document.getElementById("moveDiv").style.left = links + "px";
  if (oben != 10){
   window.setTimeout("moveDiv()", 5);
  }
  else{
    document.getElementById("moveDiv").style.visibility = "hidden";
    document.getElementById("headDiv").style.visibility = "visible";
    document.getElementById("introDiv").style.visibility = "hidden";
    showNav();
  }
}

var X = new Array("F", "E", "D", "C", "B", "A", "9", "8", "7", "6", "5", "4", "3", "2", "1", "0");
var x1 = 0, x2 = 0;
var i = 0;
var zeigen = "";

function showNav() {
  document.getElementById("tabMainLeftUp").style.backgroundColor = "#" + X[x1] + X[x2] + X[x1] + X[x2] + X[x1] + X[x2];
  document.getElementById("coverDiv").style.backgroundColor = "#" + X[x1] + X[x2] + X[x1] + X[x2] + X[x1] + X[x2];
  x2 = x2 + 1;
  if (x2 % 16 == 0) {
    x2 = 0;
    x1 = x1 + 1;
  }
  i++;
  if (i < 256){
    window.setTimeout("showNav()", 10);
  }
  else{
    document.getElementById("tabMainLeftUp").style.borderWidth ="1px";
    document.getElementById("tabMainLeftUp").style.borderStyle ="solid";
    document.getElementById("tabMainLeftUp").style.borderColor ="#959695";
    document.getElementById("coverDiv").style.visibility = "hidden";
    document.getElementById("partnerDiv").style.visibility = "visible";
  }
}
