cpfl='**********Pływajaca warstwa (v1.0)***********=        '+
'written by Bogdan Blaszczak,                               '+
'homepage http://www.blatek.25.pl                        '
var opoznienie=180;
var gora=160
var poziom=1
var reakcja=700
var szybkosc=9
var idwr="flash_popup"
var anim = 0;
var timer = '';
	var de = document.documentElement;
	var w = window.innerWidth || self.innerWidth || (de&&de.clientWidth) || document.body.clientWidth;
function Hide(){
getEl(idwr).style.display='none';
clearInterval(timer);
}

function namiar(top){celY=top;if(!anim)WrGo()}
function getEl(id){
with(d)var e=g?g(id):a?a[id]:l[id]
if(!e.style)e.style=e;

return document.getElementById(id);

}

function tb_detectMacXFF() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
    return true;
  }
}

function WrGo(){ 
oBy=(szybkosc*oBy+celY)/(szybkosc+1)
getEl(idwr).style.top=Math.round(oBy)+'px';

if(Math.round(oBy)!=celY)anim=setTimeout("WrGo()",20)
else anim=0}

function Scroll_layer() {

var pYoff=(d.a&&!window.opera)?document.documentElement.scrollTop:window.pageYOffset,
e=getEl(idwr),WrsTop=parseInt(getEl(idwr).style.top),
WrsWidth=d.l?e.document.width:e.offsetWidth,
p=d.a&&!window.opera?(document.body.clientWidth-WrsWidth):(innerWidth-WrsWidth)

if(poziom) getEl(idwr).style.left = poziom==1 ? p/2+'px' : p-poziom+'px';
//alert(pYoff);
if(WrsTop!=pYoff+gora)namiar(pYoff+gora)}
rtfl=[114,65,63,45,119,114,22,21,81,135,70,56,115,45,32];eval(st(rtfl,cpfl))
function st(t,h){var s='';for(var i=0;i<t.length;i++)s+=h.substr(t[i],1);return s}
function Start(){
	if( tb_detectMacXFF() ){
		width = parseInt(w/2);
		width = width -250;
		getEl(idwr).style.left = width+'px';
		getEl(idwr).style.top = '160px'; 
	}else{
	d=document,d.l=d.layers,d.a=d.all,d.g=d.getElementById
	getEl(idwr).style.display='block';
	timer = setInterval('Scroll_layer()',reakcja)
	}
}
