// JavaScript Document
//This file contains the function to display the random picture when loading the webpage

var indexImage = 0
	
	function fnReturnImg (n) {
	  this.length = n;
	  for (var i =1; i <= n; i++) {
		this[i] = ' '
	  }
	}
	
	image = new fnReturnImg(20) //increase the number of images to be displayed randomly
	image[0] = '../images/2.gif'
	image[1] = '../images/3.gif'
	image[2] = '../images/4.gif'
	image[3] = '../images/5.gif'
	image[4] = '../images/6.gif'
	image[5] = '../images/7.gif'
	image[6] = '../images/8.gif'
	image[7] = '../images/9.gif'
	image[8] = '../images/10.gif'
	image[9] = '../images/11.gif'
	image[10] = '../images/12.gif'
	image[11] = '../images/13.gif'
	image[12] = '../images/14.gif'
	image[13] = '../images/15.gif'
	image[14] = '../images/16.gif'
	image[15] = '../images/17.gif'
	image[16] = '../images/18.gif'
	image[17] = '../images/19.gif'
	image[18] = '../images/20.gif'
	image[19] = '../images/1.gif'
	
	
	
	function ranimage() { 
	  indexImage = Math.floor(Math.random()*20)
	  return(image[indexImage])
	}
	document.write("<td width='198' height='100' align='left' valign='top'>");
	document.write("<img width='196px' height='100px'  src='" +ranimage()+ "'>");
	document.write("</td>");