var OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_mraid = false; document.write("
Loading...
"); function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expand (tmpVar) { if (document.body.scrollTop == 0) { document.body.scrollTop = 0; } if (document.getElementById('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded') == null) { var OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_div = document.createElement('div'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_div.setAttribute('style', 'position: fixed; width: 100%; height: 100%; top: 0px; left: 0px; z-index: 9999999; display: none; background: URL(http://pool.static.onads.dk/static/common/1x1_overlay.png);'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_div.id = "OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_div"; document.getElementById('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_banner').appendChild(OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_div); var OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded = document.createElement('iframe'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.setAttribute('frameborder', '0'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.setAttribute('scrolling', 'no'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.width = '320'; OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.height = '420'; OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.setAttribute('style', 'position: fixed; top: 50%; left: 50%; margin-left: -160px; margin-top: -210px; z-index: 999999999; width: 320px; height: 420px;'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.id = "OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded"; document.getElementById(OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_div.id).appendChild(OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded); var tmpContent = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'REPLACEME\'); 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" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '
' + "\n" + ' ' + "\n" + '' + "\n" + ' ' + "\n" + ' ' + "\n" + '
' + "\n" + ' ' + "\n" + ' ' + "\n" + '' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + '' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + '
' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + '
' + "\n" + ' ' + "\n" + '
' + "\n" + ' ' + "\n" + '' + "\n" + 'var state = 0;' + "\n" + '' + "\n" + 'var landingUrl = \'http://track.adform.net/C/?bn=2632176\';' + "\n" + 'var counter1 = 0;' + "\n" + '' + "\n" + 'var tl = new TimelineLite({onComplete:restartLoop});' + "\n" + '' + "\n" + 'tl.to(WEARE, 0, {alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" + 'tl.to(VIDEO, 0, {alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" + 'tl.to(BTN, 0, {alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" + 'tl.to(DATO, 0, {alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" + 'tl.to(XBOX, 0, {alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" + 'tl.to(BUND, 0, {y:33, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" + '' + "\n" + 'tl.to(MESSI, 0, {x:-200, alpha:0, ease:"Expo.easeOut", delay: 1});' + "\n" + '' + "\n" + 'tl.to(MESSI, 1, {x:0, alpha:1, ease:"Expo.easeOut", delay: 0});' + "\n" + '' + "\n" + 'tl.to(WEARE, 1, {alpha:1, ease:"Expo.easeOut", delay: 0});' + "\n" + 'tl.to(BTN, 1, {alpha:1, ease:"Expo.easeOut", delay: -1});' + "\n" + 'tl.to(DATO, 1, {alpha:1, ease:"Expo.easeOut", delay: -1});' + "\n" + 'tl.to(XBOX, 1, {alpha:1, ease:"Expo.easeOut", delay: -1});' + "\n" + 'tl.to(VIDEO, 1, {alpha:1, ease:"Expo.easeOut", delay: -1});' + "\n" + 'tl.to(BUND, 1, {y:0, alpha:1, ease:"Expo.easeOut", delay: -1});' + "\n" + '' + "\n" + 'function remind ()' + "\n" + '{' + "\n" + ' var url = API.trackerUrl + "?bannerId=" + API.bannerId + "&eventId=" + ' + "\n" + ' API.EVENT_CALENDAR + "&eventTime=" + (new Date().getTime() - API.initTime) + ' + "\n" + ' "&url=" + clickTAG + "http://pool.static.onads.dk/static/7485/assets/reminder.ics" +' + "\n" + ' "&redir=" + clickTAG + "http://pool.static.onads.dk/static/7485/assets/reminder.ics";' + "\n" + ' location.href = url;' + "\n" + ' ' + "\n" + '}' + "\n" + '' + "\n" + 'function showGallery ()' + "\n" + '{' + "\n" + ' state = 1;' + "\n" + ' $("#cycle").fadeIn();' + "\n" + ' $("#arrowLeft").fadeIn();' + "\n" + ' $("#arrowRight").fadeIn();' + "\n" + '}' + "\n" + '' + "\n" + 'function closeBtn ()' + "\n" + '{' + "\n" + ' ' + "\n" + ' if (state == 0)' + "\n" + ' {' + "\n" + ' parent.OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapse();' + "\n" + ' }' + "\n" + ' else' + "\n" + ' {' + "\n" + ' state = 0;' + "\n" + ' $("#cycle").fadeOut();' + "\n" + ' $("#arrowLeft").fadeOut();' + "\n" + ' $("#arrowRight").fadeOut(); ' + "\n" + ' }' + "\n" + '}' + "\n" + 'function restartLoop () {' + "\n" + ' counter1++' + "\n" + ' if (counter1 > 0)' + "\n" + ' {' + "\n" + ' // final tweens here' + "\n" + ' //TweenLite.to(element, 0.5, {top: 80, ease:"Expo.easeOut", delay: 0});' + "\n" + ' ' + "\n" + '' + "\n" + ' ' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 0.5});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 0.65});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 0.80});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 0.95});' + "\n" + ' ' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 2.5});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 2.65});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 2.80});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 2.95});' + "\n" + ' ' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 4.5});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 4.65});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 4.80});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 4.95});' + "\n" + ' ' + "\n" + ' ' + "\n" + ' return false;' + "\n" + ' }' + "\n" + ' else' + "\n" + ' {' + "\n" + ' tl.restart(); ' + "\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" + ' $("#cycle").cycle({fx: \'scrollHorz\', speed: 300, next: \'#next\', prev: \'#prev\', timeout: 0});' + "\n" + '' + "\n" + ' $("#cycle").touchwipe({' + "\n" + ' min_move_x: 50,' + "\n" + ' wipeLeft: function() {' + "\n" + ' $("#cycle").cycle(\'next\');' + "\n" + ' API.registerEvent(API.EVENT_GALLERY_SWIPE_LEFT);' + "\n" + ' },' + "\n" + ' wipeRight: function() {' + "\n" + ' $("#cycle").cycle(\'prev\');' + "\n" + ' API.registerEvent(API.EVENT_GALLERY_SWIPE_RIGHT);' + "\n" + ' }' + "\n" + ' }); ' + "\n" + '}' + "\n" + '' + "\n" + 'var target_date = new Date("Jul 24, 2015").getTime();' + "\n" + 'var days, hours, minutes, seconds;' + "\n" + 'var countdown = document.getElementById("COUNTDOWN");' + "\n" + '' + "\n" + 'updateCounter();' + "\n" + 'var counter = setInterval(updateCounter, 1000);' + "\n" + ' ' + "\n" + 'function updateCounter ()' + "\n" + '{' + "\n" + ' ' + "\n" + ' var current_date = new Date().getTime();' + "\n" + ' var seconds_left = (target_date - current_date) / 1000;' + "\n" + ' ' + "\n" + ' days = parseInt(seconds_left / 86400);' + "\n" + ' seconds_left = seconds_left % 86400;' + "\n" + ' hours = parseInt(seconds_left / 3600);' + "\n" + ' seconds_left = seconds_left % 3600;' + "\n" + ' minutes = parseInt(seconds_left / 60);' + "\n" + ' seconds = parseInt(seconds_left % 60);' + "\n" + ' ' + "\n" + ' if (days == 0 && hours == 0 && minutes == 0 && seconds == 0)' + "\n" + ' {' + "\n" + ' console.log(\'Ignition\');' + "\n" + ' ' + "\n" + ' window.clearInterval(counter);' + "\n" + ' }' + "\n" + ' ' + "\n" + ' var pad = "00"' + "\n" + ' ' + "\n" + ' days = days.toString();' + "\n" + ' hours = hours.toString();' + "\n" + ' minutes = minutes.toString();' + "\n" + ' seconds = seconds.toString();' + "\n" + ' ' + "\n" + ' if (days.length == 1) { days = "0" + days; }' + "\n" + ' if (hours.length == 1) { hours = "0" + hours; }' + "\n" + ' if (minutes.length == 1) { minutes = "0" + minutes; }' + "\n" + ' if (seconds.length == 1) { seconds = "0" + seconds; }' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' // format countdown string + set tag value' + "\n" + ' countdown.innerHTML = days + ":" + hours + ":" + minutes + ":" + seconds; ' + "\n" + '' + "\n" + '}' + "\n" + '' + "\n" + 'function redir ()' + "\n" + '{' + "\n" + ' API.registerEvent(API.EVENT_CLICK, clickTAG + landingUrl);' + "\n" + ' window.open(clickTAG + landingUrl);' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' ' + "\n";; if (tmpVar != undefined) { tmpContent = tmpContent.replace(/EXPAND_VALUE/g,tmpVar); } OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.contentWindow.contents = tmpContent; if (location.protocol === 'https:') { OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.contentWindow.contents = OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_expanded.src = 'javascript:window["contents"]'; } document.getElementById("OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed").style.display = 'none'; document.getElementById("OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_div").style.display = 'block'; if (OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_mraid) { mraid.setExpandProperties({"width" : "320" , "height" : "420", "useCustomClose" : true}); mraid.expand(); } document.getElementById("OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed").contentWindow.API.registerEvent(2); } function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_open (url) { if (OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_mraid) { mraid.close(url); } else { window.open(url); } } function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapse () { document.getElementById('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_div').style.display = 'none'; document.getElementById("OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed").style.display = 'block'; document.getElementById("OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed").contentWindow.API.registerEvent(3); if (OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_mraid) { mraid.close(); } } function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_init () { document.getElementById('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_banner').innerHTML = ''; var OnAds_ba551ee84b18ed2a129f6ef58b7a55ee = document.createElement('iframe'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.width = '320'; OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.height = '160'; OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.setAttribute('frameborder', '0'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.setAttribute('scrolling', 'no'); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.src = 'about:blank'; OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.id = "OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed"; document.getElementById('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_banner').appendChild(OnAds_ba551ee84b18ed2a129f6ef58b7a55ee); OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'REPLACEME\'); API.trackElement(\'container\'); parent.OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_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" + ' ' + "\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 landingUrl = \'http://www.easports.com/fifa/news-updates-gameplay/article/fifa-14-at-gamescom\';' + "\n" + 'var counter1 = 0;' + "\n" + '// Example TweenLite code, delete this block if you wont be using Tweens ' + "\n" + 'var tl = new TimelineLite({onComplete:restartLoop});' + "\n" + '' + "\n" + '' + "\n" + 'tl.to(XBOX, 0, {x:-100, ease:"Linear.easeNone", delay: 0});' + "\n" + '' + "\n" + 'tl.to(BLACKBOX, 0.5, {alpha:0.6, ease:"Linear.easeNone", delay: 0});' + "\n" + '' + "\n" + 'tl.to(COUNTDOWN, 0.5, {alpha:1, ease:"Linear.easeNone", delay: 0});' + "\n" + 'tl.to(COUNTDOWNTEXT, 0.5, {alpha:1, ease:"Linear.easeNone", delay: -0.5});' + "\n" + '' + "\n" + 'tl.to(BLACKBOX, 0.5, {alpha:0, ease:"Linear.easeNone", delay: 2});' + "\n" + 'tl.to(COUNTDOWN, 0.5, {alpha:0, ease:"Linear.easeNone", delay: -0.5});' + "\n" + 'tl.to(COUNTDOWNTEXT, 0.5, {alpha:0, ease:"Linear.easeNone", delay: -0.5});' + "\n" + '' + "\n" + 'tl.to(BAGGRUND, 2, {y:110, ease:"Linear.easeNone", delay: 0});' + "\n" + 'tl.to(MESSI, 2, {x:-20, y:110, ease:"Linear.easeNone", delay: -2});' + "\n" + '' + "\n" + 'tl.to(WEARE, 1, {alpha:1, ease:"Expo.easeOut", delay: 0});' + "\n" + 'tl.to(BTN, 1, {alpha:1, ease:"Expo.easeOut", delay: -1});' + "\n" + 'tl.to(DATO, 1, {alpha:1, ease:"Expo.easeOut", delay: -1});' + "\n" + 'tl.to(BUND, 1, {y:-33, ease:"Expo.easeOut", delay: -1});' + "\n" + '' + "\n" + 'tl.to(MESSI, 2, {x:-40, y:110, alpha:0, ease:"Expo.easeOut", delay: 2});' + "\n" + 'tl.to(XBOX, 2, {x:20, alpha:1, ease:"Expo.easeOut", delay: -2});' + "\n" + '' + "\n" + 'tl.to(WEARE, 2, {x:-20, alpha:1, ease:"Expo.easeOut", delay: -2});' + "\n" + 'tl.to(BTN, 2, {x:-20, alpha:1, ease:"Expo.easeOut", delay: -2});' + "\n" + 'tl.to(DATO, 2, {x:-20, alpha:1, ease:"Expo.easeOut", delay: -2});' + "\n" + '' + "\n" + 'tl.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 0.5});' + "\n" + 'tl.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 0});' + "\n" + 'tl.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 0});' + "\n" + 'tl.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 0});' + "\n" + '' + "\n" + 'tl.to(BLACKBOX, 1, {alpha:1, ease:"Linear.easeNone", delay: 3});' + "\n" + '' + "\n" + 'function restartLoop () {' + "\n" + ' counter1++' + "\n" + ' if (counter1 > 3)' + "\n" + ' {' + "\n" + ' // final tweens here' + "\n" + ' //TweenLite.to(element, 0.5, {top: 80, ease:"Expo.easeOut", delay: 0});' + "\n" + ' ' + "\n" + ' ' + "\n" + ' TweenLite.to(BLACKBOX, 0.5, {alpha:0, ease:"Linear.easeNone", delay: 0});' + "\n" + ' ' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 0.5});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 0.65});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 0.80});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 0.95});' + "\n" + ' ' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 2.5});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 2.65});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 2.80});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 2.95});' + "\n" + ' ' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 4.5});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 4.65});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:0.9, scaleY:0.9, ease:"Linear.easeNone", delay: 4.80});' + "\n" + ' TweenLite.to(BTN, 0.15, {scaleX:1, scaleY:1, ease:"Linear.easeNone", delay: 4.95});' + "\n" + ' ' + "\n" + ' ' + "\n" + ' return false;' + "\n" + ' }' + "\n" + ' else' + "\n" + ' {' + "\n" + ' tl.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" + ' var timestamp = new Date().getTime();' + "\n" + ' document.getElementById(\'pixel\').innerHTML = \'\';' + "\n" + ' ' + "\n" + ' ' + "\n" + '}' + "\n" + '' + "\n" + 'function redir ()' + "\n" + '{' + "\n" + ' window.open(clickTAG + landingUrl); ' + "\n" + ' API.registerEvent(API.EVENT_CLICK, clickTAG + landingUrl); ' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + 'var target_date = new Date("Jul 24, 2015").getTime();' + "\n" + 'var days, hours, minutes, seconds;' + "\n" + 'var countdown = document.getElementById("COUNTDOWN");' + "\n" + '' + "\n" + 'updateCounter();' + "\n" + 'var counter = setInterval(updateCounter, 1000);' + "\n" + ' ' + "\n" + ' ' + "\n" + 'function updateCounter ()' + "\n" + '{' + "\n" + ' ' + "\n" + ' var current_date = new Date().getTime();' + "\n" + ' var seconds_left = (target_date - current_date) / 1000;' + "\n" + ' ' + "\n" + ' days = parseInt(seconds_left / 86400);' + "\n" + ' seconds_left = seconds_left % 86400;' + "\n" + ' hours = parseInt(seconds_left / 3600);' + "\n" + ' seconds_left = seconds_left % 3600;' + "\n" + ' minutes = parseInt(seconds_left / 60);' + "\n" + ' seconds = parseInt(seconds_left % 60);' + "\n" + ' ' + "\n" + ' if (days == 0 && hours == 0 && minutes == 0 && seconds == 0)' + "\n" + ' {' + "\n" + ' console.log(\'Ignition\');' + "\n" + ' ' + "\n" + ' window.clearInterval(counter);' + "\n" + ' }' + "\n" + ' ' + "\n" + ' var pad = "00"' + "\n" + ' ' + "\n" + ' days = days.toString();' + "\n" + ' hours = hours.toString();' + "\n" + ' minutes = minutes.toString();' + "\n" + ' seconds = seconds.toString();' + "\n" + ' ' + "\n" + ' if (days.length == 1) { days = "0" + days; }' + "\n" + ' if (hours.length == 1) { hours = "0" + hours; }' + "\n" + ' if (minutes.length == 1) { minutes = "0" + minutes; }' + "\n" + ' if (seconds.length == 1) { seconds = "0" + seconds; }' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' // format countdown string + set tag value' + "\n" + ' countdown.innerHTML = days + ":" + hours + ":" + minutes + ":" + seconds; ' + "\n" + '' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + ' ' + "\n"; if (location.protocol === 'https:') { OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.contentWindow.contents = OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); } OnAds_ba551ee84b18ed2a129f6ef58b7a55ee.src = 'javascript:window["contents"]'; } function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_isInScreen () { if (OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_isElementInViewport('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed')) { // register inscreen view document.getElementById('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_isInScreen();", 500); } } function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_isInViewport () { if (OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_isElementInViewport('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed')) { document.getElementById('OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapsed').contentWindow.inViewport(); } else { setTimeout("OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_isInViewport()", 500); } } function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_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_ba551ee84b18ed2a129f6ef58b7a55ee_mraid) { mraid.addEventListener('stateChange', function(state) { if (state == 'default') { OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_collapse (); } }); if (mraid.getState() === 'loading') { mraid.addEventListener('ready', OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_init); } else { OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_init(); } } else { setTimeout("OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_init();", 500); } function OnAds_ba551ee84b18ed2a129f6ef58b7a55ee_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_ba551ee84b18ed2a129f6ef58b7a55ee_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; }