function OnAds_1205f306c6f0cb9ac73970d536ea93e0_expand_resize (width, height) { document.getElementById('OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded').style.width = width + 'px'; document.getElementById('OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded').style.height = height + 'px'; } function OnAds_1205f306c6f0cb9ac73970d536ea93e0_expand () { if (document.getElementById('OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded') == null) { var OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded = document.createElement('iframe'); OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded.setAttribute('frameborder', '0'); OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded.setAttribute('scrolling', 'no'); OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded.width = '940'; OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded.height = '475'; OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded.setAttribute('style', 'position: absolute; top: 0px; right: 0px; z-index: 9999;'); OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded.id = "OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded"; document.getElementById(OnAds_1205f306c6f0cb9ac73970d536ea93e0_container.id).appendChild(OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded); OnAds_1205f306c6f0cb9ac73970d536ea93e0_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_1205f306c6f0cb9ac73970d536ea93e0_expand_resize("940","242");' + "\n" + ' }' + "\n" + ' ' + "\n" + ' if (!mobile)' + "\n" + ' {' + "\n" + ' $("#container").mouseleave(function () { parent.OnAds_1205f306c6f0cb9ac73970d536ea93e0_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_1205f306c6f0cb9ac73970d536ea93e0_expanded.contentWindow.contents = OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded.src = 'javascript:window["contents"]'; } document.getElementById("OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded").style.display = 'block'; document.getElementById("OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapsed").contentWindow.API.registerEvent(2); } function OnAds_1205f306c6f0cb9ac73970d536ea93e0_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapse () { document.getElementById("OnAds_1205f306c6f0cb9ac73970d536ea93e0_expanded").style.display = 'none'; document.getElementById("OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapsed").contentWindow.API.registerEvent(3); } document.write("
Loading...
"); function OnAds_1205f306c6f0cb9ac73970d536ea93e0_init () { document.getElementById('OnAds_1205f306c6f0cb9ac73970d536ea93e0_banner').innerHTML = ''; // create a div container to hold the 2 iframes var OnAds_1205f306c6f0cb9ac73970d536ea93e0_container = document.createElement('div'); OnAds_1205f306c6f0cb9ac73970d536ea93e0_container.setAttribute('style', 'position: relative; width: 300px; height: 200px;'); OnAds_1205f306c6f0cb9ac73970d536ea93e0_container.id = "OnAds_1205f306c6f0cb9ac73970d536ea93e0_container"; document.getElementById('OnAds_1205f306c6f0cb9ac73970d536ea93e0_banner').appendChild(OnAds_1205f306c6f0cb9ac73970d536ea93e0_container); var OnAds_1205f306c6f0cb9ac73970d536ea93e0 = document.createElement('iframe'); OnAds_1205f306c6f0cb9ac73970d536ea93e0.width = '300'; OnAds_1205f306c6f0cb9ac73970d536ea93e0.height = '200'; OnAds_1205f306c6f0cb9ac73970d536ea93e0.setAttribute('frameborder', '0'); OnAds_1205f306c6f0cb9ac73970d536ea93e0.setAttribute('scrolling', 'no'); OnAds_1205f306c6f0cb9ac73970d536ea93e0.src = 'about:blank'; OnAds_1205f306c6f0cb9ac73970d536ea93e0.id = "OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapsed"; document.getElementById(OnAds_1205f306c6f0cb9ac73970d536ea93e0_container.id).appendChild(OnAds_1205f306c6f0cb9ac73970d536ea93e0); OnAds_1205f306c6f0cb9ac73970d536ea93e0.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'9f0918e7a710d76f0de45d08cdf4285c\'); API.trackElement(\'container\'); parent.OnAds_1205f306c6f0cb9ac73970d536ea93e0_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_1205f306c6f0cb9ac73970d536ea93e0_expand();", 1000);' + "\n" + ' }' + "\n" + '}' + "\n" + '' + "\n" + 'function clearAutoExpand ()' + "\n" + '{' + "\n" + ' clearTimeout(timerAutoExpand); ' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' ' + "\n"; if (location.protocol === 'https:') { OnAds_1205f306c6f0cb9ac73970d536ea93e0.contentWindow.contents = OnAds_1205f306c6f0cb9ac73970d536ea93e0.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_1205f306c6f0cb9ac73970d536ea93e0.src = 'javascript:window["contents"]'; } function OnAds_1205f306c6f0cb9ac73970d536ea93e0_isInScreen () { if (OnAds_1205f306c6f0cb9ac73970d536ea93e0_isElementInViewport('OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapsed')) { // register inscreen view document.getElementById('OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapsed').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_1205f306c6f0cb9ac73970d536ea93e0_isInScreen();", 500); } } function OnAds_1205f306c6f0cb9ac73970d536ea93e0_isInViewport () { if (OnAds_1205f306c6f0cb9ac73970d536ea93e0_isElementInViewport('OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapsed')) { document.getElementById('OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapsed').contentWindow.inViewport(); } else { setTimeout("OnAds_1205f306c6f0cb9ac73970d536ea93e0_isInViewport()", 500); } } var OnAds_1205f306c6f0cb9ac73970d536ea93e0readyStateCheckInterval; function OnAds_1205f306c6f0cb9ac73970d536ea93e0politeListen () { OnAds_1205f306c6f0cb9ac73970d536ea93e0readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_1205f306c6f0cb9ac73970d536ea93e0readyStateCheckInterval); document.getElementById('OnAds_1205f306c6f0cb9ac73970d536ea93e0_collapsed').contentWindow.politeInit(); } }, 10); } function OnAds_1205f306c6f0cb9ac73970d536ea93e0_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_1205f306c6f0cb9ac73970d536ea93e0_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_1205f306c6f0cb9ac73970d536ea93e0_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_1205f306c6f0cb9ac73970d536ea93e0_init();", 500);