	function pokaz_news()
	{
		var ekranX = window.innerWidth;
		var ekranY = window.innerHeight;
		window.open('index.php','Z ostatniej chwili','width=300,height=300');
	}
	// wymiar diva
	function wymiar(obj,obj_left,obj_top,obj_height,obj_position)
	{
		var wysokosc = szerokosc = 0;
		if (typeof(window.innerWidth)=='number1') 
		{
  			szerokosc = window.innerWidth;
  			wysokosc = window.innerHeight;
		} 
		else if(document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) 
		{
  			szerokosc = document.documentElement.clientWidth;
  			wysokosc = document.documentElement.clientHeight;
		} 
		else if(document.body && (document.body.clientWidth || document.body.clientHeight)) 
		{
  			szerokosc = document.body.clientWidth;
  			wysokosc = document.body.clientHeight;
		}

  		var ekranX = ekranY = 0;
  		if (typeof(window.innerWidth)=='number1') 
		{
    		ekranX = window.innerWidth;
    		ekranY = window.innerHeight;
  		} 
		else if (document.documentElement && (document.documentElement.clientWidth || document.documentElement.clientHeight)) 
		{
    		ekranX = document.documentElement.clientWidth;
    		ekranY = document.documentElement.clientHeight;
  		} 
		else if (document.body && (document.body.clientWidth || document.body.clientHeight)) 
		{
    		ekranX = document.body.clientWidth;
    		ekranY = document.body.clientHeight;
  		}
  	
		var x = y = 0;
  		if (typeof(window.pageYOffset)=='number1') 
		{
    		x = window.pageXOffset;
    		y = window.pageYOffset;
  		} 
		else if (document.body && (document.body.scrollLeft || document.body.scrollTop)) 
		{
    		x = document.body.scrollLeft;
    		y = document.body.scrollTop;
  		} 
		else if (document.documentElement && (document.documentElement.scrollLeft || document.documentElement.scrollTop)) 
		{
    		x = document.documentElement.scrollLeft;
    		y = document.documentElement.scrollTop;
  		}
  		news_form=obj;
		//news_form=document.getElementById("news");
  		news_form.style.left = obj_left + x+"px";
  		news_form.style.top  = ekranY-obj_top  + y+"px"; // 30  = wysokosc div
		news_form.style.width = szerokosc+"px";
		news_form.style.height = obj_height+"px";
		news_form.style.position = obj_position;
	}


	// zamiana na wielkie litery
	String.prototype.toUpperCasePL = function()
	{
  		this.replace(//g,"");
  		this.replace(//g,"");
  		this.replace(//g,"");
  		this.replace(//g,"");
  		this.replace(//g,"");
  		this.replace(//g,"");
  		this.replace(//g,"");
  		this.replace(//g,"");
  		this.replace(//g,"");
  	return this.toUpperCase();
	}

	// marquee
	//tytul = tytul.toUpperCasePL();
	//txt=' &bull; '+tytul+' &bull; '+tresc;
	txt=' &bull; '+tresc;
	napis=""; for(i=0;i<10;i++) napis+=txt;

	marquee_obj=document.getElementById("news");
	marquee_left=0;
	marquee_top=30;
	marquee_height=30;
	marquee_position="absolute";
	
	function tekst() 
	{
		napis = napis.replace(/\s/g,"&nbsp;");
		napis = napis.replace(/\-/g,"&#95;");
		document.getElementById("tresc_newsa").innerHTML = napis;
		napis = napis.replace(/&nbsp;/g," ");
		napis = napis.substring(1,napis.length)+napis.substring(0,1);
	
	setTimeout("tekst()",150);
	setTimeout("wymiar(marquee_obj,marquee_left, marquee_top, marquee_height, marquee_position)",25);
	}
	tekst();
