// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 10000;
// Duration of crossfade (seconds)
var crossFadeDuration = 10000;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = '/img/head/20.png'
Pic[1] = '/img/head/21.png'
Pic[2] = '/img/head/22.png'
Pic[3] = '/img/head/23.png'
//Pic[4] = '/img/head/5.jpg'
//Pic[5] = '/img/head/6.jpg'
//Pic[6] = '/img/head/7.jpg'
//Pic[7] = '/img/head/8.jpg'
//Pic[8] = '/img/head/9.jpg'
//Pic[9] = '/img/head/10.jpg'
//Pic[10] = '/img/head/11.jpg'
//Pic[11] = '/img/head/12.jpg'
//Pic[12] = '/img/head/13.jpg'
//Pic[13] = '/img/head/14.jpg'
//Pic[14] = '/img/head/15.jpg'
//Pic[15] = '/img/head/16.jpg'
//Pic[16] = '/img/head/17.jpg'
//Pic[17] = '/img/head/18.jpg'
//Pic[18] = '/img/head/19.jpg'

// do not edit anything below this line
var t;
var j = Math.floor(Math.random()*Pic.length);
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 = Math.floor(Math.random()*Pic.length);
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
window.onload = function()
{
    runSlideShow();	
	
}
