var slideshowspeed; var fadeduration=300; //Speed of overlap of two slides: in milliseconds var fadeimages=new Array(); fadeimages[0]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/GetFileAttachment_700x242.jpg";fadeimages[1]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/IMG_0903_700x264.jpg";fadeimages[2]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/IMG_3254_700x253.jpg";fadeimages[3]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/IMG_5251_700x236.jpg";fadeimages[4]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/IMG_5281_700x299.jpg";fadeimages[5]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/IMG_5331_700x253.jpg";fadeimages[6]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/IMG_5537_700x278.JPG";fadeimages[7]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/IMG_5860_700x310.JPG";fadeimages[8]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/IMG_6005_700x206.JPG";fadeimages[9]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/cute for slideshow_700x250.jpg";fadeimages[10]="http://gsd.schoolfusion.us/modules/groups/homepagefiles/cms/1380671/Image/slideshow/graduation for slide show_700x200.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 + ")"; }