var slideshowspeed; var fadeduration=300; //Speed of overlap of two slides: in milliseconds var fadeimages=new Array(); fadeimages[0]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/136.JPG";fadeimages[1]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/2014-15 JV Team for Web.JPG";fadeimages[2]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/ABTRE-149173-24487536.jpg";fadeimages[3]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/DSC_0027.JPG";fadeimages[4]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/DSC_1551.JPG";fadeimages[5]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/Hannah_460x340.jpg";fadeimages[6]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/IMG_1954.JPG";fadeimages[7]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/IMG_20141007_154134497_HDR.jpg";fadeimages[8]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/IMG_2316.JPG";fadeimages[9]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/IMG_2414.JPG";fadeimages[10]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/IMG_4458.jpg";fadeimages[11]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/IMG_4920_497x394.jpg";fadeimages[12]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/JV edited.jpg";fadeimages[13]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/JVBTRE-149173-24487531.jpg";fadeimages[14]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/Pep2_499x281.JPG";fadeimages[15]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/S L Photoshop 2_490x327.jpg";fadeimages[16]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/THS Band camp.jpg";fadeimages[17]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/THS Pic (1 of 1)-5 edit_500x268.jpg";fadeimages[18]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/TRE-149173-24487498.jpg";fadeimages[19]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/TRE-149173-24487505.jpg";fadeimages[20]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/TRE-149173-24487517.jpg";fadeimages[21]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/TRE-149173-24487520.jpg";fadeimages[22]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/Tiger_490x351.JPG";fadeimages[23]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/Volley edited.jpg";fadeimages[24]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/Z Golf Team Picture.jpg";fadeimages[25]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/drumline.jpg";fadeimages[26]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/edited 2.jpg";fadeimages[27]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/girls golf (10).JPG";fadeimages[28]="http://ths.gilchristschools.schoolfusion.us/modules/groups/homepagefiles/cms/1559718/Image/slideshow/jv cheer (1).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 + ")"; }