var max=22; // the number of images to be rotated
var thisImx=1; // initially image 1
var imx=new MakeImxArray(max); // create an array of images

function MakeImxArray(n)
	{
	this.length=n;
	for (var i=1; i<=n;i++)
		{
		this[i]="";
		}
	return this;
	}
	
// images to be rotated below
		
imx[1]='<img src="rand09/1.jpg" width="801" height="136" alt="" border="0">';

imx[2]='<img src="rand09/2.jpg" width="801" height="136" alt="" border="0">';

imx[3]='<img src="rand09/3.jpg" width="801" height="136" alt="" border="0">';

imx[4]='<img src="rand09/4.jpg" width="801" height="136" alt="" border="0">';

imx[5]='<img src="rand09/5.jpg" width="801" height="136" alt="" border="0">';

imx[6]='<img src="rand09/6.jpg" width="801" height="136" alt="" border="0">';

imx[7]='<img src="rand09/7.jpg" width="801" height="136" alt="" border="0">';

imx[8]='<img src="rand09/8.jpg" width="801" height="136" alt="" border="0">';

imx[9]='<img src="rand09/9.jpg" width="801" height="136" alt="" border="0">';

imx[10]='<img src="rand09/10.jpg" width="801" height="136" alt="" border="0">';

imx[11]='<img src="rand09/11.jpg" width="801" height="136" alt="" border="0">';

imx[12]='<img src="rand09/12.jpg" width="801" height="136" alt="" border="0">';

imx[13]='<img src="rand09/13.jpg" width="801" height="136" alt="" border="0">';

imx[14]='<img src="rand09/14.jpg" width="801" height="136" alt="" border="0">';

imx[15]='<img src="rand09/15.jpg" width="801" height="136" alt="" border="0">';

imx[16]='<img src="rand09/16.jpg" width="801" height="136" alt="" border="0">';

imx[17]='<img src="rand09/17.jpg" width="801" height="136" alt="" border="0">';

imx[18]='<img src="rand09/18.jpg" width="801" height="136" alt="" border="0">';

imx[19]='<img src="rand09/19.jpg" width="801" height="136" alt="" border="0">';

imx[20]='<img src="rand09/20.jpg" width="801" height="136" alt="" border="0">';

imx[21]='<img src="rand09/21.jpg" width="801" height="136" alt="" border="0">';

imx[22]='<img src="rand09/22.jpg" width="801" height="136" alt="" border="0">';
// the random number function returns a number 1 to max
function rand(n)
	{
	rnum=Math.floor(n*Math.random())+1
	return rnum;
	}
		

// the function that is called from the body script
function setImx()
	{
	thisImx=rand(max);
	}		
