/* Pre loader */
function getRandom(min, max)
{  
return(Math.floor(Math.random() * (max - min)) + min);
}


tmp_max = 13;
tmp_min = 13;

minPub = getRandom(tmp_min,tmp_max); // Secondi
var i = 0;




function start_timer(){

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);

}
function inizialize_loader(){
	document.getElementById("swf").style.visibility = "hidden";
document.getElementById("swf").style.height = "0px";
document.getElementById("pub_box_game").style.display = "block";
start_timer();
}


