

number_imgs = 15											//number of images

x = randomnumber=Math.floor(Math.random()*16)				//create random number to begin with
y = 1



var pic = new Array()
pic[10]='images/MOD002.jpg'
pic[9]='images/MOD003.JPG'
pic[12]='images/MOD005.jpg'
pic[4]='images/MOD020.jpg'
pic[5]='images/MOD025.jpg'
pic[6]='images/8pin.jpg'
pic[11]='images/18pin.jpg'
pic[3]='images/AXE010.jpg'
pic[13]='images/AXE014.jpg'
pic[15]='PICAXE/images/AXE045.bmp'
pic[2]='PICAXE/images/AXE110.JPG'
pic[7]='PICAXE/images/AXE033.jpg'
pic[14]='images/AXE120.bmp'
pic[8]='images/AXE112.jpg'
pic[1]='PICAXE/images/LOG001.jpg'



function rotateimgs() {
	checkx();											//checks value of x for the source

	
	document.slideshowboard.pic_change.src = pic[x];	//makes the images change
	
														//does the maths for r
	x = x+y												//does the maths for x
	
	setTimeout("rotateimgs()",2500)						//controls speed 1000=1 sec
}


function checkx() {										//function for checking x
	if(x==number_imgs || x>number_imgs)					//asks if x equals the number of imgs

	{
	x = 1												//if so resets it to 0

	}
}


