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)
	{
        clearInterval(SSTimeout);
		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)
{
	this.id = id;
	this.className = typeof className == 'undefined' ? 'strona' : className;
	strona0.show(this.id);
	startNr = this.id;
    SSTimeout = setInterval("playTopNews()",5000);
}


function TopNewsStartSS() {
	SSTimeout = setInterval("playTopNews()",5000);
}

function playTopNews() {
	stronax((startNr==2) ? 0 : startNr+1);
}
