// JavaScript Document<!-- Begin
// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

//theImages[0] = 'Assets/md_wildcattrans.gif'
//theImages[0]='Assets/phsccdrawing_trans_no_PHS_name.gif'
theImages[0]='frontpics/3_19_1.jpg'
theImages[1]='frontpics/3_19_2.jpg'
theImages[2]='frontpics/10_30_3.jpg'
theImages[3]='frontpics/2_3_1.jpg'
theImages[4]='frontpics/12_8_8.jpg'
theImages[5]='frontpics/1_7_4.jpg'
theImages[6]='frontpics/1_7_5.jpg'
theImages[7]='frontpics/1_7_1.jpg'
theImages[8]='frontpics/1_7_2.jpg'
theImages[9]='frontpics/3_19_3.jpg'
theImages[10]='frontpics/12_8_1.jpg'
theImages[11]='frontpics/3_19_4.jpg'
theImages[12]='frontpics/12_8_3.jpg'
theImages[13]='frontpics/12_8_4.jpg'
theImages[14]='frontpics/3_19_5.jpg'
theImages[15]='frontpics/10_5_1.jpg'
theImages[16]='frontpics/10_5_2.jpg'
theImages[17]='frontpics/3_19_6.jpg'
theImages[18]='frontpics/12_9_1.jpg'
theImages[19]='frontpics/3_19_8.jpg'
theImages[20]='frontpics/3_19_9.jpg'
theImages[21]='frontpics/3_19_10.jpg'
theImages[22]='frontpics/3_19_11.jpg'
theImages[23]='frontpics/3_19_7.jpg'
theImages[24]='frontpics/3_19_12.jpg'
theImages[25]='frontpics/3_19_13.jpg'




//theImages[18]='Assets/frontpics/42219.JPG'






// do not edit anything below this line
var timer1;
var whichImage;
var counter=0;
var j = 0
var transeffect=12;
var p = theImages.length;
var preBuffer = new Array()
for (i = 0; i <p; i++){
	
	//theImages[i].width=300;
	//theImages[i].height=225;
   preBuffer[i] = new Image()
   preBuffer[i].src = theImages[i]
}
 
counter = Math.round(Math.random()*(p-1));
function showImage(){
	//transeffect = Math.round(1+Math.random()*22);
	try{
		number=Math.round(Math.random()*15)
		
		
	document.mainpic.style.filter="revealTrans('duration'=1, 'transition'=number)";
	
	document.mainpic.filters[0].apply();
	document.mainpic.filters[0].play();
	
	

    //document.mainpic.height=206;
	//document.mainpic.width=275;
	//document.mainpic.height=225;
	//document.mainpic.width=300;
	document.mainpic.src=preBuffer[counter].src;
	
	
	if (counter<preBuffer.length-1)   counter++;
	  else counter=0;
	 
		
	
// document.write('<img src="'+theImages[whichImage]+'">');  ***old image tag
 timer1=setTimeout("showImage()",6000);

}
catch(e){
	//Firefox version
	// document.mainpic.height=206;
	//document.mainpic.width=275;
	document.mainpic.src=preBuffer[counter].src;
	if (counter<preBuffer.length-1)   counter++;
	  else counter=0;
	 
		
	
// document.write('<img src="'+theImages[whichImage]+'">');  ***old image tag
 timer1=setTimeout("showImage()",7000);
}
	
}
showImage();
//  End -->