// ==============================
// Set the following variables...
// ==============================

// Set the slideshow speed (in milliseconds)
var SlideShowSpeed2 = 10000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration2 = 3;

// declare the arrays - don't change this.

var PictureD = new Array(); 
//var Picture2 = new Array();




// Specify the image files...
// To add more images, just continue
// the pattern, adding to the array below.
// To use fewer images, remove lines
// starting at the end of the Picture array.

PictureD[1]  = 'images/slidesr2/slider2_1.jpg';
PictureD[2]  = 'images/slidesr2/slider2_2.jpg';
PictureD[3]  = 'images/slidesr2/slider2_3.jpg';
PictureD[4]  = 'images/slidesr2/slider2_5.jpg';
PictureD[5]  = 'images/slidesr2/slider2_6.jpg';
PictureD[6]  = 'images/slidesr/slide_2.jpg';
PictureD[7]  = 'images/slidesr/slide_3.jpg';
PictureD[8]  = 'images/slidesr/slide_4.jpg';
PictureD[9]  = 'images/slidesr/slide_6.jpg';
PictureD[10]  = 'images/slidesr/slide_1.jpg';






// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 1;
var pss = PictureD.length-1;
//var pss2 = Picture2.length-1;


//preloaders

var preLoad = new Array();
	for (iss = 1; iss < pss+1; iss++)
		{
		preLoad[iss] = new Image();
		preLoad[iss].src = PictureD[iss];
		}



//slideshow effects

function runSlideShow2(){
	

	if (document.all){
	document.images.PictureBoxD.style.filter="blendTrans(duration=2)";
	document.images.PictureBoxD.style.filter="blendTrans(duration=3)";
	document.images.PictureBoxD.filters.blendTrans.Apply();

	
	
	}
	//#1
	document.images.PictureBoxD.src = preLoad[jss].src;
	if (document.all) document.images.PictureBoxD.filters.blendTrans.Play();
	//#2

	//document.images.PictureBoxD.src = 2[jss].src;
	//if (document.all) document.images.PicturepreLoadBoxD.filters.blendTrans.Play();
	
	jss = jss + 1;
	//#1
	if (jss > (pss)) jss=1;
	//#2

	//if (jss > (pss2)) jss=1;
	
	
	tss = setTimeout('runSlideShow2()', SlideShowSpeed2);
	
	}
