
function Adsamoremo_close()
{
    var date = new Date();
    date.setTime(date.getTime()+1800000);
    document.getElementById("Adsamoremo_container").style.display = "none";
    document.cookie = "Adsamoremo_close=1;expires=" + date.toGMTString() + ";path=/";
}

if (readCookie("Adsamoremo_close") != 1)
{
    $("body").append('<link type="text/css" rel="stylesheet" media="screen" href="http://www.amoremo.pl/reklama/amoremo_red.css" /><div id="Adsamoremo_container" class="Adsamoremo_red" style="position: fixed; bottom: 0; right: 5px; width:240px; height:160px; z-index:999; overflow:hidden;"><div id="Adsamoremobox" style="position:relative; top:0; z-index:998; width:240px; height:160px;"><a id="Adsamoremo_close" onclick="javascript:Adsamoremo_close();" style="width:15px; height:15px; display:block; position:absolute; top:5px; right:5px; cursor:pointer;"></a><div id="Adsamoremo_header" style="padding:6px 6px 6px 10px; font-size:12px; text-align:left;"><a href="http://www.amoremo.pl/anons/pani-szuka-sponsora-sponsoring-i-sex-lodz-14048" target="_blank"><span>Blanka_vip</span> - Pani szuka sponsora</a></div><div id="Adsamoremo_photo" style="position:absolute; top:30px; left:5px; width:90px; height:90px;"><a href="http://www.amoremo.pl/anons/pani-szuka-sponsora-sponsoring-i-sex-lodz-14048" target="_blank"><img width="90" height="90" src="http://img.amoremo.pl/14048/14048-1.jpg?1291641297" alt="Umów się na sex!" /></a></div><div id="Adsamoremo_text" style="position:absolute; top:30px; right:5px; width:130px;"><a href="http://www.amoremo.pl/anons/pani-szuka-sponsora-sponsoring-i-sex-lodz-14048" target="_blank">Witam miłych panów którzy chcieli by przeżyć chwilę zapomnienia i zapraszam do mojego dyskretn</a></div><div id="Adsamoremo_bottom" style="position:absolute; bottom:5px; right: 5px;"><a href="http://www.amoremo.pl/anons/pani-szuka-sponsora-sponsoring-i-sex-lodz-14048" target="_blank">Łódź, łódzkie</a></div></div></div>');
}

function readCookie(name)
{
var nameEQ = name + "=";
var ca = document.cookie.split(';');

for(var i=0;i < ca.length;i++)
    {
	var c = ca[i];
	while (c.charAt(0)==' ') c = c.substring(1,c.length);
	if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);
}

return null;
}

