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 (x<1200 || y<770) {
    document.body.scroll = "yes";
    document.body.style.overflow = "auto";
  }
   
  if (y<770) {
    document.getElementById("rahmen_seite").style.height = "800px";
    document.getElementById("inhalt").style.height = "500px";
  }
*/  

  if (x<1200) {
    document.getElementById("inhalt_rahmen").style.marginLeft = "auto";
    document.getElementById("inhalt_rahmen").style.left = "0px";
    document.getElementById("rahmen").style.width = "1559px";
    document.getElementById("rahmen").style.marginLeft = "auto";
    document.getElementById("rahmen").style.left = "-359px";    
    document.body.scroll = "yes";
    document.body.style.overflow = "auto";    
  } 
  
  if (y<900) {    
    document.body.scroll = "yes";
    document.body.style.overflow = "auto";           
  }   
}


window.addEvent('domready', function(){
  justify_screen();
  //alert("tes")
});


