/* Pre loader */

function getRandom(min, max)

{  

return(Math.floor(Math.random() * (max - min)) + min);

}





tmp_max = 12;

tmp_min = 8;



minPub = getRandom(tmp_min,tmp_max); // Secondi

var i = 0;









function start_timer(game){



for(a=minPub;a!=0;a--){



setTimeout("document.getElementById('second').innerHTML = '"+a+"'",(minPub-a)*1000);



}



setTimeout("document.getElementById('swf').style.visibility = 'visible';",minPub*1000);

setTimeout("document.getElementById('swf').style.height = '450px';",minPub*1000);

setTimeout("document.getElementById('pub_box_game').style.display = 'none'",minPub*1000);
/*
setTimeout('var flashvars = {};var params = {wmode:"transparent"};var attributes = {};swfobject.embedSWF("'+game+'", "swf", "100%", "100%", "9.0.0","expressInstall.swf", flashvars, params, attributes);',(minPub*1000)-1000);
*/
}

function inizialize_loader(game){



document.getElementById("swf").style.visibility = "hidden";

document.getElementById("swf").style.height = "0px";

document.getElementById("pub_box_game").style.display = "block";

start_timer(game);



}




