document.write(('<div id="dockcontent_a" class="dockclass" style="right:0pt;overflow:hidden;position:absolute;z-index:290;width:250px;height:250px;float:right;margin-right:20px;background:url(http://test.dresik.pl/banner/popup_box/images/bnr14_grupa1_nr1.gif) center left repeat-x" >	<div style="position:absolute;z-index:290;float:right;width:250px;height:16px;background:url(http://test.dresik.pl/banner/popup_box/images/btn_close.png) top right no-repeat" onClick="zamknij(); return false"></div>	<div style="cursor:pointer;width:250px;height:250px;" onClick="z()">		<div style="margin:0 15px;padding-top:1px;color:#fff;font-weight:bold;font-size:13px;height:19px"></div>		<div style="margin-left:2px;margin-right:2px;margin-top:1px;color:#fff;font-weight:bold;font-size:13px;height:32px"></div>	</div></div>'));


function z()
{
	var a = "http://";
	var b = "www.sexol.pl/start/xxx";
	window.open(a+b);
}

function setCookie(c_name,value,expiredays)
{
	var exdate=new Date();
	exdate.setDate(exdate.getDate()+expiredays);
	document.cookie=c_name+ "=" +escape(value)+
	((expiredays==null) ? "" : ";expires="+exdate.toGMTString())+ "; path=/";
}
 function zamknij()
{
	setCookie('okno_boxik3','1','10');
	document.getElementById('dockcontent_a').style.display='none';
}

function zamknij_old()
{
	setCookie('box1','1','10');
	document.getElementById('dockcontent_a').style.display='none';
}



var Other =(document.getElementById&&!document.all); //Nowe przegladarki poza IE
var IE=(document.all); // Internet Explorer

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}

function floatSideBar(lPY)
{
var pY,id="dockcontent_a";
var source=document.all? document.all[id] : document.getElementById(id);
var wH = source.offsetHeight;

if(Other)
	pY = window.pageYOffset + window.innerHeight - wH;
else if(IE)
	pY = truebody().scrollTop + window.truebody().clientHeight - wH;

if(pY!= lPY)
{
	document.getElementById(id).style.top = pY + 'px';
}

setTimeout('floatSideBar('+pY+')',100);
}

floatSideBar(1);
