function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expand_resize (width, height) { document.getElementById('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded').style.width = width + 'px'; document.getElementById('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded').style.height = height + 'px'; } function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expand () { if (document.getElementById('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded') == null) { var OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded = document.createElement('iframe'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.setAttribute('frameborder', '0'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.setAttribute('scrolling', 'no'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.width = '940'; OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.height = '475'; OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.setAttribute('style', 'position: absolute; top: 0px; right: 0px; z-index: 9999;'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.id = "OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded"; document.getElementById(OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_container.id).appendChild(OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'9f0918e7a710d76f0de45d08cdf4285c\'); API.trackElement(\'container\'); init(); }; function mouseOver (e) { var obj=e.relatedTarget; while(obj!=null){ if(obj==this){ return; }; obj=obj.parentNode; }; if (typeof mouseOverListener == \'function\') { mouseOverListener(); }; API.registerEvent(API.EVENT_MOUSE_OVER); }; function mouseOut (e) { var obj=e.relatedTarget; while(obj!=null){ if(obj==this){ return; }; obj=obj.parentNode; }; API.registerEvent(API.EVENT_MOUSE_OUT); if (typeof mouseOutListener == \'function\') { mouseOutListener(); }; }; ' + "\n" + '' + "\n" + 'document.write(\'\');' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '
' + "\n" + ' ' + "\n" + ' ' + "\n" + '' + "\n" + '
' + "\n" + '' + "\n" + '' + "\n" + '// Define your variables here like' + "\n" + '// references to divs and images, timelines and counters' + "\n" + 'var mobile = false;' + "\n" + '' + "\n" + 'function isMobile ()' + "\n" + '{' + "\n" + ' if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) ' + "\n" + ' {' + "\n" + ' mobile = true;' + "\n" + ' } ' + "\n" + ' else' + "\n" + ' {' + "\n" + ' mobile = false; ' + "\n" + ' }' + "\n" + '}' + "\n" + '' + "\n" + 'function init () {' + "\n" + ' // Put your custom code here that should first be executed when documents is ready' + "\n" + ' // e.g. CMS code and tweens' + "\n" + '' + "\n" + ' if (data.length < 5)' + "\n" + ' {' + "\n" + ' $("#container").css("height", "240");' + "\n" + ' parent.OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expand_resize("940","242");' + "\n" + ' }' + "\n" + ' ' + "\n" + ' if (!mobile)' + "\n" + ' {' + "\n" + ' $("#container").mouseleave(function () { parent.OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapse(); });' + "\n" + ' }' + "\n" + ' ' + "\n" + ' for (x=0; x\');' + "\n" + ' }' + "\n" + '}' + "\n" + '' + "\n" + 'function redir (url, itemId)' + "\n" + '{' + "\n" + ' window.open(clickTAG + url); ' + "\n" + ' API.registerEvent(API.EVENT_CLICK, clickTAG + url, itemId, url); ' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' ' + "\n";; if (location.protocol === 'https:') { OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.contentWindow.contents = OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded.src = 'javascript:window["contents"]'; } document.getElementById("OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded").style.display = 'block'; document.getElementById("OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapsed").contentWindow.API.registerEvent(2); } function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapse () { document.getElementById("OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expanded").style.display = 'none'; document.getElementById("OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapsed").contentWindow.API.registerEvent(3); } document.write("
Loading...
"); function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_init () { document.getElementById('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_banner').innerHTML = ''; // create a div container to hold the 2 iframes var OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_container = document.createElement('div'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_container.setAttribute('style', 'position: relative; width: 300px; height: 200px;'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_container.id = "OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_container"; document.getElementById('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_banner').appendChild(OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_container); var OnAds_0f1429e6f5ddcab1cda626305d1e3c6b = document.createElement('iframe'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.width = '300'; OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.height = '200'; OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.setAttribute('frameborder', '0'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.setAttribute('scrolling', 'no'); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.src = 'about:blank'; OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.id = "OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapsed"; document.getElementById(OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_container.id).appendChild(OnAds_0f1429e6f5ddcab1cda626305d1e3c6b); OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'9f0918e7a710d76f0de45d08cdf4285c\'); API.trackElement(\'container\'); parent.OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_isInScreen(); init(); }; function mouseOver (e) { var obj=e.relatedTarget; while(obj!=null){ if(obj==this){ return; }; obj=obj.parentNode; }; if (typeof mouseOverListener == \'function\') { mouseOverListener(); }; API.registerEvent(API.EVENT_MOUSE_OVER); }; function mouseOut (e) { var obj=e.relatedTarget; while(obj!=null){ if(obj==this){ return; }; obj=obj.parentNode; }; API.registerEvent(API.EVENT_MOUSE_OUT); if (typeof mouseOutListener == \'function\') { mouseOutListener(); }; }; ' + "\n" + '' + "\n" + 'document.write(\'\');' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '
' + "\n" + '
' + "\n" + '
' + "\n" + '' + "\n" + '' + "\n" + 'var timerAutoExpand;' + "\n" + 'var mobile = false;' + "\n" + '' + "\n" + '' + "\n" + 'function isMobile ()' + "\n" + '{' + "\n" + ' if( /Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) ) ' + "\n" + ' {' + "\n" + ' mobile = true;' + "\n" + ' } ' + "\n" + ' else' + "\n" + ' {' + "\n" + ' mobile = false; ' + "\n" + ' }' + "\n" + '}' + "\n" + '' + "\n" + 'function init () {' + "\n" + ' // Put your custom code here that should first be executed when documents is ready' + "\n" + ' // e.g. CMS code and tweens' + "\n" + ' API.registerImpression();' + "\n" + ' for (x=0; x\');' + "\n" + ' }' + "\n" + ' $("#cycle").cycle({timeout: 2000, speed: 2000});' + "\n" + '}' + "\n" + '' + "\n" + 'function initAutoExpand ()' + "\n" + '{' + "\n" + ' if (mobile == false)' + "\n" + ' {' + "\n" + ' timerAutoExpand = setTimeout("parent.OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_expand();", 1000);' + "\n" + ' }' + "\n" + '}' + "\n" + '' + "\n" + 'function clearAutoExpand ()' + "\n" + '{' + "\n" + ' clearTimeout(timerAutoExpand); ' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' ' + "\n"; if (location.protocol === 'https:') { OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.contentWindow.contents = OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_0f1429e6f5ddcab1cda626305d1e3c6b.src = 'javascript:window["contents"]'; } function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_isInScreen () { if (OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_isElementInViewport('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapsed')) { // register inscreen view document.getElementById('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapsed').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_isInScreen();", 500); } } function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_isInViewport () { if (OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_isElementInViewport('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapsed')) { document.getElementById('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapsed').contentWindow.inViewport(); } else { setTimeout("OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_isInViewport()", 500); } } var OnAds_0f1429e6f5ddcab1cda626305d1e3c6breadyStateCheckInterval; function OnAds_0f1429e6f5ddcab1cda626305d1e3c6bpoliteListen () { OnAds_0f1429e6f5ddcab1cda626305d1e3c6breadyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_0f1429e6f5ddcab1cda626305d1e3c6breadyStateCheckInterval); document.getElementById('OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_collapsed').contentWindow.politeInit(); } }, 10); } function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_setCookie(c_name, value, exdays) { var exdate=new Date(); exdate.setDate(exdate.getDate() + exdays); var c_value=escape(value) + ((exdays==null) ? "" : "; expires="+exdate.toUTCString()); document.cookie=c_name + "=" + c_value; } function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_getCookie(c_name) { var c_value = document.cookie; var c_start = c_value.indexOf(" " + c_name + "="); if (c_start == -1) { c_start = c_value.indexOf(c_name + "="); } if (c_start == -1) { c_value = null; } else { c_start = c_value.indexOf("=", c_start) + 1; var c_end = c_value.indexOf(";", c_start); if (c_end == -1) { c_end = c_value.length; } c_value = unescape(c_value.substring(c_start,c_end)); } return c_value; } function OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_isElementInViewport(el) { var rect = document.getElementById(el).getBoundingClientRect(); return ( rect.top >= 0 && rect.left >= 0 && rect.top <= (window.innerHeight || document. documentElement.clientHeight) && rect.left <= (window.innerWidth || document. documentElement.clientWidth) ); } setTimeout("OnAds_0f1429e6f5ddcab1cda626305d1e3c6b_init();", 500);