// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below


Pic[0] = 'images/pic_school_001.jpg'
Pic[1] = 'images/pic_school_002.jpg'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
function movepic(img_name,img_src) {
document[img_name].src=img_src;
}
//Second Slide Show
// Set slideShowSpeed (milliseconds)
var slideShowSpeed2 = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration2 = 5;
// Specify the image files
var Pic2 = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic2[0] = 'images/pic_school_003.jpg'
Pic2[1] = 'images/pic_school_004.jpg'

// do not edit anything below this line
var t2;
var j2 = 0;
var p2 = Pic2.length;
var preLoad2 = new Array();
for (n = 0; n < p2; n++) {
preLoad2[n] = new Image();
preLoad2[n].src = Pic2[n];
}
function runSlideShow2() {
if (document.all) {
document.images.SlideShow2.style.filter="blendTrans(duration=5)";
document.images.SlideShow2.style.filter="blendTrans(duration=crossFadeDuration2)";
document.images.SlideShow2.filters.blendTrans.Apply();
}
document.images.SlideShow2.src = preLoad2[j2].src;
if (document.all) {
document.images.SlideShow2.filters.blendTrans.Play();
}
j2 = j2 + 1;
if (j2 > (p2 - 1)) j2 = 0;
t2 = setTimeout('runSlideShow2()', slideShowSpeed2);
}
function movepic2(img_name,img_src) {
document[img_name].src=img_src;
}

//Third Slide Show
// Set slideShowSpeed (milliseconds)
var slideShowSpeed3 = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration3 = 5;
// Specify the image files
var Pic3 = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic3[0] = 'images/pic_school_005.jpg'
Pic3[1] = 'images/pic_school_006.jpg'

// do not edit anything below this line
var t3;
var j3 = 0;
var p3 = Pic3.length;
var preLoad3 = new Array();
for (k = 0; k < p3; k++) {
preLoad3[k] = new Image();
preLoad3[k].src = Pic3[k];
}
function runSlideShow3() {
if (document.all) {
document.images.SlideShow3.style.filter="blendTrans(duration=5)";
document.images.SlideShow3.style.filter="blendTrans(duration=crossFadeDuration3)";
document.images.SlideShow3.filters.blendTrans.Apply();
}
document.images.SlideShow3.src = preLoad3[j3].src;
if (document.all) {
document.images.SlideShow3.filters.blendTrans.Play();
}
j3 = j3 + 1;
if (j3 > (p3 - 1)) j3 = 0;
t3 = setTimeout('runSlideShow3()', slideShowSpeed3);
}
function movepic3(img_name,img_src) {
document[img_name].src=img_src;
}

//Fourth Slide Show
// Set slideShowSpeed (milliseconds)
var slideShowSpeed4 = 4000;
// Duration of crossfade (seconds)
var crossFadeDuration4 = 5;
// Specify the image files
var Pic4 = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic4[0] = 'images/pic_school_007.jpg'
Pic4[1] = 'images/pic_school_008.jpg'

// do not edit anything below this line
var t4;
var j4 = 0;
var p4 = Pic4.length;
var preLoad4 = new Array();
for (h = 0; h < p4; h++) {
preLoad4[h] = new Image();
preLoad4[h].src = Pic4[h];
}
function runSlideShow4() {
if (document.all) {
document.images.SlideShow4.style.filter="blendTrans(duration=5)";
document.images.SlideShow4.style.filter="blendTrans(duration=crossFadeDuration4)";
document.images.SlideShow4.filters.blendTrans.Apply();
}
document.images.SlideShow4.src = preLoad4[j4].src;
if (document.all) {
document.images.SlideShow4.filters.blendTrans.Play();
}
j4 = j4 + 1;
if (j4 > (p4 - 1)) j4 = 0;
t4 = setTimeout('runSlideShow4()', slideShowSpeed4);
}
function movepic4(img_name,img_src) {
document[img_name].src=img_src;
}
