window.addEvent('domready', function(){
  justify_screen();
  //var myPicture = new Fx.Style("inhalt", 'opacity', {duration: 1});
  //myPicture.start(1,0.6);

  //GetMap();

});


function justify_screen()
{
 var x,y;
 if (self.innerHeight) // all except Explorer
 {
   x = self.innerWidth;
   y = self.innerHeight;
 }
 else if (document.documentElement && document.documentElement.clientHeight)
 // Explorer 6 Strict Mode
 {
   x = document.documentElement.clientWidth;
   y = document.documentElement.clientHeight;
 }
 else if (document.body) // other Explorers
 {
   x = document.body.clientWidth;
   y = document.body.clientHeight;
 }


 if (y<670) {
   document.body.scroll = "yes";
   document.body.style.overflow = "auto";
   document.getElementById("rahmen").style.height = "850px";
   document.getElementById("rahmenbg").style.height = "850px";
   /*document.getElementById("rahmen").style.marginTop = "auto";
   document.getElementById("rahmen").style.top = "-275px";*/
 } else {
   document.getElementById("rahmen").style.height = "1200px";
   document.getElementById("rahmenbg").style.height = "2000px"
    var objText = document.getElementById("inhalt");
    var newHeight = y - 350 - 20;
    objText.style.height = newHeight+"px";
  }
 
 if (x<1000) {
   document.body.scroll = "yes";
   document.body.style.overflow = "auto";
   document.getElementById("rahmen").style.marginLeft = "auto";
   document.getElementById("rahmen").style.left = "-478px";
 }


}

