function AdF_lhuf7dG3AUE(){ 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_lhuf7dG3AUE.prototype.load = function() { var innerData = ""; innerData += "<div id=\"AdFAdWrapper_lhuf7dG3AUE\">"; innerData += "<div id=\"AdFAdContainer_lhuf7dG3AUE\">"; innerData += "<div class=\"AdFAd_lhuf7dG3AUE\"><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_lhuf7dG3AUE1\" id=\"AdFFlash_lhuf7dG3AUE1\" width=\"300\" height=\"250\"><param name=\"wmode\" value=\"transparent\" /><param name=\"menu\" value=\"false\" /><param name=\"movie\" value=\"http://www.adfreestyle.pl/img/play.swf\" /><param name=\"FlashVars\" value=\"ad=http://www.adfreestyle.pl/examples/videoad.flv&clickTAG=/ref/GNGlKwszMcR&clickTag=/ref/GNGlKwszMcR\" /><param name=\"quality\" value=\"high\" /><param name=\"allowScriptAccess\" value=\"always\" /><embed src=\"http://www.adfreestyle.pl/img/play.swf\" quality=\"high\" width=\"300\" height=\"250\" allowScriptAccess=\"always\" swLiveConnect=\"true\" wmode=\"transparent\" FlashVars=\"ad=http://www.adfreestyle.pl/examples/videoad.flv&clickTAG=/ref/GNGlKwszMcR&clickTag=/ref/GNGlKwszMcR\" menu=\"false\" name=\"AdFFlash_lhuf7dG3AUE1\" id=\"AdFFlash_lhuf7dG3AUE1\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.adobe.com/go/getflashplayer\" /></object></div>"; innerData += "</div>"; innerData += "<div id=\"AdFAdFooter_lhuf7dG3AUE\">"; innerData += "<div id=\"AdFAdFootPlus_lhuf7dG3AUE\"><a class=\"AdFAdFootPlus_lhuf7dG3AUE\" onclick=\"AdFEngine.flatfee('lhuf7dG3AUE');\" onmouseover=\"javascript:this.className='AdFAdFootPlus_lhuf7dG3AUE_Hover'\" onmouseout=\"javascript:this.className='AdFAdFootPlus_lhuf7dG3AUE'\">+<span>Wstaw reklamę:<br />0,00 zł za dzień</span></a></div>"; innerData += "<div id=\"AdFAdFootInfo_lhuf7dG3AUE\"><a href=\"/how_it_works\" target=\"_blank\" onmouseover=\"javascript:this.className='AdFAdFootPlus_lhuf7dG3AUE_Hover'\" onmouseout=\"javascript:this.className='AdFAdFootPlus_lhuf7dG3AUE'\">adFreestyle<span>Reklamę zapewnia www.adfreestyle.pl</span></a></div>"; innerData += "</div>"; innerData += "</div>"; innerData += "<style type=\"text/css\">"; innerData += "#AdFAdWrapper_lhuf7dG3AUE{clear:both;width:300px;height:260px;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_lhuf7dG3AUE{height:auto;width:300px;margin:0px;padding:0px;position:relative;z-index:99998;}"; innerData += "#AdFAdContainer_lhuf7dG3AUE img{border: none !important;padding: 0px !important;}"; innerData += ".AdFAd_lhuf7dG3AUE { margin:0px;height:250px;padding:0px;margin-right:0px; margin-top:0px;}"; innerData += "#AdFAdFooter_lhuf7dG3AUE{clear:both;width:40px;height:20px;position:relative;bottom:22px;right:2px;float:right;margin:0px;padding:0px;z-index:99999;}"; innerData += "#AdFAdFootPlus_lhuf7dG3AUE{float:left;display:block;text-indent:-9999px;width:20px;height:20px;}"; innerData += "#AdFAdFootPlus_lhuf7dG3AUE 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_lhuf7dG3AUE 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_lhuf7dG3AUE span{display: none;text-decoration:none;}"; innerData += ".AdFAdFootPlus_lhuf7dG3AUE_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_lhuf7dG3AUE{float:left;display:none;width:20px;height:20px;}"; innerData += "#AdFAdFootInfo_lhuf7dG3AUE{float:right;display:block;text-indent:-9999px;width:20px;height:20px;}"; innerData += "#AdFAdFootInfo_lhuf7dG3AUE 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_lhuf7dG3AUE 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_lhuf7dG3AUE span{display: none;text-decoration:none;font-style:normal;line-height:15px !important;}"; innerData += ".AdFAdFootInfo_lhuf7dG3AUE_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 += "#AdFAdFootPlus_lhuf7dG3AUE {display: none;}"; innerData += "#AdFAdFootInfo_lhuf7dG3AUE {display: block;}"; innerData += "</style>"; this.show(innerData); }; AdF_lhuf7dG3AUE.prototype.show = function(innerData) {document.write(innerData); }; AdF_lhuf7dG3AUE.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_lhuf7dG3AUE.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_lhuf7dG3AUE.getRealPosition(document.getElementById("AdFFloatLayerStatic_lhuf7dG3AUE"),"y")){ document.getElementById("AdFFloatLayerHeader_lhuf7dG3AUE").style.display = "none"; } } }; AdF_lhuf7dG3AUE.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_lhuf7dG3AUE.prototype.floatLayerScrollClose = function() { document.getElementById("AdFFloatLayer_lhuf7dG3AUE").style.position = "static"; document.getElementById("AdFFloatLayerHeader_lhuf7dG3AUE").style.display = "none"; adMove = false; }; AdF_lhuf7dG3AUE.prototype.floatLayerClose = function() { document.getElementById("AdFFloatLayer_lhuf7dG3AUE").style.display = "none"; }; AdF_lhuf7dG3AUE.prototype.floatLayerMaximize = function() { document.getElementById("AdFFloatLayerMaximize_lhuf7dG3AUE").style.display = "none"; document.getElementById("AdFFloatLayerMinimize_lhuf7dG3AUE").style.display = "block"; document.getElementById("AdFAdContainer_lhuf7dG3AUE").style.display = "block"; }; AdF_lhuf7dG3AUE.prototype.floatLayerMinimize = function() { document.getElementById("AdFFloatLayerMinimize_lhuf7dG3AUE").style.display = "none"; document.getElementById("AdFFloatLayerMaximize_lhuf7dG3AUE").style.display = "block"; document.getElementById("AdFAdContainer_lhuf7dG3AUE").style.display = "none"; }; AdF_lhuf7dG3AUE.prototype.startDrag = function(id) { mouseDownX = false; mouseDownY = false; dragObjX = parseInt(document.getElementById("AdFFloatLayer_lhuf7dG3AUE").style.left,10); dragObjY = parseInt(document.getElementById("AdFFloatLayer_lhuf7dG3AUE").style.top,10); if (AdFChannel_lhuf7dG3AUE.floatLayerTimeout) { clearTimeout(AdFChannel_lhuf7dG3AUE.floatLayerTimeout); } document.onmousemove = AdFChannel_lhuf7dG3AUE.Drag; document.onmouseup = AdFChannel_lhuf7dG3AUE.stopDrag; isDrag = true; }; AdF_lhuf7dG3AUE.prototype.stopDrag = function(id) { isDrag = false; }; AdF_lhuf7dG3AUE.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_lhuf7dG3AUE").style.left = ex+"px"; document.getElementById("AdFFloatLayer_lhuf7dG3AUE").style.top = ey+"px"; } }; AdF_lhuf7dG3AUE.prototype.scrollFooterClose = function() { document.getElementById("AdFAdScrollFooter_lhuf7dG3AUE").style.display = "none"; }; AdF_lhuf7dG3AUE.prototype.scrollFooterStop = function() { scrollFooterMove = false; }; AdF_lhuf7dG3AUE.prototype.scrollFooterStart = function() { scrollFooterMove = true; }; AdF_lhuf7dG3AUE.prototype.scrollFooter = function() { if(scrollFooterMove){ scrollFooterBgPos--; document.getElementById("AdFAdScrollFooterImg_lhuf7dG3AUE").style.backgroundPosition= scrollFooterBgPos+"px 0px"; } setTimeout('AdFChannel_lhuf7dG3AUE.scrollFooter()', 10); }; AdF_lhuf7dG3AUE.prototype.scrollFooterUpdatePosition = function() { scrollFooterBgPos--; document.getElementById("AdFAdScrollFooterImg_lhuf7dG3AUE").style.backgroundPosition= scrollFooterBgPos+"px 0px"; setTimeout('AdFChannel_lhuf7dG3AUE.scrollFooter()', 10); }; AdF_lhuf7dG3AUE.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_lhuf7dG3AUE.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_lhuf7dG3AUE.moveCometCursor()', 20); }; AdF_lhuf7dG3AUE.prototype.setCometCursor = function() { y0 = parseInt(document.getElementById("AdFCursorComet_lhuf7dG3AUE").style.top,10); x0 = parseInt(document.getElementById("AdFCursorComet_lhuf7dG3AUE").style.left,10); ae = document.getElementById("AdFCursorComet_lhuf7dG3AUE").style; document.onmousemove=AdFChannel_lhuf7dG3AUE.mousePosition; realx = x0 + 0.1; realy = y0 + 0.1; AdFChannel_lhuf7dG3AUE.moveCometCursor(); }; AdF_lhuf7dG3AUE.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_lhuf7dG3AUE.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_lhuf7dG3AUE.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_lhuf7dG3AUE) == "function") { var AdFChannel_lhuf7dG3AUE = new AdF_lhuf7dG3AUE(); AdFChannel_lhuf7dG3AUE.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/eE9wUE4ZmE9"); th.appendChild(s); var AdFEngineLoaded = true; }; } catch(err){}        

