var slideshowspeed; var fadeduration=300; //Speed of overlap of two slides: in milliseconds var fadeimages=new Array(); fadeimages[0]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_20160714_132059_1.jpg";fadeimages[1]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_20160714_132629.jpg";fadeimages[2]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_IMG_7275.jpg";fadeimages[3]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_IMG_7297_001.jpg";fadeimages[4]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_IMG_7312.jpg";fadeimages[5]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_IMG_7313_000.jpg";fadeimages[6]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_IMG_7316.jpg";fadeimages[7]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_IMG_7346.jpg";fadeimages[8]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_IMG_7350_1_000.jpg";fadeimages[9]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/Resized_convocation_pic1_080116.jpg";fadeimages[10]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/bhs_boardmember.jpg";fadeimages[11]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/bhs_teacher.jpg";fadeimages[12]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/ces_teacher.jpg";fadeimages[13]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/districtteacheroftheyear.jpg";fadeimages[14]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/jagsatolemissresized.jpg.jpg";fadeimages[15]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/jdcchamps2.jpg";fadeimages[16]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/jdcchampsresized.jpg.jpg";fadeimages[17]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/jej-teacher.jpg";fadeimages[18]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/resized_convocation_pic2_080116.jpg";fadeimages[19]="http://jdcsd.com/modules/groups/homepagefiles/cms/1641634/Image/slideshow/votech_boardmember.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 + ")"; }