
var Hoehe = 0;

//berechnet die hoehe der divs neu
function neuAufbau()
{
	if (Hoehe != Fensterhoehe())
		Hoehe = Fensterhoehe();
		
	if(document.getElementById("warenkorbdiv") != null && Hoehe > 254)
		document.getElementById("warenkorbdiv").style.height = Hoehe - 254;
		
	if(document.getElementById("contentdiv") != null && Hoehe > 207)
		document.getElementById("contentdiv").style.height = Hoehe - 207;
	
	if(document.getElementById("comparediv") != null && Hoehe > 200)
		document.getElementById("comparediv").style.height = Hoehe - 200;
	
	if(document.getElementById("detaildiv") != null && Hoehe > 180)
		document.getElementById("detaildiv").style.height = Hoehe - 180;
	
	if(document.getElementById("meinshopdiv") != null && Hoehe > 243)
		document.getElementById("meinshopdiv").style.height = Hoehe - 243;
	
	if(document.getElementById("contentpage") != null && Hoehe > 110)
		document.getElementById("contentpage").style.height = Hoehe - 110;
	
}


function Fensterhoehe() {
  var myWidth = 0, myHeight = 0;
  if( typeof( window.innerWidth ) == 'number' ) {
    //Non-IE
    myHeight = window.innerHeight;
  } else if( document.documentElement &&
      ( document.documentElement.clientHeight ) ) {
    //IE 6+ in 'standards compliant mode'
    myHeight = document.documentElement.clientHeight;
  } else if( document.body &&  document.body.clientHeight ) {
    //IE 4 compatible
    myHeight = document.body.clientHeight;
  }
  
  return myHeight;
}







