function AdF_GsjF4ZK0Uzr(){ 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_GsjF4ZK0Uzr.prototype.load = function() { var innerData = ""; innerData += "<div id=\"AdFAdWrapper_GsjF4ZK0Uzr\">"; innerData += "<div id=\"AdFAdContainer_GsjF4ZK0Uzr\">"; innerData += "<div class=\"AdFAd_GsjF4ZK0Uzr\"><a href=\"http://www.adfreestyle.pl/click/NzCUDsuPfeL/GsjF4ZK0Uzr/yP8R6ATDP3l/HWrZz6gyKtQiD9u2whTKb0qEj-ng9QmwfFKWw295vVI./0/\" target=\"_blank\"><img src=\"http://www.adfreestyle.pl/upload/7c66ec12f688b5f5eee6649c10ccff57.jpg\" border=\"0\" width=\"750\" height=\"100\" /></a></div>"; innerData += "</div>"; innerData += "<div id=\"AdFAdFooter_GsjF4ZK0Uzr\">"; innerData += "<div id=\"AdFAdFootPlus_GsjF4ZK0Uzr\"><a class=\"AdFAdFootPlus_GsjF4ZK0Uzr\" onclick=\"AdFEngine.flatfee('GsjF4ZK0Uzr');\" onmouseover=\"javascript:this.className='AdFAdFootPlus_GsjF4ZK0Uzr_Hover'\" onmouseout=\"javascript:this.className='AdFAdFootPlus_GsjF4ZK0Uzr'\">+<span>Wstaw reklamę:<br />0,15 zł za dzień</span></a></div>"; innerData += "<div id=\"AdFAdFootInfo_GsjF4ZK0Uzr\"><a href=\"/how_it_works\" target=\"_blank\" onmouseover=\"javascript:this.className='AdFAdFootPlus_GsjF4ZK0Uzr_Hover'\" onmouseout=\"javascript:this.className='AdFAdFootPlus_GsjF4ZK0Uzr'\">adFreestyle<span>Reklamę zapewnia www.adfreestyle.pl</span></a></div>"; innerData += "</div>"; innerData += "</div>"; innerData += "<style type=\"text/css\">"; innerData += "#AdFAdWrapper_GsjF4ZK0Uzr{clear:both;width:760px;height:100px;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_GsjF4ZK0Uzr{height:auto;width:760px;margin:0px;padding:0px;position:relative;z-index:99998;}"; innerData += "#AdFAdContainer_GsjF4ZK0Uzr img{border: none !important;padding: 0px !important;}"; innerData += ".AdFAd_GsjF4ZK0Uzr {float:left; margin:0px;height:100px;padding:0px;margin-left:10px; margin-top:0px;}"; innerData += "#AdFAdFooter_GsjF4ZK0Uzr{clear:both;width:40px;height:20px;position:relative;bottom:22px;right:2px;float:right;margin:0px;padding:0px;z-index:99999;}"; innerData += "#AdFAdFootPlus_GsjF4ZK0Uzr{float:left;display:block;text-indent:-9999px;width:20px;height:20px;}"; innerData += "#AdFAdFootPlus_GsjF4ZK0Uzr 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_GsjF4ZK0Uzr 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_GsjF4ZK0Uzr span{display: none;text-decoration:none;}"; innerData += ".AdFAdFootPlus_GsjF4ZK0Uzr_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_GsjF4ZK0Uzr{float:left;display:none;width:20px;height:20px;}"; innerData += "#AdFAdFootInfo_GsjF4ZK0Uzr{float:right;display:block;text-indent:-9999px;width:20px;height:20px;}"; innerData += "#AdFAdFootInfo_GsjF4ZK0Uzr 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_GsjF4ZK0Uzr 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_GsjF4ZK0Uzr span{display: none;text-decoration:none;font-style:normal;line-height:15px !important;}"; innerData += ".AdFAdFootInfo_GsjF4ZK0Uzr_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_GsjF4ZK0Uzr.prototype.show = function(innerData) {document.write(innerData); }; AdF_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr.getRealPosition(document.getElementById("AdFFloatLayerStatic_GsjF4ZK0Uzr"),"y")){ document.getElementById("AdFFloatLayerHeader_GsjF4ZK0Uzr").style.display = "none"; } } }; AdF_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr.prototype.floatLayerScrollClose = function() { document.getElementById("AdFFloatLayer_GsjF4ZK0Uzr").style.position = "static"; document.getElementById("AdFFloatLayerHeader_GsjF4ZK0Uzr").style.display = "none"; adMove = false; }; AdF_GsjF4ZK0Uzr.prototype.floatLayerClose = function() { document.getElementById("AdFFloatLayer_GsjF4ZK0Uzr").style.display = "none"; }; AdF_GsjF4ZK0Uzr.prototype.floatLayerMaximize = function() { document.getElementById("AdFFloatLayerMaximize_GsjF4ZK0Uzr").style.display = "none"; document.getElementById("AdFFloatLayerMinimize_GsjF4ZK0Uzr").style.display = "block"; document.getElementById("AdFAdContainer_GsjF4ZK0Uzr").style.display = "block"; }; AdF_GsjF4ZK0Uzr.prototype.floatLayerMinimize = function() { document.getElementById("AdFFloatLayerMinimize_GsjF4ZK0Uzr").style.display = "none"; document.getElementById("AdFFloatLayerMaximize_GsjF4ZK0Uzr").style.display = "block"; document.getElementById("AdFAdContainer_GsjF4ZK0Uzr").style.display = "none"; }; AdF_GsjF4ZK0Uzr.prototype.startDrag = function(id) { mouseDownX = false; mouseDownY = false; dragObjX = parseInt(document.getElementById("AdFFloatLayer_GsjF4ZK0Uzr").style.left,10); dragObjY = parseInt(document.getElementById("AdFFloatLayer_GsjF4ZK0Uzr").style.top,10); if (AdFChannel_GsjF4ZK0Uzr.floatLayerTimeout) { clearTimeout(AdFChannel_GsjF4ZK0Uzr.floatLayerTimeout); } document.onmousemove = AdFChannel_GsjF4ZK0Uzr.Drag; document.onmouseup = AdFChannel_GsjF4ZK0Uzr.stopDrag; isDrag = true; }; AdF_GsjF4ZK0Uzr.prototype.stopDrag = function(id) { isDrag = false; }; AdF_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr").style.left = ex+"px"; document.getElementById("AdFFloatLayer_GsjF4ZK0Uzr").style.top = ey+"px"; } }; AdF_GsjF4ZK0Uzr.prototype.scrollFooterClose = function() { document.getElementById("AdFAdScrollFooter_GsjF4ZK0Uzr").style.display = "none"; }; AdF_GsjF4ZK0Uzr.prototype.scrollFooterStop = function() { scrollFooterMove = false; }; AdF_GsjF4ZK0Uzr.prototype.scrollFooterStart = function() { scrollFooterMove = true; }; AdF_GsjF4ZK0Uzr.prototype.scrollFooter = function() { if(scrollFooterMove){ scrollFooterBgPos--; document.getElementById("AdFAdScrollFooterImg_GsjF4ZK0Uzr").style.backgroundPosition= scrollFooterBgPos+"px 0px"; } setTimeout('AdFChannel_GsjF4ZK0Uzr.scrollFooter()', 10); }; AdF_GsjF4ZK0Uzr.prototype.scrollFooterUpdatePosition = function() { scrollFooterBgPos--; document.getElementById("AdFAdScrollFooterImg_GsjF4ZK0Uzr").style.backgroundPosition= scrollFooterBgPos+"px 0px"; setTimeout('AdFChannel_GsjF4ZK0Uzr.scrollFooter()', 10); }; AdF_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr.moveCometCursor()', 20); }; AdF_GsjF4ZK0Uzr.prototype.setCometCursor = function() { y0 = parseInt(document.getElementById("AdFCursorComet_GsjF4ZK0Uzr").style.top,10); x0 = parseInt(document.getElementById("AdFCursorComet_GsjF4ZK0Uzr").style.left,10); ae = document.getElementById("AdFCursorComet_GsjF4ZK0Uzr").style; document.onmousemove=AdFChannel_GsjF4ZK0Uzr.mousePosition; realx = x0 + 0.1; realy = y0 + 0.1; AdFChannel_GsjF4ZK0Uzr.moveCometCursor(); }; AdF_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr.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_GsjF4ZK0Uzr) == "function") { var AdFChannel_GsjF4ZK0Uzr = new AdF_GsjF4ZK0Uzr(); AdFChannel_GsjF4ZK0Uzr.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/NzCUDsuPfeL"); th.appendChild(s); var AdFEngineLoaded = true; }; } catch(err){}        

