var max=23; // 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 class="b" src="rand_nb/1.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[2]='<img class="b" src="rand_nb/2.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[3]='<img class="b" src="rand_nb/3.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[4]='<img class="b" src="rand_nb/4.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[5]='<img class="b" src="rand_nb/5.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[6]='<img class="b" src="rand_nb/6.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[7]='<img class="b" src="rand_nb/7.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[8]='<img class="b" src="rand_nb/8.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[9]='<img class="b" src="rand_nb/9.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[10]='<img class="b" src="rand_nb/10.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[11]='<img class="b" src="rand_nb/11.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[12]='<img class="b" src="rand_nb/12.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[13]='<img class="b" src="rand_nb/13.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[14]='<img class="b" src="rand_nb/14.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[15]='<img class="b" src="rand_nb/15.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[16]='<img class="b" src="rand_nb/16.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[17]='<img class="b" src="rand_nb/17.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[18]='<img class="b" src="rand_nb/18.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[19]='<img class="b" src="rand_nb/19.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[20]='<img class="b" src="rand_nb/20.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[21]='<img class="b" src="rand_nb/21.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[22]='<img class="b" src="rand_nb/22.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" border="0">';

imx[23]='<img class="b" src="rand_nb/23.jpg" width="320" height="223" hspace="0" vspace="0" alt="LeeMcCullough Consulting Engineers" 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);
	}		
