/* <![CDATA[ */
	var printid=0;

	var windowopen=0;
	var wndtop;
	var newtop;


	var pu=document.getElementById("oopis");
	

function getPos(){

	if (window.innerHeight)
	{
		  pos = window.pageYOffset
	}
	else if (document.documentElement && document.documentElement.scrollTop)
	{
		pos = document.documentElement.scrollTop
	}
	else if (document.body)
	{
		  pos = document.body.scrollTop
	}
	//alert(pos)
	return pos;
}

	function keepwindow2()
	{
		if (pu.style.display=='')
		{
			if ((newtop-wndtop)<5 && (newtop-wndtop)>-5)
			{
				wndtop=newtop;
			}
			if (newtop>wndtop)
			{
				wndtop+=5;
				pu.style.top=wndtop+'px';
			}
			if (newtop<wndtop)
			{
				wndtop-=5;
				pu.style.top=wndtop+'px';
			}
			setTimeout(function () {keepwindow2();}, 10);
		}
	}



	function keepwindow()
	{
		
		if (pu.style.display=='')
		{
		  var lp=document.getElementById("fullwidthtop");
		  var temp=getPos();
			newtop=lp.offsetTop+temp+50;
			if (newtop<200) newtop=200;
			setTimeout(function () {keepwindow();}, 10);
			
		}
	}


	
   
   function getAbsPosition(e){
	   x=0;y=0;
	   do{
       with(e){x+=offsetLeft;y+=offsetTop};
	   }
	   while(e=e.offsetParent);
	   return{x:x,y:y}
   } 

	

/* ]]> */