// Compacted by ScriptingMagic.com
var nextnum=1;var nextnum3=0;function advance_bar(x){if(typeof (eval(myJsProgressBarHandler)!="undefined")){myJsProgressBarHandler.setPercentage("element1",Math.round(x/imageorder.length*100))}}function start(){document.getElementById("rotateimage").style.width=rotatewidth+"px";document.getElementById("rotateimage").style.height=rotateheight+"px";nextnum2=nextnum-1;if(nextnum==0){nextnum2=imageorder.length-1}document.getElementById("rotateimage").src="http://www.stdominicsa.org/images/image.php?width="+rotatewidth+"&image="+imageorder[nextnum];document.getElementById("imagebox").style.backgroundImage="url(http://www.stdominicsa.org/images/transparent.gif)";loweropacity(document.getElementById("rotateimage"),0);var a=setTimeout("opacitytimer()",1000);document.getElementById("imagebox").removeChild(document.getElementById("center_bar"))}function getCookie(a){if(document.cookie.length>0){c_start=document.cookie.indexOf(a+"=");if(c_start!=-1){c_start=c_start+a.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end==-1){c_end=document.cookie.length}return unescape(document.cookie.substring(c_start,c_end))}}return ""}function preload(x){if(x<imageorder.length){eval('document.getElementById("image_at_bottom'+x+'").onLoad="preload('+(x+1)+')"');eval('document.getElementById("image_at_bottom'+x+'").src="http://www.stdominicsa.org/images/image.php?width="+rotatewidth+"&image="+imageorder['+x+"]")}else{setTimeout("start()",1000)}advance_bar(x)}function setCookie(a,b,c){var d=new Date();d.setDate(d.getDate()+c);document.cookie=a+"="+escape(b)+((c==null)?"":";expires="+d.toGMTString())}function checkCookie(){lastpic=getCookie("lastpic");if(lastpic!=null&&lastpic!=""){if(lastpic<=imageorder.length-1){nextnum=lastpic}}else{nextnum=1}}checkCookie();function finishopacity(){var a=imageorder[nextnum];loweropacity(document.getElementById("rotateimage"),99.99);document.getElementById("imagebox").style.backgroundImage="url("+document.getElementById("rotateimage").src+")";var b=setTimeout("loweropacity(document.getElementById('rotateimage'),0);",1000);var c=setTimeout("document.getElementById('rotateimage').src='http://www.stdominicsa.org/images/image.php?width='+rotatewidth+'&image='+imageorder[nextnum]",1500);nextnum++;if(nextnum>=imageorder.length){nextnum=0}setCookie("lastpic",nextnum,365);a=imageorder[nextnum]}function loweropacity(a,b){a.style.opacity=b/100;a.style.filter="alpha(opacity ="+b+")"}function opacitymanager(){if(opacity<=99){var a=setTimeout("opacitymanager()",30);loweropacity(document.getElementById("rotateimage"),opacity);opacity=opacity+3}else{a=setTimeout("finishopacity()",10);opacity=1}}function opacitytimer(){opacitymanager();var a=setTimeout("opacitytimer()",5500)}