 // Script fŸr die Positionierung von Boxen
 //
 // (c) 2008 by Peter Fischer.
 
    var xsize, ysize;
    var centralDiv, inhaltohnebildDiv, abdeckungDiv;
    var inhaltHeight;
    
    function ResizeElements() {
      xsize = window.innerWidth;
      ysize = window.innerHeight;
      if ( typeof xsize == 'undefined' )
      {
      	xsize = document.body.clientWidth;
      	ysize = document.body.clientHeight;
      	if ( typeof xsize == 'undefined' )
      	{
	  xsize = document.documentElement.clientWidth;
	  ysize = document.documentElement.clientHeight;
      	}
      }
      // alert(typeof xsize + ", innerwidth: " + window.innerWidth + ", innerheight: " + window.innerHeight);
      centralDiv.style.left = Math.max(( (xsize - 1000) / 2 ),10) + "px";
      inhaltohnebildDiv.style.left = Math.max(( (xsize - 1000 ) / 2 + 250),260 ) + "px";
      abdeckungDiv.style.left = Math.max(( (xsize - 1000 ) / 2 + 250),260 ) + "px";
    }
    
    function Init() {
      centralDiv = document.getElementById("central");
      inhaltohnebildDiv = document.getElementById("inhaltohnebild");
      abdeckungDiv = document.getElementById("abdeckung");
      ResizeElements();
    }

    function resizeInit() {
      ResizeElements();
    }
    
    function bilderAusgeben(bild,h,w,titel,url)  {
      document.write("<tr valign=\"top\">");
      document.write("<td class=\"abbinder\" width=\"200\">");
      document.write("<div align=\"center\"><img src=\"" + bild + "\" height=\"" + h + "\" width=\"" + w + "\"><br></div>");
      document.write("</td>");
      document.write("<td class=\"abbinder\">");
      document.write("<div align=\"center\"><p align=\"left\"><strong>" + titel + "</strong></p>");
      if ( url != "" )
      {
        document.write("<p align=\"right\"><a href=\"" + url + "\">| Details |</a></p>");
      }
      document.write("</div>");
      document.write("</td>");
      document.write("</tr>");
    }
    
    function impressionenAusgeben(bild,h,w)  {
      document.write("<tr valign=\"top\">");
      document.write("<td class=\"abbinder\" width=\"450\">");
      document.write("<div align=\"left\"><img src=\"" + bild + "\" height=\"" + h + "\" width=\"" + w + "\"><br></div>");
      document.write("</td>");
      document.write("</tr>");
    }
