function startAnimation(){document.getElementById("__loaderImage").style.backgroundImage="url("+cImageSrc+")",document.getElementById("__loaderImage").style.width=cWidth+"px",document.getElementById("__loaderImage").style.height=cHeight+"px",FPS=Math.round(100/cSpeed),SECONDS_BETWEEN_FRAMES=1/FPS,cPreloaderTimeout=setTimeout("continueAnimation()",SECONDS_BETWEEN_FRAMES/1e3)}function continueAnimation(){cXpos+=cFrameWidth,cIndex+=1,cIndex>=cTotalFrames&&(cXpos=0,cIndex=0),document.getElementById("__loaderImage")&&(document.getElementById("__loaderImage").style.backgroundPosition=-cXpos+"px 0"),cPreloaderTimeout=setTimeout("continueAnimation()",SECONDS_BETWEEN_FRAMES*1e3)}function stopAnimation(){clearTimeout(cPreloaderTimeout),cPreloaderTimeout=!1}function imageLoader(n,t){clearTimeout(cImageTimeout),cImageTimeout=0,genImage=new Image,genImage.onload=function(){cImageTimeout=setTimeout(t,0)},genImage.src=n}var cSpeed=11,cWidth=101,cHeight=79,cTotalFrames=8,cFrameWidth=101,cImageSrc="/images/sprites.gif",cImageTimeout=!1,cIndex=0,cXpos=0,cPreloaderTimeout=!1,SECONDS_BETWEEN_FRAMES=0;new imageLoader(cImageSrc,"startAnimation()")