<?xml version="1.0" encoding="iso-8859-2"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-Strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="pl">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
  <meta http-equiv="Content-Language" content="pl" />
  <meta name="Author" content="Piechnat" />
  <title>&nbsp;</title>
<style type="text/css">
/*<![CDATA[*/

  body{ 
    padding: 0px; 
    margin: 10px;
    border: 0px;
    overflow: hidden;
    font: normal normal 11px Verdana, Tahoma; 
  }

  #main_img {
    visibility: hidden;
  }

/*]]>*/
</style>
<script type="text/javascript">
/*<![CDATA[*/

  var gUrl, gImg, gTxt, gWidth, gError = 0

  onload = function() {
    var d = document
    gUrl = d.location.search.substr(1)
    d.title = gUrl.replace(/.*[\\\/]/, '')
    gImg = d.getElementById('main_img')
    gTxt = d.getElementById('main_txt')
    gTxt.innerHTML = 'Trwa pobieranie rozmiarów obrazka...'
    gWidth = gImg.width
    gImg.onerror = function() {
      gError = 1
      gTxt.innerHTML = 'Wystąpił błąd podczas ładowania obrazka.'
    }
    gImg.src = gUrl
    setTimeout('checkSize()', 250)
  }

  function checkSize() {
    if (gError) return
    if (gImg.width != gWidth) {
      gTxt.style.display = 'none'
      gImg.style.visibility = 'visible'
      resizeTo(gImg.width + 6 + 20, gImg.height + 25 + 20)
    } else {
      setTimeout('checkSize()', 250)
    }
  }

/*]]>*/
</script>
</head>
<body>
  <div>
    <p id="main_txt"></p>
    <img id="main_img" src="" alt="" />
  </div>
</body>
</html>