twotime = false;
	var rotText = new Array();	
	rotText[0] = "<center><p class='salesbluemsg'>&nbsp; where am I?";
	rotText[1] = '<p><IMG ALT="Old Actonians Cricket Club" BORDER="0" SRC="../../image/clubs/templates/cricket_batsman.gif">3 Cricket Teams<br>Middlesex County League</p>';
	rotText[2] = '<p><IMG ALT="Old Actonians Table Tennis Club" BORDER="0" SRC="../../image/clubs/templates/tabletenplayer.gif">7 Table Tennis Teams<br>West Middlesex League</p>';
	rotText[3] = '<p><IMG ALT="Old Actonians Netball Club" BORDER="0" SRC="../../image/clubs/templates/netballplayer.gif">5 Netball Teams<br>Acton & Middlesex League</p>';
	rotText[4] = '<p><IMG ALT="Old Actonians Rugby Club" BORDER="0" SRC="../../image/clubs/templates/rugbyplayer.gif">3 Rugby Teams<br>West Middlesex League</p>';
	rotText[5] = '<p><IMG ALT="Old Actonians Badminton Club" BORDER="0" SRC="../../image/clubs/templates/badmintonplayer.gif">4 Badminton Teams<br>Hammersmith & Hillingdon League</p>';
	rotText[6] = '<p><IMG ALT="Old Actonians Tennis Club" BORDER="0" SRC="../../image/clubs/templates/tennisplayer.gif">5 Tennis Teams<br>West Middlesex League</p>';
	rotText[7] = '<p><IMG ALT="Old Actonians Squash Club" BORDER="0" SRC="../../image/clubs/templates/squashcourt.gif">4 Squash Teams<br>Middlesex League</p>';
	rotText[8] = '<p><IMG ALT="Old Actonians Football Club" BORDER="0" SRC="../../image/clubs/templates/twofootballers.gif">11 Football Teams<br>Southern Amateur League</p>';

var counter = 0;

function rotate_sports_divs()
{
	if (counter == 0)
	{
		counter = 1;
	}
	//alert("whos there");
	if (document.layers != undefined)
	{	
		var docOut = document.layers["NS4ROT"].document;
		docOut.open();
		docOut.write(rotText[counter]);
		document.layers["NS4ROT"].pageX=(document.images.blankAnchor.x+4);
		document.layers["NS4ROT"].pageY=(document.images.blankAnchor.y+3);		
		docOut.close();		
	}
	else if(document.getElementById != undefined)
	{
		document.getElementById("ALLROT").innerHTML = rotText[counter];
	}
	else 
	{	
		document.all.ALLROT.innerHTML = rotText[counter];
	}
	//get the focus on the search input tag as the above code stops accessing this field
	if (twotime == false)
	{
		document.forms[0].elements["SearchString"].focus();
		twotime = true; //set focus just once otherwise the browser runing this keeps
					//getting focus from other browsers!
	}
	window.setTimeout("rotate_sports_divs();", 3000);

	counter++;
	if (counter==rotText.length)
	{
		counter=0;
	}
}
