var slideshowspeed; var fadeduration=300; //Speed of overlap of two slides: in milliseconds var fadeimages=new Array(); fadeimages[0]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/031.JPG";fadeimages[1]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/063.JPG";fadeimages[2]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/2013_Honors_Band.jpg";fadeimages[3]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/20160108_090424.jpg";fadeimages[4]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/BROZYNA IPAD 3.JPG";fadeimages[5]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/Bullying Poster Contest 006.JPG";fadeimages[6]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/CROP WITH MRS_ D.jpg";fadeimages[7]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/DSCN4314.JPG";fadeimages[8]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/FullSizeRender (4).jpg";fadeimages[9]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/FullSizeRender (7).jpg";fadeimages[10]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/IMG_3808.JPG";fadeimages[11]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/IMG_3871.JPG";fadeimages[12]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/IMG_9661.JPG";fadeimages[13]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/P1120574.JPG";fadeimages[14]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/P1120579.JPG";fadeimages[15]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/battle.JPG";fadeimages[16]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/medread.jpg";fadeimages[17]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/photo (60).JPG";fadeimages[18]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/photo 3.JPG";fadeimages[19]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/photo(2).JPG";fadeimages[20]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/photo(3).JPG";fadeimages[21]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/photo(4).JPG";fadeimages[22]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/photo.JPG";fadeimages[23]="http://hanover.groupfusion.net/modules/groups/homepagefiles/cms/34135/Image/slideshow/switch it up.JPG"; var slideshowpicnum = 0; var slideshowcount = fadeimages.length; //preload of images var preLoad = new Array(); for (i = 0; i < slideshowcount; i++) { preLoad[i] = new Image(); preLoad[i].src = fadeimages[i]; } //Called function from cms_ui.php function fadeshow(fadeimages, width, height, var1, speed, var2, var3) { //alert(slideshowcount); if(slideshowcount==0) { document.write("
"); return; } if(slideshowcount==1) { document.write("
"); document.write(""); document.write("
"); return; } document.write("
"); var slideshow = document.getElementById('slideshowrotator'); //
slideshow.innerHTML='
'; var slideshowOuter = document.getElementById('slideshowOuter'); slideshowOuter.innerHTML=""; slideshowOuter.innerHTML=slideshowOuter.innerHTML+""; slideshowspeed=speed; startSlideshow(); } //Start the slideshow function startSlideshow() { var first = slideshowpicnum; slideshowpicnum = slideshowpicnum + 1; if (slideshowpicnum > (slideshowcount - 1)) slideshowpicnum = 0; var second = slideshowpicnum; blendimage('rotatorImg1', 'rotatorImg2', fadeimages[first], fadeimages[second], fadeduration); setTimeout('startSlideshow()', slideshowspeed); } function blendimage(imageid1, imageid2, imagefile1, imagefile2, millisec) { var speed = Math.round(millisec / 100); var timer = 0; changeOpac(100, imageid1); changeOpac(0, imageid2); document.getElementById(imageid1).src = imagefile1; document.getElementById(imageid2).src = imagefile2; var o; for(i = 0; i <= 100; i+=10) { o=100-i; //setTimeout("changeOpac(" + o + ",'" + imageid1 + "')",(timer * speed)); setTimeout("changeOpac(" + i + ",'" + imageid2 + "')",(timer * speed)); timer+=10; } } function changeOpac(opacity, id) { var object = document.getElementById(id).style; object.opacity = (opacity / 100); object.MozOpacity = (opacity / 100); object.KhtmlOpacity = (opacity / 100); object.filter = "alpha(opacity=" + opacity + ")"; }