function getProgress(){$.ajax({url:"script/progress.php",cache:!1}).done(function(a){progress=parseInt(a),progress>99?progress=99:0>progress&&(progress=0),progressUpdate(0)})}
function setDigits(a){$(".progressDigits img").hide();var b=Math.floor(a/10);$(".progressDigits img#d"+b).show(),$(".progressDigits img#n"+(a-10*b)).show()}
function progressUpdate(){var b={};b.width=progress+"%",$(".progress").animate(b,0),setDigits(progress)}
function coverHide(a){$("#cover").delay(a).fadeOut(500)}
function bgShow(a){$("#screenBG").hide(0).delay(a).effect("pulsate",200).delay(4e3).effect("pulsate",100)}
function start(){getProgress(),setDigits(0),window.setInterval(getProgress,1e4),coverHide(0),bgShow(1e3)}var progress=0;