var max=4; // the number of images to be rotated
var thisIma=1; // initially image 1
var ima=new MakeImaArray(max); // create an array of images

function MakeImaArray(n)
	{
	this.length=n;
	for (var i=1; i<=n;i++)
		{
		this[i]="";
		}
	return this;
	}
	
// images to be rotated below
		
ima[1]='<img src="img/t_racism1.jpg" width="129" height="165" alt="">';

ima[2]='<img src="img/t_racism2.jpg" width="129" height="165" alt="">';

ima[3]='<img src="img/t_racism3.jpg" width="129" height="165" alt="">';

ima[4]='<img src="img/t_racism4.jpg" width="129" height="165" alt="">';


// 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 setIma()
	{
	thisIma=rand(max);
	}		

	

	
	
	
	
	
	
	
var max=4; // the number of images to be rotated
var thisImb=1; // initially image 1
var imb=new MakeImbArray(max); // create an array of images

function MakeImbArray(n)
	{
	this.length=n;
	for (var i=1; i<=n;i++)
		{
		this[i]="";
		}
	return this;
	}
	
// images to be rotated below
		
imb[1]='<img src="img/t_the1.jpg" width="129" height="165" alt="">';

imb[2]='<img src="img/t_the2.jpg" width="129" height="165" alt="">';

imb[3]='<img src="img/t_the3.jpg" width="129" height="165" alt="">';

imb[4]='<img src="img/t_the4.jpg" width="129" height="165" alt="">';


// 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 setImb()
	{
	thisImb=rand(max);
	}		

	
	
	
	
	
	
	
var max=4; // the number of images to be rotated
var thisImc=1; // initially image 1
var imc=new MakeImcArray(max); // create an array of images

function MakeImcArray(n)
	{
	this.length=n;
	for (var i=1; i<=n;i++)
		{
		this[i]="";
		}
	return this;
	}
	
// images to be rotated below
		
imc[1]='<img src="img/t_red1.jpg" width="129" height="165" alt="">';

imc[2]='<img src="img/t_red2.jpg" width="129" height="165" alt="">';

imc[3]='<img src="img/t_red3.jpg" width="129" height="165" alt="">';

imc[4]='<img src="img/t_red4.jpg" width="129" height="165" alt="">';


// 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 setImc()
	{
	thisImc=rand(max);
	}		

	

	
	
	
	
	
	
	
	
var max=4; // the number of images to be rotated
var thisImd=1; // initially image 1
var imd=new MakeImdArray(max); // create an array of images

function MakeImdArray(n)
	{
	this.length=n;
	for (var i=1; i<=n;i++)
		{
		this[i]="";
		}
	return this;
	}
	
// images to be rotated below
		
imd[1]='<img src="img/t_card1.jpg" width="129" height="165" alt="">';

imd[2]='<img src="img/t_card2.jpg" width="129" height="165" alt="">';

imd[3]='<img src="img/t_card3.jpg" width="129" height="165" alt="">';

imd[4]='<img src="img/t_card4.jpg" width="129" height="165" alt="">';


// 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 setImd()
	{
	thisImd=rand(max);
	}		

	
	