var a = document.all;               //ältere Versionen von Internet Explorer

function Fensterweite () {
  if (window.innerWidth) {
    return window.innerWidth;
  } else if (document.body && document.body.offsetWidth) {
    return document.body.offsetWidth;
  } else {
    return 0;
  }
}

function Fensterhoehe () {
  if (window.innerHeight) {
    return window.innerHeight;
  } else if (document.body && document.body.offsetHeight) {
    return document.body.offsetHeight;
  } else {
    return 0;
  }
}

if (!window.Weite && window.innerWidth) {
  window.onresize = neuAufbau;
  Weite = Fensterweite();
  Hoehe = Fensterhoehe();
}

function neuAufbau () {
  if (Weite != Fensterweite() || Hoehe != Fensterhoehe())
    location.href = location.href;
}

function achtung() {
  var pleft = Math.round((Weite-900)/2)+3;
  var pheight = Math.round(Hoehe-180);

  self.document.all.Sortiment.style.left = pleft+"px";
  self.document.all.Sortiment.style.height = pheight+"px";
  self.document.all.Sortiment.style.display = "inline";

  if (!(a)) {
	pleft = pleft + 8;
	pheightff = pheight - 16;
  	self.document.all.Produkt.style.width = "680px";
  } else {
  }
  var sleft = pleft+172;
  self.document.all.Produkt.style.left = sleft+"px";

  var verhaltnis = Math.round((Weite/Hoehe)*100);
  var rechnen = ((174-verhaltnis)*3);

  var lleft = pleft+170+rechnen;

  if (!(a)) {
	var lheight = pheightff - 55;
  } else {
	var lheight = pheight - 55;
  }

  self.document.all.Produkt.style.height = pheight+"px";
  self.document.all.Produkt.style.display = "inline";


  var ktop = pheight+20;
  self.document.all.Kunde.style.left = pleft+"px";
  self.document.all.Kunde.style.top = ktop+"px";
  self.document.all.Kunde.style.display = "inline";

  var wkleft = pleft+586;
  self.document.all.Warenkorb.style.left = wkleft+"px";
  self.document.all.Warenkorb.style.top = ktop+"px";
  self.document.all.Warenkorb.style.display = "inline";

  var itop = ktop+120;
  self.document.all.Information.style.left = pleft+"px";
  self.document.all.Information.style.top = itop+"px";
  self.document.all.Information.style.display = "inline";

}

function achtunginfo() {
  var verhaltnis = Math.round((Weite/Hoehe)*100);
  var rechnen = ((174-verhaltnis)*3);
  var pleft = Math.round((Weite-900)/2)+3;
  var pheight = Math.round(Hoehe-225);
  if (!(a)) {
	pleft = pleft+rechnen;
  } else {
	pleft = pleft+rechnen;
  }
}
