
function test()
{	 

}
function okno(nazwa,szer,wys)
{	 
	if(eval(szer)==0)
		szer = 100;
	if(eval(wys)==0)
		szer = 200;
	window.open(nazwa,'','toolbar=no,scrollbars=yes,resizable=yes,status=no,location=no,directories=no,width='+eval(szer)+',height='+eval(wys)+',menubar=no,top=200,left=200')
}

function fullscreen(plik,nazwa)
{	 
	window.open(plik,nazwa,'fullscreen=yes')
}

function init()
	{
	
		ticker_start();
		
	}



 
var TICKER_RIGHTTOLEFT = false;
var TICKER_SPEED = 2;
var TICKER_STYLE ="font-family: Trebuchet MS, Arial; font-size:12px; color:#857d78;";
var TICKER_PAUSED = false;



function ticker_start() {
	var TICKER_CONTENT = document.getElementById("scroll_head").innerHTML; 
	var tickerSupported = false;
	TICKER_WIDTH = document.getElementById("scroll_head").style.width;
	//var img = "<img src=ticker_space.gif width="+TICKER_WIDTH+" height=0>";

	// Firefox
	if (navigator.userAgent.indexOf("Firefox")!=-1 || navigator.userAgent.indexOf("Safari")!=-1) {
		document.getElementById("scroll_head").innerHTML = "<TABLE  cellspacing='0' cellpadding='0' width='100%'><TR><TD nowrap='nowrap'><SPAN style='"+TICKER_STYLE+"' ID='scroll_head_text' width='100%'>&nbsp;</SPAN></TD></TR></TABLE>";
		tickerSupported = true;
	}
	// IE
	if (navigator.userAgent.indexOf("MSIE")!=-1 && navigator.userAgent.indexOf("Opera")==-1) {
		document.getElementById("scroll_head").innerHTML = "<DIV nowrap='nowrap' style='width:100%;'><SPAN style='"+TICKER_STYLE+"' ID='scroll_head_text' width='100%'></SPAN></DIV>";
		tickerSupported = true;
	}
	if(!tickerSupported) document.getElementById("scroll_head").outerHTML = ""; else {
		document.getElementById("scroll_head").scrollLeft = TICKER_RIGHTTOLEFT ? document.getElementById("scroll_head").scrollWidth - document.getElementById("scroll_head").offsetWidth : 0;
		document.getElementById("scroll_head_text").innerHTML = TICKER_CONTENT;
		document.getElementById("scroll_head").style.display="block";
		TICKER_tick();
	}

}

function TICKER_tick() {
	if(!TICKER_PAUSED) document.getElementById("scroll_head").scrollLeft += TICKER_SPEED * (TICKER_RIGHTTOLEFT ? -1 : 1);
	if(TICKER_RIGHTTOLEFT && document.getElementById("scroll_head").scrollLeft <= 0) document.getElementById("scroll_head").scrollLeft = document.getElementById("scroll_head").scrollWidth - document.getElementById("scroll_head").offsetWidth;
	if(!TICKER_RIGHTTOLEFT && document.getElementById("scroll_head").scrollLeft >= document.getElementById("scroll_head").scrollWidth - document.getElementById("scroll_head").offsetWidth) document.getElementById("scroll_head").scrollLeft = 0;
	window.setTimeout("TICKER_tick()", 30);

}

function closebanerek()
{	 
	var obj=document.getElementById('banerek');
	if (obj != null)
	{
		obj.style.display="none";
	}
}

