function strona(id, active, className)
{
	this.id = id;
	this.active = typeof active == 'undefined' ? 0 : active;
	this.className = typeof className == 'undefined' ? 'strona' : className;
	
	this.show = function(n)
	{
		document.getElementById('' + this.id + this.active).style.display = 'none';
		document.getElementById('' + this.id + n).style.display = 'block';
		var underscore = '_';
		while (document.getElementById('' + this.id + underscore + this.active))
		{
			document.getElementById('' + this.id + underscore + this.active).className = this.className + underscore + 'n';
			document.getElementById('' + this.id + underscore + n).className = this.className + underscore + 'a';
			underscore += '_';
		}
		this.active = n;
	}
}

function stronax(id)
{
	if (!SSStopped) TopNewsStartSS();
	this.id = id;
	this.className = typeof className == 'undefined' ? 'strona' : className;
	strona0.show(this.id);
	startNr = this.id;
}


function TopNewsStartSS() {
	clearTimeout(SSTimeout);
	SSTimeout = setTimeout("playTopNews()",SSDelay);
}

function playTopNews() {
	stronax((startNr==2) ? 0 : startNr+1);
}
