            var x;
            var y;
            var w,h;
            var bild;
            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<="1004"){
                w=1004;
                
            }else{
                w=x*0.85;
  
            }
           
            if(y<="780"){
                h=700;
                bild=(h*0.15)*0.99;
            }else{
                h=y*0.95;
                bild=(h*0.15)*0.99;
            }
     
      document.write("<style type=text/css>");
      document.write("div#Startbox{ width:"+w+"px;height:"+h+"px;border:0px solid black;")
      document.write("text-align:left;margin:0.5% auto; background-color: #fff;}");
      document.write("div#bildleiste img{");
      document.write("border:0px solid black;");
      document.write("height:"+bild+"px;}");
      document.write("</style>");

 
