// JavaScript Document

var delay=10000   //set delay in miliseconds
var curindex=0
var randomimages=new Array()
	randomimages[0]="customers/1.gif"
	randomimages[1]="customers/2.gif"
	randomimages[2]="customers/3.gif"
	randomimages[3]="customers/4.gif"
	randomimages[4]="customers/5.gif"
	randomimages[5]="customers/6.gif"
	randomimages[6]="customers/7.gif"
	randomimages[7]="customers/8.gif"
	randomimages[8]="customers/9.gif"
	randomimages[9]="customers/10.gif"
	randomimages[10]="customers/11.gif"
	randomimages[11]="customers/12.gif"
	randomimages[12]="customers/13.gif"
	randomimages[13]="customers/14.gif"
	randomimages[14]="customers/15.gif"
	randomimages[15]="customers/16.gif"
	randomimages[16]="customers/17.gif"
	randomimages[17]="customers/18.gif"
	randomimages[18]="customers/19.gif"
	randomimages[19]="customers/20.gif"
	randomimages[20]="customers/21.gif"
	randomimages[21]="customers/22.gif"
	randomimages[22]="customers/23.gif"
	randomimages[23]="customers/24.gif"
	randomimages[24]="customers/25.gif"
	randomimages[25]="customers/26.gif"
	randomimages[26]="customers/27.gif"
	randomimages[27]="customers/28.gif"
	randomimages[28]="customers/29.gif"
	randomimages[29]="customers/30.gif"
	randomimages[30]="customers/31.gif"
	randomimages[31]="customers/32.gif"
	randomimages[32]="customers/33.gif"
	randomimages[33]="customers/34.gif"
	randomimages[34]="customers/35.gif"
	randomimages[35]="customers/36.gif"
	randomimages[36]="customers/37.gif"
	randomimages[37]="customers/38.gif"
	randomimages[38]="customers/39.gif"
	randomimages[39]="customers/40.gif"
	randomimages[40]="customers/41.gif"
	randomimages[41]="customers/42.gif"
	randomimages[42]="customers/43.gif"
	randomimages[43]="customers/44.gif"
	randomimages[44]="customers/45.gif"
	randomimages[45]="customers/46.gif"
	randomimages[46]="customers/47.gif"
	randomimages[47]="customers/48.gif"
	randomimages[48]="customers/49.gif"
	randomimages[49]="customers/50.gif"
	randomimages[50]="customers/51.gif"
	randomimages[51]="customers/52.gif"
	randomimages[52]="customers/53.gif"
	randomimages[53]="customers/54.gif"
	randomimages[54]="customers/55.gif"
	randomimages[55]="customers/56.gif"
	randomimages[56]="customers/57.gif"
	randomimages[57]="customers/58.gif"
	randomimages[58]="customers/59.gif"
	randomimages[59]="customers/60.gif"
	randomimages[60]="customers/61.gif"
	randomimages[61]="customers/62.gif"
	randomimages[62]="customers/63.gif"
	randomimages[63]="customers/64.gif"
	randomimages[64]="customers/65.gif"

function showCustomerImages() {
	var img1 = randomimages[Math.floor(Math.random()*(randomimages.length))];

	var img2 = randomimages[Math.floor(Math.random()*(randomimages.length))];
	if(img1 == img2)
		img2 = randomimages[Math.floor(Math.random()*(randomimages.length))];
	  
	var img3 = randomimages[Math.floor(Math.random()*(randomimages.length))];
	if(img1 == img3 || img2 == img3)
		img3 = randomimages[Math.floor(Math.random()*(randomimages.length))];
	
	var img4 = randomimages[Math.floor(Math.random()*(randomimages.length))];
	if(img1 == img4 || img2 == img4 || img3 == img4)
		img4 = randomimages[Math.floor(Math.random()*(randomimages.length))];
	
	var img5 = randomimages[Math.floor(Math.random()*(randomimages.length))];
	if(img1 == img5 || img2 == img5 || img3 == img5 || img4 == img5)
		img5 = randomimages[Math.floor(Math.random()*(randomimages.length))];
	
	document.write('<img name="defaultimage" border="0" src="'+img1+'">')
	document.write('<img name="defaultimage" border="0" src="'+img2+'">')
	document.write('<img name="defaultimage" border="0" src="'+img3+'">')
	document.write('<img name="defaultimage" border="0" src="'+img4+'">')
	document.write('<img name="defaultimage" border="0" src="'+img5+'">')
}
