    var teksty=['<br/><br/><i>"Nasze ciała są wehikułami świadomości."</i><br/><br/>D.Halprin', '<br/><i>"Istotne jest ciągłe ożywianie impulsu ruchowego -<br/>będącego żródłem wszelkiego rozwoju myśli,<br/>uczuć i działań istoty ludzkiej."</i><br/><br/>I.Bartenieff','<br/><i>"Jakkolwiek impuls ruchowy może zapoczątkować<br/>myśl, komunikację - sam ruch nie wystarczy.<br/>Niezbędne jest bycie w relacji!"</i><br/><br/>P.Best'];
    
    var scrlSpeed=1
    var count=0;
    var textno=1;
    var change=0;
    var tlo=0;
    var icansee=1;
    
    
    function initScroll(container,object)
    {
    	if (document.getElementById(container) != null)
    	{
    		var contObj=document.getElementById(container);
    		var obj=document.getElementById(object);
    		obj.innerHTML=teksty[0];
    		contObj.style.visibility = "visible";
    		contObj.scrlSpeed = scrlSpeed;
    		heightContainer = contObj.offsetHeight;
    		obj.style.top=parseInt(heightContainer)+"px";
    		heightObject=obj.offsetHeight;
    		interval=setInterval("objScroll('"+ container +"','"+ object +"',"+ heightContainer +")",100);
    	}
    }
    function objScroll(container,object,heightContainer)
    {
    	var contObj=document.getElementById(container);
    	var obj=document.getElementById(object);
    	heightObject=obj.offsetHeight;
    
    	//zatrzymanie na chwile
    	if (parseInt(obj.style.top)==0)
    	{
    		if(count==90)
    		{
    			count=0;
    			contObj.scrlSpeed=scrlSpeed;
    			obj.style.top=parseInt(obj.style.top)-contObj.scrlSpeed+"px";
    		} 
    		else 
    		{
    			count++;
    			contObj.scrlSpeed=0;
    		}
    	} 
    	else 
    	{
            	//kontrola predkosci
    		if (Math.abs(parseInt(obj.style.top))<10)
    		{
    			contObj.scrlSpeed=scrlSpeed;
    		} 
    		else 
    		{
    			contObj.scrlSpeed=Math.abs(parseInt(obj.style.top))/10;
    		}
    		//przesuwanie
    		if (parseInt(obj.style.top)>(heightObject*(-1)))
    		{
    			obj.style.top=parseInt(obj.style.top)-contObj.scrlSpeed+"px";
    		} 
    		else 
    		{
    			obj.style.top=parseInt(heightContainer)+"px";
    		}
    		if(parseInt(obj.style.top)<0)
    		{
    			change=1;
    		}
    		if(parseInt(obj.style.top)>0 && change==1)
    		{
    			obj.innerHTML=teksty[textno%3];
    			textno++;
    			change=0;
    		}
    
      }
    }
    function FadeIn()
    {
    	obj = document.getElementById('scrlContent');
    	obj.innerHTML = teksty[textno%3];
    	textno++;	
    	new Effect.Opacity('scrlContainer',{from:0,to:1,duration:3});
    }
    function FadeOut()
    {
    	obj = document.getElementById('scrlContent');
    	new Effect.Opacity('scrlContainer',{from:1,to:0,duration:3});
    }
    
    function FadeInFadeOut(objid)
    {
    	FadeOut();
    	setTimeout("FadeIn()","3000");
    }
    
    function Blink(objid)
    {
    	new Effect.Opacity(objid,{from:1,to:0.4,duration:1.5});
    	new Effect.Opacity(objid,{from:0.4,to:1,duration:1.5});
    }
    
    window.onload=function(){
    	setInterval("FadeInFadeOut('scrlContent')",10000);
    	setInterval("Blink('fifo')",3000);
    	
    }
