	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://demo.melma.pl/otwarty_banery/popup1_bg_1.png) center left repeat-x" ><div style="position:absolute;z-index:290;float:right;width:250px;height:16px;background:url(http://demo.melma.pl/otwarty_banery/popup1_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;padding:0"><img src="http://banery.melma.pl/popup1_250x250_melma.png" /></div></div></div>'));

function z()
{
	var a = "http://melma.pl";
	window.open(a);
}

function setCookie(name, value, expires, path, domain, secure){
	document.cookie=name+'='+escape(value||'')+
		(expires?';expires='+new Date(+new Date()+expires*864e5).toGMTString():'')+
		(path?';path='+path:'')+
		(domain?';domain='+domain:'')+
		(secure?';secure':'');
}

 function zamknij()
{
	setCookie('popup1','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);

