// JavaScript Document


var SlideShowSpeed = 3000;
var CrossFadeDuration = 2;
var Picture01 = new Array(); // don't change this
var Picture02 = new Array(); // don't change this
var Picture03 = new Array(); // don't change this
var Picture04 = new Array(); // don't change this
//var Picture05 = new Array(); // don't change this
var showHot = false;       // don't change this

Picture01[0]  = 'images/ani01.jpg'
Picture01[1]  = 'images/ani01a.jpg'
Picture01[2]  = 'images/ani01b.jpg'

Picture02[0]  = 'images/ani02.jpg'
Picture02[1]  = 'images/ani02a.jpg'
Picture02[2]  = 'images/ani02b.jpg'

Picture03[0]  = 'images/ani03.jpg'
Picture03[1]  = 'images/ani03a.jpg'
Picture03[2]  = 'images/ani03b.jpg'

Picture04[0]  = 'images/ani04.jpg'
Picture04[1]  = 'images/ani04a.jpg'
Picture04[2]  = 'images/ani04b.jpg'

var tss;
var iss;
var jss = 0;
var pss = Picture01.length-1;
	var preLoad01 = new Array();
	var preLoad02 = new Array();
	var preLoad03 = new Array();
	var preLoad04 = new Array();
	//var preLoad05 = new Array();
	for (iss = 0; iss < pss+1; iss++)
	{
		preLoad01[iss] = new Image();
		preLoad01[iss].src = Picture01[iss];
		preLoad02[iss] = new Image();
		preLoad02[iss].src = Picture02[iss];
		preLoad03[iss] = new Image();
		preLoad03[iss].src = Picture03[iss];
		preLoad04[iss] = new Image();
		preLoad04[iss].src = Picture04[iss];
		//preLoad05[iss] = new Image();
		//preLoad05[iss].src = Picture05[iss];
	}

function control01(picnumber)
{
	if (document.all)
	{
		document.images.PictureBox01.style.filter="blendTrans(duration=2)";
		document.images.PictureBox01.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.PictureBox01.filters.blendTrans.Apply();
	}
		document.images.PictureBox01.src = preLoad01[picnumber].src;
		if (document.all) document.images.PictureBox01.filters.blendTrans.Play();
		var rn = Math.floor(Math.random() * Picture01.length)
		var t=setTimeout("control01("+rn+")",3000)
}
function control02(picnumber)
{
	if (document.all)
	{
		document.images.PictureBox02.style.filter="blendTrans(duration=2)";
		document.images.PictureBox02.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.PictureBox02.filters.blendTrans.Apply();
	}
		document.images.PictureBox02.src = preLoad02[picnumber].src;
		if (document.all) document.images.PictureBox02.filters.blendTrans.Play();
		var rn = Math.floor(Math.random() * Picture02.length)
		var t=setTimeout("control02("+rn+")",4000)

}
function control03(picnumber)
{
	if (document.all)
	{
		document.images.PictureBox03.style.filter="blendTrans(duration=2)";
		document.images.PictureBox03.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.PictureBox03.filters.blendTrans.Apply();
	}
		document.images.PictureBox03.src = preLoad03[picnumber].src;
		if (document.all) document.images.PictureBox03.filters.blendTrans.Play();
		var rn = Math.floor(Math.random() * Picture03.length)
		var t=setTimeout("control03("+rn+")",5000)
}
function control04(picnumber)
{
	if (document.all)
	{
		document.images.PictureBox04.style.filter="blendTrans(duration=2)";
		document.images.PictureBox04.style.filter="blendTrans(duration=CrossFadeDuration)";
		document.images.PictureBox04.filters.blendTrans.Apply();
	}
		document.images.PictureBox04.src = preLoad04[picnumber].src;
		if (document.all) document.images.PictureBox04.filters.blendTrans.Play();
		var rn = Math.floor(Math.random() * Picture04.length)
		var t=setTimeout("control04("+rn+")",6000)
}

function StartAnimation()
{
	setTimeout("control01(1)",3000)
	setTimeout("control02(0)",4000)
	setTimeout("control03(1)",5000)
	setTimeout("control04(0)",6000)
	//setTimeout("control05(1)",3000)
}

StartAnimation()


