var ehStart = new Array();

 $(document).ready(function(){
   //justifyDocument();

    for (var i = 0; i < ehStart.length; ++i) {
      eval("try { " + ehStart[i] + " } catch(e) {} ");
    }

   try {
    googleMapsInit();
   } catch (e) {}

   //alert( $("#inhalt").height() );


 });


 $(window).resize(function(){
   //justifyDocument();
 });


function justifyDocument() {


  var height = $("#inhalt").height();
  var newHeight = height + 480;
  if ( newHeight > $(window).height() )
    $("#hintergrund").css("height", newHeight + "px");
  else
    $("#hintergrund").css("height", $(window).height() + "px");

  var width = $(window).width();
  var newWidth = width + ( (1920 - width) / 2 );
  $("#hintergrund").css("width", newWidth + "px");
return;


  //Inhaltsbereich anpassen
  var height = $(window).height();
  var width = $(window).width();
  var newHeight = height - 270;
  $("#inhalt").css("height", newHeight + "px");

  if (height < 675) {
    $("body").css("overflow", "auto");
    document.body.scroll = "yes";
  } else {
    $("body").css("overflow", "hidden");
    document.body.scroll = "no";

  }

  if (width < 940) {
    $("body").css("overflow", "auto");
    document.body.scroll = "yes";
    $("#rahmen").css("margin-left", "auto");
    $("#rahmen").css("left", "-475px");
  } else {
    $("body").css("overflow", "hidden");
    document.body.scroll = "no";
    $("#rahmen").css("margin-left", "-960px");
    $("#rahmen").css("left", "50%");

  }


}
