var OnAds_733a38c44caad7756bd5b42444ed9c58_mraid = false; document.write("
Loading...
"); var OnAds_733a38c44caad7756bd5b42444ed9c58readyStateCheckInterval; function OnAds_733a38c44caad7756bd5b42444ed9c58politeListen () { OnAds_733a38c44caad7756bd5b42444ed9c58readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_733a38c44caad7756bd5b42444ed9c58readyStateCheckInterval); document.getElementById('OnAds_733a38c44caad7756bd5b42444ed9c58').contentWindow.politeInit(); } }, 10); } var OnAds_733a38c44caad7756bd5b42444ed9c58AutoReadyStateCheckInterval; function OnAds_733a38c44caad7756bd5b42444ed9c58_autoPolite () { document.getElementById('OnAds_733a38c44caad7756bd5b42444ed9c58_banner').innerHTML = '
'; OnAds_733a38c44caad7756bd5b42444ed9c58AutoReadyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_733a38c44caad7756bd5b42444ed9c58AutoReadyStateCheckInterval); OnAds_733a38c44caad7756bd5b42444ed9c58_init(); } }, 10); } function OnAds_733a38c44caad7756bd5b42444ed9c58_init () { document.getElementById('OnAds_733a38c44caad7756bd5b42444ed9c58_banner').innerHTML = ''; var OnAds_733a38c44caad7756bd5b42444ed9c58 = document.createElement('iframe'); OnAds_733a38c44caad7756bd5b42444ed9c58.width = '320'; OnAds_733a38c44caad7756bd5b42444ed9c58.height = '160'; OnAds_733a38c44caad7756bd5b42444ed9c58.setAttribute('frameborder', '0'); OnAds_733a38c44caad7756bd5b42444ed9c58.setAttribute('border', '0'); OnAds_733a38c44caad7756bd5b42444ed9c58.setAttribute('scrolling', 'no'); OnAds_733a38c44caad7756bd5b42444ed9c58.setAttribute('style', 'width: 320px; height: 160px; overflow: hidden; border: none; outline: none;'); OnAds_733a38c44caad7756bd5b42444ed9c58.src = 'about:blank'; OnAds_733a38c44caad7756bd5b42444ed9c58.id = "OnAds_733a38c44caad7756bd5b42444ed9c58"; document.getElementById('OnAds_733a38c44caad7756bd5b42444ed9c58_banner').appendChild(OnAds_733a38c44caad7756bd5b42444ed9c58); OnAds_733a38c44caad7756bd5b42444ed9c58.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'REPLACEME\'); API.trackElement(\'container\'); parent.OnAds_733a38c44caad7756bd5b42444ed9c58_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" + '' + "\n" + '' + "\n" + '' + "\n" + '
' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + '' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + '' + "\n" + '
' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + 'var landingUrl = \'http://dinbilpartner.dk\';' + "\n" + '' + "\n" + '// Example TweenLite code, delete this block if you wont be using Tweens' + "\n" + 'var counter = 0;' + "\n" + 'var tl = new TimelineLite({onComplete:restartTimeline});' + "\n" + 'tl.pause();' + "\n" + '' + "\n" + 'tl.to(BAGGRUND, 6, {scale:1.1, ease:"Linear.easeNone", delay: 0});' + "\n" + 'tl.to(BAGGRUND, 6, {scale:1, ease:"Linear.easeNone", delay: 0});' + "\n" + '' + "\n" + 'function restartTimeline () {' + "\n" + ' counter++' + "\n" + ' if (counter > 3)' + "\n" + ' {' + "\n" + ' // final tweens here' + "\n" + ' //TweenLite.to(element, 0.5, {top: 80, ease:"Expo.easeOut", delay: 0});' + "\n" + ' return false;' + "\n" + ' }' + "\n" + ' else' + "\n" + ' {' + "\n" + ' tl.restart(); ' + "\n" + ' }' + "\n" + '}' + "\n" + '' + "\n" + 'var counter2 = 0;' + "\n" + 'var tl2 = new TimelineLite({onComplete:restartTimeline2});' + "\n" + 'tl2.pause();' + "\n" + '' + "\n" + 'tl2.to(T1, 0, {alpha:0, ease:"Linear.easeNone", delay: 0});' + "\n" + 'tl2.to(T2, 0, {alpha:0, ease:"Linear.easeNone", delay: 0});' + "\n" + 'tl2.to(T3, 0, {alpha:0, ease:"Linear.easeNone", delay: 0});' + "\n" + '' + "\n" + 'tl2.to(T1, 0.5, {alpha:1, ease:"Expo.easeOut", delay: 0});' + "\n" + 'tl2.to(T1, 0.5, {alpha:0, ease:"Expo.easeOut", delay: 3});' + "\n" + '' + "\n" + 'tl2.to(T2, 0.5, {alpha:1, ease:"Expo.easeOut", delay: -0.2});' + "\n" + 'tl2.to(T2, 0.5, {alpha:0, ease:"Expo.easeOut", delay: 3});' + "\n" + '' + "\n" + 'tl2.to(T3, 0.5, {alpha:1, ease:"Expo.easeOut", delay: -0.2});' + "\n" + 'tl2.to(T3, 0.5, {alpha:0, ease:"Expo.easeOut", delay: 3});' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + 'function restartTimeline2 () {' + "\n" + ' counter2++' + "\n" + ' if (counter2 > 2)' + "\n" + ' {' + "\n" + ' // final tweens here' + "\n" + ' TweenLite.to(T1, 0.5, {alpha:1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' return false;' + "\n" + ' }' + "\n" + ' else' + "\n" + ' {' + "\n" + ' tl2.restart(); ' + "\n" + ' }' + "\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" + ' ' + "\n" + ' document.getElementById("container").onmouseover=mouseOver;' + "\n" + ' document.getElementById("container").onmouseout=mouseOut;' + "\n" + ' ' + "\n" + ' parent.OnAds_733a38c44caad7756bd5b42444ed9c58_isInViewport(); // Listen for the banner to enter the viewport / getting visible on the webpage.' + "\n" + '}' + "\n" + '' + "\n" + 'function inViewport ()' + "\n" + '{' + "\n" + ' // put your code here that should first be executed when the banner is in the viewport / the visible part of the webpage' + "\n" + ' // e.g. tweens start' + "\n" + ' tl.restart();' + "\n" + ' tl2.restart();' + "\n" + '}' + "\n" + '' + "\n" + 'function redir ()' + "\n" + '{' + "\n" + ' window.open(clickTAG + landingUrl); ' + "\n" + ' API.registerEvent(API.EVENT_CLICK, clickTAG + landingUrl); ' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + ' ' + "\n"; OnAds_733a38c44caad7756bd5b42444ed9c58.src = 'javascript:window["contents"]'; } function OnAds_733a38c44caad7756bd5b42444ed9c58_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_733a38c44caad7756bd5b42444ed9c58_isInScreen () { if (OnAds_733a38c44caad7756bd5b42444ed9c58_isElementInViewport('OnAds_733a38c44caad7756bd5b42444ed9c58')) { // register inscreen view document.getElementById('OnAds_733a38c44caad7756bd5b42444ed9c58').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_733a38c44caad7756bd5b42444ed9c58_isInScreen();", 500); } } function OnAds_733a38c44caad7756bd5b42444ed9c58_isInViewport () { if (OnAds_733a38c44caad7756bd5b42444ed9c58_isElementInViewport('OnAds_733a38c44caad7756bd5b42444ed9c58')) { document.getElementById('OnAds_733a38c44caad7756bd5b42444ed9c58').contentWindow.inViewport(); } else { setTimeout("OnAds_733a38c44caad7756bd5b42444ed9c58_isInViewport()", 500); } } function OnAds_733a38c44caad7756bd5b42444ed9c58_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) ); } if (OnAds_733a38c44caad7756bd5b42444ed9c58_mraid) { mraid.addEventListener('stateChange', function(state) { if (state == 'default') { OnAds_733a38c44caad7756bd5b42444ed9c58_collapse (); } }); if (mraid.getState() === 'loading') { mraid.addEventListener('ready', OnAds_733a38c44caad7756bd5b42444ed9c58_init); } else { OnAds_733a38c44caad7756bd5b42444ed9c58_init(); } } else { var OnAds_733a38c44caad7756bd5b42444ed9c58_AutoPolite = 0; if (OnAds_733a38c44caad7756bd5b42444ed9c58_AutoPolite == 1) { OnAds_733a38c44caad7756bd5b42444ed9c58_autoPolite(); } else { setTimeout("OnAds_733a38c44caad7756bd5b42444ed9c58_init();", 500); } } function OnAds_733a38c44caad7756bd5b42444ed9c58_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_733a38c44caad7756bd5b42444ed9c58_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; }