
var i=0;

function licznik()
 {
  document.getElementById('ladowanie').innerHTML = "<img src=/grafika/loader.gif><br>Postęp ładowania gry "+i+"%";
  i++;
  if(i>100)
   {
    clearInterval(ldr);
    setTimeout("powieksz()",1500);
   }
 }

ldr=setInterval("licznik()",100);

function powieksz()
 {
  document.getElementById("game").style.width=640;
  document.getElementById("game").style.height=480;
  document.getElementById("game").style.left=Math.round((screen.width - 650)/2);

  document.getElementById("ladowanie").style.visibility='hidden';
  document.getElementById("ladowanie").style.position='absolute';
  document.getElementById("ladowanie").style.top=-300;
  
  document.getElementById("googlebox").style.visibility='hidden';
  document.getElementById("googlebox").style.position='absolute';
  document.getElementById("googlebox").style.top=-300;

  var a=document.location;
  if(document.location.hash.length==0) document.location=document.location+"#gra";
 }
