// Banner Ad Rotation

function RunBanners(ElementID, Rotate, IntervalForRotate) {
	if (Rotate == true)
	{
		if (document.getElementById(ElementID)) {
			anchors = document.getElementById(ElementID).getElementsByTagName("a");
			anchorLength = anchors.length;
			i = 0;
			
			try{
				anchors[0].style.display = "block";
				if (anchorLength > 0) 
					window.setInterval('hide()', IntervalForRotate);
			}
			catch(e){}		
		}
	}
}
function hide () {
	anchors[i].style.display = "none";
	i++;
	if (anchors[i])
		anchors[i].style.display = "block";
	else {
		i = 0;
		anchors[i].style.display = "block";
	}
}
