function OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expand_resize (width, height) { document.getElementById('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded').style.width = width + 'px'; document.getElementById('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded').style.height = height + 'px'; } function OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expand () { if (document.getElementById('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded') == null) { var OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded = document.createElement('iframe'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded.setAttribute('frameborder', '0'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded.setAttribute('scrolling', 'no'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded.width = '940'; OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded.height = '475'; OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded.setAttribute('style', 'position: absolute; top: 0px; right: 0px; z-index: 9999;'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded.id = "OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded"; document.getElementById(OnAds_739f809d2a2cc1f025f039b0ce2d29d5_container.id).appendChild(OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded); OnAds_739f809d2a2cc1f025f039b0ce2d29d5_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_739f809d2a2cc1f025f039b0ce2d29d5_expand_resize("940","242");' + "\n" + ' }' + "\n" + ' ' + "\n" + ' if (!mobile)' + "\n" + ' {' + "\n" + ' $("#container").mouseleave(function () { parent.OnAds_739f809d2a2cc1f025f039b0ce2d29d5_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_739f809d2a2cc1f025f039b0ce2d29d5_expanded.contentWindow.contents = OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded.src = 'javascript:window["contents"]'; } document.getElementById("OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded").style.display = 'block'; document.getElementById("OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapsed").contentWindow.API.registerEvent(2); } function OnAds_739f809d2a2cc1f025f039b0ce2d29d5_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapse () { document.getElementById("OnAds_739f809d2a2cc1f025f039b0ce2d29d5_expanded").style.display = 'none'; document.getElementById("OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapsed").contentWindow.API.registerEvent(3); } document.write("
Loading...
"); function OnAds_739f809d2a2cc1f025f039b0ce2d29d5_init () { document.getElementById('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_banner').innerHTML = ''; // create a div container to hold the 2 iframes var OnAds_739f809d2a2cc1f025f039b0ce2d29d5_container = document.createElement('div'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5_container.setAttribute('style', 'position: relative; width: 300px; height: 200px;'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5_container.id = "OnAds_739f809d2a2cc1f025f039b0ce2d29d5_container"; document.getElementById('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_banner').appendChild(OnAds_739f809d2a2cc1f025f039b0ce2d29d5_container); var OnAds_739f809d2a2cc1f025f039b0ce2d29d5 = document.createElement('iframe'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5.width = '300'; OnAds_739f809d2a2cc1f025f039b0ce2d29d5.height = '200'; OnAds_739f809d2a2cc1f025f039b0ce2d29d5.setAttribute('frameborder', '0'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5.setAttribute('scrolling', 'no'); OnAds_739f809d2a2cc1f025f039b0ce2d29d5.src = 'about:blank'; OnAds_739f809d2a2cc1f025f039b0ce2d29d5.id = "OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapsed"; document.getElementById(OnAds_739f809d2a2cc1f025f039b0ce2d29d5_container.id).appendChild(OnAds_739f809d2a2cc1f025f039b0ce2d29d5); OnAds_739f809d2a2cc1f025f039b0ce2d29d5.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'9f0918e7a710d76f0de45d08cdf4285c\'); API.trackElement(\'container\'); parent.OnAds_739f809d2a2cc1f025f039b0ce2d29d5_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_739f809d2a2cc1f025f039b0ce2d29d5_expand();", 1000);' + "\n" + ' }' + "\n" + '}' + "\n" + '' + "\n" + 'function clearAutoExpand ()' + "\n" + '{' + "\n" + ' clearTimeout(timerAutoExpand); ' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' ' + "\n"; if (location.protocol === 'https:') { OnAds_739f809d2a2cc1f025f039b0ce2d29d5.contentWindow.contents = OnAds_739f809d2a2cc1f025f039b0ce2d29d5.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_739f809d2a2cc1f025f039b0ce2d29d5.src = 'javascript:window["contents"]'; } function OnAds_739f809d2a2cc1f025f039b0ce2d29d5_isInScreen () { if (OnAds_739f809d2a2cc1f025f039b0ce2d29d5_isElementInViewport('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapsed')) { // register inscreen view document.getElementById('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapsed').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_739f809d2a2cc1f025f039b0ce2d29d5_isInScreen();", 500); } } function OnAds_739f809d2a2cc1f025f039b0ce2d29d5_isInViewport () { if (OnAds_739f809d2a2cc1f025f039b0ce2d29d5_isElementInViewport('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapsed')) { document.getElementById('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapsed').contentWindow.inViewport(); } else { setTimeout("OnAds_739f809d2a2cc1f025f039b0ce2d29d5_isInViewport()", 500); } } var OnAds_739f809d2a2cc1f025f039b0ce2d29d5readyStateCheckInterval; function OnAds_739f809d2a2cc1f025f039b0ce2d29d5politeListen () { OnAds_739f809d2a2cc1f025f039b0ce2d29d5readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_739f809d2a2cc1f025f039b0ce2d29d5readyStateCheckInterval); document.getElementById('OnAds_739f809d2a2cc1f025f039b0ce2d29d5_collapsed').contentWindow.politeInit(); } }, 10); } function OnAds_739f809d2a2cc1f025f039b0ce2d29d5_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_739f809d2a2cc1f025f039b0ce2d29d5_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_739f809d2a2cc1f025f039b0ce2d29d5_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_739f809d2a2cc1f025f039b0ce2d29d5_init();", 500);