/*
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Lugner Kino City Lib

Author:			manfred.schneiderbauer@world-direct.at
Version:		1.03
Last Changed	2005-11-28

|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
*/

// Fit the reservation system iframe's height
function fitContentIframe(){
  if(document.body)
    {
      if(document.body.innerHTML)
        {
          // treat iframe
          if(d('ifrContent'))
            {
              d('ifrContent').style.position='absolute';
              d('ifrContent').style.top='32px';
              d('ifrContent').style.height=Number(document.body.clientHeight-222)+'px';
              
              // IE 6 quirk: try to prevent IE6 rendering error
              if(!window.ie6HasRerendered&&isIE55up)
                {
                  window.ie6HasRerendered=true;
                  window.setTimeout("document.body.style.display='none';",150);
                  window.setTimeout("document.body.style.display='inline';",250);
                }
            }
          //treat left corner image on gecko  
          if(d('imCorner')&&isGecko)
            { 
              // at first, equalize window width, if necessary
              var corr=447;
              if((String(document.body.clientWidth/2)).indexOf('.')!=-1){corr=448;}
              // then position the element which is out of the flow due to a Gecko rendering error with partly pos'd elements
              var imC=d('imCorner');
              imC.style.left=Number(document.body.clientWidth/2-corr)+'px';
            }
            
        }else{
        window.setTimeout("fitContentIframe();",25000);
        }
    }else{
    window.setTimeout("fitContentIframe();",25000);
    }
window.setTimeout("fitContentIframe();",2500);
}
fitContentIframe();