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

Pic[0] = ROOT+'images/framework/newpics/1.jpg'
Pic[1] = ROOT+'images/framework/newpics/2.jpg'
Pic[2] = ROOT+'images/framework/newpics/3.jpg'
Pic[3] = ROOT+'images/framework/newpics/4.jpg'
Pic[4] = ROOT+'images/framework/newpics/7.jpg'
Pic[5] = ROOT+'images/framework/newpics/9.jpg'
Pic[6] = ROOT+'images/framework/newpics/10.jpg'
Pic[7] = ROOT+'images/framework/newpics/11.jpg'
Pic[8] = ROOT+'images/framework/newpics/12.jpg'
Pic[9] = ROOT+'images/framework/newpics/13.jpg'
Pic[10] = ROOT+'images/framework/newpics/14.jpg'
  
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 Rotateimage() {


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('Rotateimage()', slideShowSpeed);
}


var Pic2 = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic2[0] = ROOT+'images/assets/outdoor.jpg'
Pic2[1] = ROOT+'images/assets/DSCF0004.jpg'
var t;
var j = 0;
var p2 = Pic2.length;
var preLoad2 = new Array();
for (i = 0; i < p2; i++) {
preLoad2[i] = new Image();
preLoad2[i].src = Pic2[i];
}



function Rotateimage2() {


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 = preLoad2[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p2 - 1)) j = 0;
t = setTimeout('Rotateimage2()', slideShowSpeed);
}
