var slideShowSpeedh = 20000;
var crossFadeDuration = 60;

var Pich = new Array();

Pich[0] = '../../../img/slideshow/1.jpg'
Pich[1] = '../../../img/slideshow/2.jpg'
Pich[2] = '../../../img/slideshow/3.jpg'
Pich[3] = '../../../img/slideshow/4.jpg'
Pich[4] = '../../../img/slideshow/5.jpg'
Pich[5] = '../../../img/slideshow/6.jpg'
Pich[6] = '../../../img/slideshow/7.jpg'
Pich[7] = '../../../img/slideshow/8.jpg'
Pich[8] = '../../../img/slideshow/9.jpg'
Pich[9] = '../../../img/slideshow/10.jpg'

var th;
var jh = Math.floor(Math.random()*Pich.length);

var ph = Pich.length;
var preLoadh = new Array();

for (ih = 0; ih < ph; ih++) {
	preLoadh[ih] = new Image();
	preLoadh[ih].src = Pich[ih];
}

function runSlideShowHeader() {
	document.images.myheader.src = preLoadh[jh].src;
	setTimeout('runSlideShowHeader2()', slideShowSpeedh);	
}

function runSlideShowHeader2() {
	if(document.images.myheader)
	{
		if (document.all) {
			document.images.myheader.style.filter="blendTrans(duration=20)";
			document.images.myheader.style.filter="blendTrans(duration=crossFadeDuration)";
			document.images.myheader.filters.blendTrans.Apply();
		}
		jh = jh + 1;
		if (jh > (ph - 1)) jh = 0;
		document.images.myheader.src = preLoadh[jh].src;
		if (document.all) {
			document.images.myheader.filters.blendTrans.Play();
		}

		if (jh > (ph - 1)) jh = 0;
		th = setTimeout('runSlideShowHeader2()', slideShowSpeedh);
	}
}
