<!--
//Code for rotating advertisement banner display.

//Array that holds details of of banner ads:
// [link], [image file], [alt]
ads2=new Array(
"http://www.elgas.com.au/index.php?option=com_content&view=article&id=29&Itemid=64", "ad_elgas.jpg", "Elgas",
"http://www.shirefootball.com/docs/Football Flyer 2010.pdf", "ad_jubilee.gif", "Jubilee Sports Physiotherapy"
);

var total2 = ads2.length;
var total_ads2 = total2/3;
var current_ad2 = Math.ceil(Math.random()*total_ads2);

function rotatebanner2() {
// Function to change currently displayed ad

	for (j=1; j<=total_ads2; j++) {
		document.getElementById("ad2"+(j)).style.display = "none";
	}
	current_ad2 = (current_ad2) % total_ads2 + 1;
	document.getElementById("ad2"+current_ad2).style.display = "";

	self.setTimeout('rotatebanner2()', 3000) 
}

j=1;
//Following code creates the html for the ads
for (i=0; i<total2; i=i+3) {
	document.write("<DIV id=\"ad2" + j + "\" align=\"center\" style=\"display:none\">");
	document.write("<a href=\"" + ads2[i] + "\" target=\"ads\"><img src=\"/images/" + ads2[i+1] + "\" border=\"0\" alt=\"" + ads2[i+2] + "\"></a>");
    document.write("</div>");
	j++;
}
document.getElementById("ad2"+current_ad2).style.display = "";

self.setTimeout('rotatebanner2()', 5000) 

//-->