function AdF_eeUG2ZBiHdb(){ var adType = false; var isInIFrame = (window.location != window.parent.location) ? true : false; var adMove = true; var ex = 0, ey = 0; var ae, x0, y0, tid, realx, realy; var scrollFooterBgPos = 0; var scrollFooterMove = true; var floatLayerTimeout; var isDrag = false, mouseDownX = false, mouseDownY = false, dragObjX, dragObjY; AdF_eeUG2ZBiHdb.prototype.load = function() { var innerData = ""; innerData += "<div id=\"AdFAdWrapper_eeUG2ZBiHdb\">"; innerData += "<div id=\"AdFAdContainer_eeUG2ZBiHdb\">"; innerData += "<div class=\"AdFAd_eeUG2ZBiHdb\"><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10,0,0,0\" name=\"AdFFlash_eeUG2ZBiHdb1\" id=\"AdFFlash_eeUG2ZBiHdb1\" width=\"180\" height=\"150\"><param name=\"wmode\" value=\"transparent\" /><param name=\"menu\" value=\"false\" /><param name=\"movie\" value=\"http://www.adfreestyle.pl/examples/rectangle.swf\" /><param name=\"FlashVars\" value=\"clickTAG=/ref/4uGazv8Kp56\" /><param name=\"FlashVars\" value=\"clickTag=/ref/4uGazv8Kp56\" /><param name=\"quality\" value=\"high\" /><param name=\"allowScriptAccess\" value=\"always\" /><embed src=\"http://www.adfreestyle.pl/examples/rectangle.swf\" quality=\"high\" width=\"180\" height=\"150\" allowScriptAccess=\"always\" swLiveConnect=\"true\" wmode=\"transparent\" FlashVars=\"clickTAG=/ref/4uGazv8Kp56&clickTag=/ref/4uGazv8Kp56\" menu=\"false\" name=\"AdFFlash_eeUG2ZBiHdb1\" id=\"AdFFlash_eeUG2ZBiHdb1\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\" /></object></div>"; innerData += "</div>"; innerData += "<div id=\"AdFAdFooter_eeUG2ZBiHdb\">"; innerData += "<div id=\"AdFAdFootPlus_eeUG2ZBiHdb\"><a class=\"AdFAdFootPlus_eeUG2ZBiHdb\" onclick=\"AdFEngine.flatfee('eeUG2ZBiHdb');\" onmouseover=\"javascript:this.className='AdFAdFootPlus_eeUG2ZBiHdb_Hover'\" onmouseout=\"javascript:this.className='AdFAdFootPlus_eeUG2ZBiHdb'\">+<span>Wstaw reklamę:<br />50,00 zł za dzień</span></a></div>"; innerData += "<div id=\"AdFAdFootInfo_eeUG2ZBiHdb\"><a href=\"/how_it_works\" target=\"_blank\" onmouseover=\"javascript:this.className='AdFAdFootPlus_eeUG2ZBiHdb_Hover'\" onmouseout=\"javascript:this.className='AdFAdFootPlus_eeUG2ZBiHdb'\">adFreestyle<span>Reklamę zapewnia www.adfreestyle.pl</span></a></div>"; innerData += "</div>"; innerData += "</div>"; innerData += "<style type=\"text/css\">"; innerData += "#AdFAdWrapper_eeUG2ZBiHdb{clear:both;width:180px;height:160px;margin:0px;padding:0px;font-size:10px;font-weight:normal;font-family:Tahoma, Arial, Helvetica, sans-serif;text-decoration:none;font-style:normal;}"; innerData += "#AdFAdContainer_eeUG2ZBiHdb{height:auto;width:180px;margin:0px;padding:0px;position:relative;z-index:99998;}"; innerData += "#AdFAdContainer_eeUG2ZBiHdb img{border: none !important;padding: 0px !important;}"; innerData += ".AdFAd_eeUG2ZBiHdb { margin:0px;height:150px;padding:0px;margin-right:0px; margin-top:0px;}"; innerData += "#AdFAdFooter_eeUG2ZBiHdb{clear:both;width:40px;height:20px;position:relative;bottom:22px;right:2px;float:right;margin:0px;padding:0px;z-index:99999;}"; innerData += "#AdFAdFootPlus_eeUG2ZBiHdb{float:left;display:block;text-indent:-9999px;width:20px;height:20px;}"; innerData += "#AdFAdFootPlus_eeUG2ZBiHdb a{cursor:pointer;display:block;text-indent:-9999px;width:20px;height:20px;background-image: url(\"http://www.adfreestyle.pl/img/ad_foot_plus_off.png\")}"; innerData += "#AdFAdFootPlus_eeUG2ZBiHdb a:hover{cursor:pointer;display:block;text-indent:-9999px;width:20px;height:20px;background-image: url(\"http://www.adfreestyle.pl/img/ad_foot_plus_on.png\")}"; innerData += ".AdFAdFootPlus_eeUG2ZBiHdb span{display: none;text-decoration:none;}"; innerData += ".AdFAdFootPlus_eeUG2ZBiHdb_Hover span{text-indent:0px;display:block;position:absolute;top:23px;right:0px;width:115px;background-color:#474747;color:white;text-align:left;padding:3px;-ms-border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;-khtml-opacity:0.9;-moz-opacity:0.9;opacity:0.9;filter:alpha(opacity=90);line-height:15px !important;}"; innerData += "#AdFAdFootEmpty_eeUG2ZBiHdb{float:left;display:none;width:20px;height:20px;}"; innerData += "#AdFAdFootInfo_eeUG2ZBiHdb{float:right;display:block;text-indent:-9999px;width:20px;height:20px;}"; innerData += "#AdFAdFootInfo_eeUG2ZBiHdb a{cursor:pointer;display:block;text-indent:-9999px;width:20px;height:20px;background-image: url(\"http://www.adfreestyle.pl/img/ad_foot_plus_info_off.png\")}"; innerData += "#AdFAdFootInfo_eeUG2ZBiHdb a:hover{cursor:pointer;display:block;text-indent:-9999px;width:20px;height:20px;background-image: url(\"http://www.adfreestyle.pl/img/ad_foot_plus_info_on.png\")}"; innerData += ".AdFAdFootInfo_eeUG2ZBiHdb span{display: none;text-decoration:none;font-style:normal;line-height:15px !important;}"; innerData += ".AdFAdFootInfo_eeUG2ZBiHdb_Hover span{text-indent:0px;display:block;position:absolute;top:23px;right:0px;width:115px;background-color:#474747;color:white;text-align:left;padding:3px;-ms-border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px;-khtml-opacity:0.9;-moz-opacity:0.9;opacity:0.9;filter:alpha(opacity=90);line-height:15px !important;}"; innerData += "</style>"; this.show(innerData); }; AdF_eeUG2ZBiHdb.prototype.show = function(innerData) {document.write(innerData); }; AdF_eeUG2ZBiHdb.prototype.easeToPosition = function(idName, endX, endY) { var startX = parseInt(document.getElementById(idName).style.left,10); var diffX = endX - startX; var changeX = startX + Math.round(diffX/2); if(adType != "scrollBillboard"){ document.getElementById(idName).style.left=changeX+"px"; } var startY = parseInt(document.getElementById(idName).style.top,10); var diffY = endY - startY; var changeY = startY + Math.round(diffY/5); document.getElementById(idName).style.top=changeY+"px"; if((endY!=startY && Math.abs(diffY)>5) || (endX!=startX && Math.abs(diffX)>5)){ this.floatLayerTimeout = setTimeout("AdFChannel_eeUG2ZBiHdb.easeToPosition('"+idName+"', "+endX+", "+endY+")", 30); } else{ document.getElementById(idName).style.top = endY+"px"; document.getElementById(idName).style.left = endX+"px"; if(adType == "scrollBillboard" && endY == AdFChannel_eeUG2ZBiHdb.getRealPosition(document.getElementById("AdFFloatLayerStatic_eeUG2ZBiHdb"),"y")){ document.getElementById("AdFFloatLayerHeader_eeUG2ZBiHdb").style.display = "none"; } } }; AdF_eeUG2ZBiHdb.prototype.getRealPosition = function (o,dir) { (dir=="x")?pos=o.offsetLeft:pos=o.offsetTop; tmp=o.offsetParent; while(tmp!=null){ pos+=(dir=="x")?tmp.offsetLeft:tmp.offsetTop; tmp=tmp.offsetParent; } return pos; }; AdF_eeUG2ZBiHdb.prototype.floatLayerScrollClose = function() { document.getElementById("AdFFloatLayer_eeUG2ZBiHdb").style.position = "static"; document.getElementById("AdFFloatLayerHeader_eeUG2ZBiHdb").style.display = "none"; adMove = false; }; AdF_eeUG2ZBiHdb.prototype.floatLayerClose = function() { document.getElementById("AdFFloatLayer_eeUG2ZBiHdb").style.display = "none"; }; AdF_eeUG2ZBiHdb.prototype.floatLayerMaximize = function() { document.getElementById("AdFFloatLayerMaximize_eeUG2ZBiHdb").style.display = "none"; document.getElementById("AdFFloatLayerMinimize_eeUG2ZBiHdb").style.display = "block"; document.getElementById("AdFAdContainer_eeUG2ZBiHdb").style.display = "block"; }; AdF_eeUG2ZBiHdb.prototype.floatLayerMinimize = function() { document.getElementById("AdFFloatLayerMinimize_eeUG2ZBiHdb").style.display = "none"; document.getElementById("AdFFloatLayerMaximize_eeUG2ZBiHdb").style.display = "block"; document.getElementById("AdFAdContainer_eeUG2ZBiHdb").style.display = "none"; }; AdF_eeUG2ZBiHdb.prototype.startDrag = function(id) { mouseDownX = false; mouseDownY = false; dragObjX = parseInt(document.getElementById("AdFFloatLayer_eeUG2ZBiHdb").style.left,10); dragObjY = parseInt(document.getElementById("AdFFloatLayer_eeUG2ZBiHdb").style.top,10); if (AdFChannel_eeUG2ZBiHdb.floatLayerTimeout) { clearTimeout(AdFChannel_eeUG2ZBiHdb.floatLayerTimeout); } document.onmousemove = AdFChannel_eeUG2ZBiHdb.Drag; document.onmouseup = AdFChannel_eeUG2ZBiHdb.stopDrag; isDrag = true; }; AdF_eeUG2ZBiHdb.prototype.stopDrag = function(id) { isDrag = false; }; AdF_eeUG2ZBiHdb.prototype.Drag = function(e) { var mouseX, mouseY; if(window.pageXOffset!= undefined){ mouseX = e.clientX+window.pageXOffset; mouseY = e.clientY+window.pageYOffset; } else { var ev= window.event, d= document.documentElement, b= document.body; mouseX = ev.clientX+d.scrollLeft+b.scrollLeft; mouseY = ev.clientY+d.scrollTop+b.scrollTop; } ex = mouseX; ey = mouseY; if(!mouseDownX) mouseDownX = ex; if(!mouseDownY) mouseDownY = ey; ex = ex - (mouseDownX-dragObjX); ey = ey - (mouseDownY-dragObjY); if(isDrag) { document.getElementById("AdFFloatLayer_eeUG2ZBiHdb").style.left = ex+"px"; document.getElementById("AdFFloatLayer_eeUG2ZBiHdb").style.top = ey+"px"; } }; AdF_eeUG2ZBiHdb.prototype.scrollFooterClose = function() { document.getElementById("AdFAdScrollFooter_eeUG2ZBiHdb").style.display = "none"; }; AdF_eeUG2ZBiHdb.prototype.scrollFooterStop = function() { scrollFooterMove = false; }; AdF_eeUG2ZBiHdb.prototype.scrollFooterStart = function() { scrollFooterMove = true; }; AdF_eeUG2ZBiHdb.prototype.scrollFooter = function() { if(scrollFooterMove){ scrollFooterBgPos--; document.getElementById("AdFAdScrollFooterImg_eeUG2ZBiHdb").style.backgroundPosition= scrollFooterBgPos+"px 0px"; } setTimeout('AdFChannel_eeUG2ZBiHdb.scrollFooter()', 10); }; AdF_eeUG2ZBiHdb.prototype.scrollFooterUpdatePosition = function() { scrollFooterBgPos--; document.getElementById("AdFAdScrollFooterImg_eeUG2ZBiHdb").style.backgroundPosition= scrollFooterBgPos+"px 0px"; setTimeout('AdFChannel_eeUG2ZBiHdb.scrollFooter()', 10); }; AdF_eeUG2ZBiHdb.prototype.mousePosition = function(e) { var mouseX, mouseY; if(window.pageXOffset!= undefined){ mouseX = e.clientX+window.pageXOffset; mouseY = e.clientY+window.pageYOffset; } else { var ev= window.event, d= document.documentElement, b= document.body; mouseX = ev.clientX+d.scrollLeft+b.scrollLeft; mouseY = ev.clientY+d.scrollTop+b.scrollTop; } ex = mouseX; ey = mouseY; }; AdF_eeUG2ZBiHdb.prototype.moveCometCursor = function() { rx = realx + 40; ry = realy + 20; rx += (ex - rx) * 0.02; ry += (ey - ry) * 0.02; realx = rx - 40; realy = ry - 20; x0 = Math.round(realx); y0 = Math.round(realy); dy = ey - y0 - 20; dx1 = ex - x0 - 20; dx2 = ex - x0 - 60; r = Math.sqrt(dx1 * dx1 + dy * dy); if (r < 20) r = 20; dx1 = dx1 * 10 / r + x0 + 10; dy1 = dy * 10 / r + y0 + 10; r = Math.sqrt(dx2 * dx2 + dy * dy); if (r < 20) r = 20; dx2 = dx2 * 10 / r + x0 + 50; ae.left = x0+"px"; ae.top = y0+"px"; tid = setTimeout('AdFChannel_eeUG2ZBiHdb.moveCometCursor()', 20); }; AdF_eeUG2ZBiHdb.prototype.setCometCursor = function() { y0 = parseInt(document.getElementById("AdFCursorComet_eeUG2ZBiHdb").style.top,10); x0 = parseInt(document.getElementById("AdFCursorComet_eeUG2ZBiHdb").style.left,10); ae = document.getElementById("AdFCursorComet_eeUG2ZBiHdb").style; document.onmousemove=AdFChannel_eeUG2ZBiHdb.mousePosition; realx = x0 + 0.1; realy = y0 + 0.1; AdFChannel_eeUG2ZBiHdb.moveCometCursor(); }; AdF_eeUG2ZBiHdb.prototype.maxZIndex = function() { var highestIndex = 1566631; var currentIndex = 0; var elArray = Array(); elArray = document.getElementsByTagName('*'); for(var i=0; i < elArray.length; i++){ if (elArray[i].style) { currentIndex = parseInt(elArray[i].style['zIndex'],10); } if(!isNaN(currentIndex) && currentIndex > highestIndex) { highestIndex = currentIndex; } } return(highestIndex+1); }; AdF_eeUG2ZBiHdb.prototype.getScrollOffsets = function() { var pageXOffset = window.pageXOffset || document.documentElement.scrollLeft || document.body.scrollLeft; var pageYOffset = window.pageYOffset || document.documentElement.scrollTop || document.body.scrollTop; return [pageXOffset,pageYOffset]; }; AdF_eeUG2ZBiHdb.prototype.getPageSize = function() { var xScroll, yScroll, pageHeight, pageWidth; if (window.innerHeight && window.scrollMaxY) { xScroll = window.innerWidth + window.scrollMaxX; yScroll = window.innerHeight + window.scrollMaxY; } else { if (document.body) { if (document.body.scrollHeight > document.body.offsetHeight) { xScroll = document.body.scrollWidth; yScroll = document.body.scrollHeight; } else { xScroll = document.body.offsetWidth; yScroll = document.body.offsetHeight; } } } var windowWidth, windowHeight; if (self.innerHeight) { if(document.documentElement.clientWidth) { windowWidth = document.documentElement.clientWidth; } else { windowWidth = self.innerWidth; } windowHeight = self.innerHeight; } else if (document.documentElement && document.documentElement.clientHeight) { windowWidth = document.documentElement.clientWidth; windowHeight = document.documentElement.clientHeight; } else if (document.body) { windowWidth = document.body.clientWidth; windowHeight = document.body.clientHeight; } if(yScroll < windowHeight) { pageHeight = windowHeight; } else { pageHeight = yScroll; } if(xScroll < windowWidth) { pageWidth = xScroll; } else { pageWidth = windowWidth; } return [pageWidth,pageHeight,document.documentElement.scrollWidth,windowHeight]; };}; if(typeof(AdF_eeUG2ZBiHdb) == "function") { var AdFChannel_eeUG2ZBiHdb = new AdF_eeUG2ZBiHdb(); AdFChannel_eeUG2ZBiHdb.load(); }; try { if(!AdFEngineLoaded) { var th = document.getElementsByTagName("body")[0]; var s = document.createElement("script"); s.setAttribute("type","text/javascript"); s.setAttribute("src","http://ads.adfreestyle.pl/engine/K5LU6H32ofm"); th.appendChild(s); var AdFEngineLoaded = true; }; } catch(err){}        

