/* page.js */
var current = 0;
var timeout = 10000;
function getElement(name)
{
	return typeof(name) == "string" ? (document.getElementById ? document.getElementById(name) : document.all[name]) : name;
}
function show() {
	// hide current
	var c = getElement("bnews"+current);
	if (c) c.style.display = "none";
	// show next
	current++;
	c = getElement("bnews"+current);
	// if we don't find the element, lets try from the beginning
	if(!c) { 
		current = 1;
		c = getElement("bnews"+current); 
	}
	// if we found something, show it and call this function again in timeout/1000 seconds
	if (c) {
		c.style.display = "";
		setTimeout("show()",timeout);
	}
};

function _onload()
{
	show();
}
