var text=''; text+='<'+'style type="text/css">'; text+='#floater {'; text+='position:absolute; '; text+='visibility:hidden;'; text+='z-index:100;'; text+='margin:0; '; text+='padding: 0px 4px 4px 4px;'; //text+='border:1px solid #330;'; //text+='border-top:3px solid #330;'; text+='}'; text+='#floaterWylacz {'; text+='text-align: right;'; text+='}'; text+='#floaterWylacz A{'; text+='font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;'; text+='text-decoration: none;'; text+='font-size: 12px;'; text+='font-weight: bold;'; text+='color: #DDDDDD;'; text+='}'; text+='#floaterWylacz A:hover{'; text+='color: #C1C1C1;'; text+='}'; text+=''; text+='<'+'div id="floater">'; text+='<'+'DIV ID="floaterWylacz">'+'<'+'SPAN STYLE="background-color: #330;"> '+'<'+'A HREF="javascript:wylaczPopUp()">X '; text+='<'+'A HREF="javascript:wylaczPopUp()">'+'<'+'IMG SRC="/img/banery/zaproszenie_15lat.jpg" ALT="" WIDTH="640" HEIGHT="454" BORDER="0">'; text+=''; document.write(text); window.onload = function(){ if (window.winOnLoad) window.winOnLoad(); } window.onunload = function(){ if (window.winOnUnload) window.winOnUnload(); } var slideTime = 700; function wylaczPopUp(){ document.getElementById("floater").style.display='none' } function pozycjaSzerokosc(){ w=document.getElementById("floater").clientWidth w=w/2; szer=(xClientWidth()/2)-w; return szer; } function pozycjaWysokosc(){ w=document.getElementById("floater").clientHeight w=w/2; wys=(xClientHeight()/2)-w; return wys; } function winOnLoad(){ winOnResize(); // set initial position xAddEventListener(window, 'resize', winOnResize, false); xAddEventListener(window, 'scroll', winOnScroll, false); return; } function winOnResize() { xMoveTo('floater', pozycjaSzerokosc(), xScrollTop() + pozycjaWysokosc()); xShow('floater'); winOnScroll(); // initial slide } function winOnScroll() { xSlideTo('floater', xLeft('floater'), xScrollTop() + pozycjaWysokosc(), slideTime); }