function OnAds_861a85e3cb352965bbce55af88fd58fe_expand_resize (width, height) { document.getElementById('OnAds_861a85e3cb352965bbce55af88fd58fe_expanded').style.width = width + 'px'; document.getElementById('OnAds_861a85e3cb352965bbce55af88fd58fe_expanded').style.height = height + 'px'; } function OnAds_861a85e3cb352965bbce55af88fd58fe_expand () { if (document.getElementById('OnAds_861a85e3cb352965bbce55af88fd58fe_expanded') == null) { var OnAds_861a85e3cb352965bbce55af88fd58fe_expanded = document.createElement('iframe'); OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.setAttribute('frameborder', '0'); OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.setAttribute('scrolling', 'no'); OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.width = '940'; OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.height = '950'; OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.setAttribute('style', 'position: absolute; top: 0px; right: 0px; z-index: 9999;'); OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.id = "OnAds_861a85e3cb352965bbce55af88fd58fe_expanded"; document.getElementById(OnAds_861a85e3cb352965bbce55af88fd58fe_container.id).appendChild(OnAds_861a85e3cb352965bbce55af88fd58fe_expanded); OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.contentWindow.contents = ' ' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'6c666e8092e2af73bf7d3ab8fa195d11\'); 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" + '' + "\n" + ' /*' + "\n" + ' var ancestor = null;' + "\n" + ' if (window.top) {' + "\n" + ' ancestor = window.top;' + "\n" + ' } else {' + "\n" + ' var ancestor = window;' + "\n" + ' while (ancestor.parent) {' + "\n" + ' ancestor = ancestor.parent;' + "\n" + ' }' + "\n" + ' }' + "\n" + '' + "\n" + ' ancestor.document.addEventListener("DOMContentLoaded", function(event) {' + "\n" + ' console.log("DOM fully loaded and parsed - DOMContentLoaded");' + "\n" + ' });' + "\n" + '' + "\n" + ' console.log(ancestor.document.readyState);' + "\n" + ' */' + "\n" + '' + "\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_861a85e3cb352965bbce55af88fd58fe_expand_resize("940","242");' + "\n" + ' }' + "\n" + ' ' + "\n" + ' if (!mobile)' + "\n" + ' {' + "\n" + ' $("#container").mouseleave(function () { parent.OnAds_861a85e3cb352965bbce55af88fd58fe_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_861a85e3cb352965bbce55af88fd58fe_expanded.contentWindow.contents = OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_861a85e3cb352965bbce55af88fd58fe_expanded.src = 'javascript:window["contents"]'; } document.getElementById("OnAds_861a85e3cb352965bbce55af88fd58fe_expanded").style.display = 'block'; document.getElementById("OnAds_861a85e3cb352965bbce55af88fd58fe_collapsed").contentWindow.API.registerEvent(2); } function OnAds_861a85e3cb352965bbce55af88fd58fe_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_861a85e3cb352965bbce55af88fd58fe_collapse () { document.getElementById("OnAds_861a85e3cb352965bbce55af88fd58fe_expanded").style.display = 'none'; document.getElementById("OnAds_861a85e3cb352965bbce55af88fd58fe_collapsed").contentWindow.API.registerEvent(3); } document.write("
Loading...
"); function OnAds_861a85e3cb352965bbce55af88fd58fe_init () { document.getElementById('OnAds_861a85e3cb352965bbce55af88fd58fe_banner').innerHTML = ''; // create a div container to hold the 2 iframes var OnAds_861a85e3cb352965bbce55af88fd58fe_container = document.createElement('div'); OnAds_861a85e3cb352965bbce55af88fd58fe_container.setAttribute('style', 'position: relative; width: 300px; height: 200px;'); OnAds_861a85e3cb352965bbce55af88fd58fe_container.id = "OnAds_861a85e3cb352965bbce55af88fd58fe_container"; document.getElementById('OnAds_861a85e3cb352965bbce55af88fd58fe_banner').appendChild(OnAds_861a85e3cb352965bbce55af88fd58fe_container); var OnAds_861a85e3cb352965bbce55af88fd58fe = document.createElement('iframe'); OnAds_861a85e3cb352965bbce55af88fd58fe.width = '300'; OnAds_861a85e3cb352965bbce55af88fd58fe.height = '200'; OnAds_861a85e3cb352965bbce55af88fd58fe.setAttribute('frameborder', '0'); OnAds_861a85e3cb352965bbce55af88fd58fe.setAttribute('scrolling', 'no'); OnAds_861a85e3cb352965bbce55af88fd58fe.src = 'about:blank'; OnAds_861a85e3cb352965bbce55af88fd58fe.id = "OnAds_861a85e3cb352965bbce55af88fd58fe_collapsed"; document.getElementById(OnAds_861a85e3cb352965bbce55af88fd58fe_container.id).appendChild(OnAds_861a85e3cb352965bbce55af88fd58fe); OnAds_861a85e3cb352965bbce55af88fd58fe.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'6c666e8092e2af73bf7d3ab8fa195d11\'); API.trackElement(\'container\'); parent.OnAds_861a85e3cb352965bbce55af88fd58fe_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" + '' + "\n" + ' /*' + "\n" + ' var ancestor = window.top;' + "\n" + '' + "\n" + ' ancestor.document.onreadystatechange = function (event) {' + "\n" + '' + "\n" + ' console.log(\'onreadystatechange: \' + ancestor.document.readyState);' + "\n" + '' + "\n" + ' }' + "\n" + ' */' + "\n" + '' + "\n" + ' /*' + "\n" + ' var ancestor = null;' + "\n" + ' if (window.top) {' + "\n" + ' ancestor = window.top;' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' ancestor.document.addEventListener("DOMContentLoaded", function(event) {' + "\n" + ' console.log("DOM fully loaded and parsed - DOMContentLoaded");' + "\n" + ' });' + "\n" + '' + "\n" + ' console.log(ancestor.document.readyState);' + "\n" + ' console.log(ancestor.document.title);' + "\n" + '' + "\n" + '' + "\n" + ' if( ancestor.document.readyState === \'complete\' ) {' + "\n" + ' console.log( \'document is already ready, just execute code here\' );' + "\n" + ' } else {' + "\n" + ' ancestor.document.addEventListener(\'DOMContentLoaded\', function () {' + "\n" + ' console.log( \'document was not ready, place code here\' );' + "\n" + ' });' + "\n" + ' }' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' } else {' + "\n" + ' var ancestor = window;' + "\n" + ' while (ancestor.parent) {' + "\n" + ' ancestor = ancestor.parent;' + "\n" + ' }' + "\n" + '' + "\n" + '' + "\n" + ' ancestor.document.addEventListener("DOMContentLoaded", function(event) {' + "\n" + ' console.log("DOM fully loaded and parsed - DOMContentLoaded");' + "\n" + ' });' + "\n" + '' + "\n" + ' console.log(ancestor.document.readyState);' + "\n" + '' + "\n" + '' + "\n" + ' if( ancestor.document.readyState === \'complete\' ) {' + "\n" + ' console.log( \'document is already ready, just execute code here\' );' + "\n" + ' } else {' + "\n" + ' ancestor.document.addEventListener(\'DOMContentLoaded\', function () {' + "\n" + ' console.log( \'document was not ready, place code here\' );' + "\n" + ' });' + "\n" + ' }' + "\n" + '' + "\n" + '' + "\n" + ' }' + "\n" + ' */' + "\n" + ' ' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\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_861a85e3cb352965bbce55af88fd58fe_expand();", 1000);' + "\n" + ' }' + "\n" + '}' + "\n" + '' + "\n" + 'function clearAutoExpand ()' + "\n" + '{' + "\n" + ' clearTimeout(timerAutoExpand); ' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' ' + "\n"; if (location.protocol === 'https:') { OnAds_861a85e3cb352965bbce55af88fd58fe.contentWindow.contents = OnAds_861a85e3cb352965bbce55af88fd58fe.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_861a85e3cb352965bbce55af88fd58fe.src = 'javascript:window["contents"]'; } function OnAds_861a85e3cb352965bbce55af88fd58fe_isInScreen () { if (OnAds_861a85e3cb352965bbce55af88fd58fe_isElementInViewport('OnAds_861a85e3cb352965bbce55af88fd58fe_collapsed')) { // register inscreen view document.getElementById('OnAds_861a85e3cb352965bbce55af88fd58fe_collapsed').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_861a85e3cb352965bbce55af88fd58fe_isInScreen();", 500); } } function OnAds_861a85e3cb352965bbce55af88fd58fe_isInViewport () { if (OnAds_861a85e3cb352965bbce55af88fd58fe_isElementInViewport('OnAds_861a85e3cb352965bbce55af88fd58fe_collapsed')) { document.getElementById('OnAds_861a85e3cb352965bbce55af88fd58fe_collapsed').contentWindow.inViewport(); } else { setTimeout("OnAds_861a85e3cb352965bbce55af88fd58fe_isInViewport()", 500); } } var OnAds_861a85e3cb352965bbce55af88fd58fereadyStateCheckInterval; function OnAds_861a85e3cb352965bbce55af88fd58fepoliteListen () { OnAds_861a85e3cb352965bbce55af88fd58fereadyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_861a85e3cb352965bbce55af88fd58fereadyStateCheckInterval); document.getElementById('OnAds_861a85e3cb352965bbce55af88fd58fe_collapsed').contentWindow.politeInit(); } }, 10); } function OnAds_861a85e3cb352965bbce55af88fd58fe_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_861a85e3cb352965bbce55af88fd58fe_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_861a85e3cb352965bbce55af88fd58fe_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_861a85e3cb352965bbce55af88fd58fe_init();", 500);