var gblPhotoShufflerDivId="cinema";var gblPhotoShufflerImgId="film";var gblImg=new Array("themes/ruccio/images/film/foto2.jpg","themes/ruccio/images/film/foto3.jpg","themes/ruccio/images/film/foto4.jpg","themes/ruccio/images/film/foto5.jpg","themes/ruccio/images/film/foto6.jpg","themes/ruccio/images/film/foto1.jpg");var gblPauseSeconds=4.00;var gblFadeSeconds=1.45;var gblRotations=100;var gblDeckSize=gblImg.length;var gblOpacity=100;var gblOnDeck=0;var gblStartImg;var gblImageRotations=gblDeckSize*(gblRotations+1);window.onload=photoShufflerLaunch;function photoShufflerLaunch(){var theimg=document.getElementById(gblPhotoShufflerImgId);gblStartImg=theimg.src;document.getElementById(gblPhotoShufflerDivId).style.backgroundImage='url('+gblImg[gblOnDeck]+')';setTimeout("photoShufflerFade()",gblPauseSeconds*1000)}function photoShufflerFade(){var theimg=document.getElementById(gblPhotoShufflerImgId);var fadeDelta=100/(30*gblFadeSeconds);if(gblOpacity<2*fadeDelta){gblOpacity=100;if(gblImageRotations<1)return;photoShufflerShuffle();setTimeout("photoShufflerFade()",gblPauseSeconds*1000)}else{gblOpacity-=fadeDelta;setOpacity(theimg,gblOpacity);setTimeout("photoShufflerFade()",30)}}function photoShufflerShuffle(){var thediv=document.getElementById(gblPhotoShufflerDivId);var theimg=document.getElementById(gblPhotoShufflerImgId);theimg.src=gblImg[gblOnDeck];setOpacity(theimg,100);gblOnDeck=++gblOnDeck%gblDeckSize;if(--gblImageRotations<1){gblImg[gblOnDeck]=gblStartImg}thediv.style.backgroundImage='url('+gblImg[gblOnDeck]+')'}function setOpacity(obj,opacity){opacity=(opacity==100)?99.999:opacity;obj.style.filter="alpha(opacity:"+opacity+")";obj.style.KHTMLOpacity=opacity/100;obj.style.MozOpacity=opacity/100;obj.style.opacity=opacity/100}
