var OnAds_1737617c101d24c8376cfb1a76317447_mraid = false; document.write("
Loading...
"); var OnAds_1737617c101d24c8376cfb1a76317447readyStateCheckInterval; function OnAds_1737617c101d24c8376cfb1a76317447politeListen () { OnAds_1737617c101d24c8376cfb1a76317447readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_1737617c101d24c8376cfb1a76317447readyStateCheckInterval); document.getElementById('OnAds_1737617c101d24c8376cfb1a76317447').contentWindow.politeInit(); } }, 10); } var OnAds_1737617c101d24c8376cfb1a76317447AutoReadyStateCheckInterval; function OnAds_1737617c101d24c8376cfb1a76317447_autoPolite () { document.getElementById('OnAds_1737617c101d24c8376cfb1a76317447_banner').innerHTML = '
'; OnAds_1737617c101d24c8376cfb1a76317447AutoReadyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_1737617c101d24c8376cfb1a76317447AutoReadyStateCheckInterval); OnAds_1737617c101d24c8376cfb1a76317447_init(); } }, 10); } function OnAds_1737617c101d24c8376cfb1a76317447_init () { document.getElementById('OnAds_1737617c101d24c8376cfb1a76317447_banner').innerHTML = ''; var OnAds_1737617c101d24c8376cfb1a76317447 = document.createElement('iframe'); OnAds_1737617c101d24c8376cfb1a76317447.width = '930'; OnAds_1737617c101d24c8376cfb1a76317447.height = '600'; OnAds_1737617c101d24c8376cfb1a76317447.setAttribute('frameborder', '0'); OnAds_1737617c101d24c8376cfb1a76317447.setAttribute('border', '0'); OnAds_1737617c101d24c8376cfb1a76317447.setAttribute('scrolling', 'no'); OnAds_1737617c101d24c8376cfb1a76317447.setAttribute('style', 'width: 930px; height: 600px; overflow: hidden; border: none; outline: none;'); OnAds_1737617c101d24c8376cfb1a76317447.src = 'about:blank'; OnAds_1737617c101d24c8376cfb1a76317447.id = "OnAds_1737617c101d24c8376cfb1a76317447"; document.getElementById('OnAds_1737617c101d24c8376cfb1a76317447_banner').appendChild(OnAds_1737617c101d24c8376cfb1a76317447); OnAds_1737617c101d24c8376cfb1a76317447.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + '' + "\n" + 'document.write(\'\');' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'REPLACEME\'); API.trackElement(\'container\'); parent.OnAds_1737617c101d24c8376cfb1a76317447_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" + '// Define your variables here like' + "\n" + '// references to divs and images, timelines and counters' + "\n" + 'var landingUrl = \'http://www.mycruise.dk\';' + "\n" + 'var timer;' + "\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" + ' $(".itemPicture1").fadeIn();' + "\n" + ' setTimeout(function()' + "\n" + ' {' + "\n" + ' $(".itemPicture1").fadeOut();' + "\n" + ' }, 3500);' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' document.getElementById("container").onmouseover=mouseOver;' + "\n" + ' document.getElementById("container").onmouseout=mouseOut;' + "\n" + ' ' + "\n" + ' parent.OnAds_1737617c101d24c8376cfb1a76317447_isInViewport(); // Listen for the banner to enter the viewport / getting visible on the webpage.' + "\n" + ' ' + "\n" + ' var c = 1;' + "\n" + ' ' + "\n" + ' for(x=0; x\' +' + "\n" + ' \'
\' +' + "\n" + ' \' \' +' + "\n" + ' \' \' +' + "\n" + ' \' \' +' + "\n" + ' \' \' +' + "\n" + ' \' \' +' + "\n" + ' \' \' +' + "\n" + ' \' \' +' + "\n" + ' \' \';' + "\n" + ' ' + "\n" + ' if (item.partner1 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.partner2 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.partner3 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.partner4 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.partner5 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.partner6 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.partner7 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.partner8 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.partner9 == \'1\'){ tmp += \'\'; }' + "\n" + ' ' + "\n" + ' if (item.sign1 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.sign2 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.sign3 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.sign4 == \'1\'){ tmp += \'\'; }' + "\n" + ' if (item.sign5 == \'1\'){ tmp += \'\'; }' + "\n" + ' ' + "\n" + ' tmp += \'
\' +' + "\n" + ' \'
\';' + "\n" + ' ' + "\n" + ' if (item.header.length > 0) { tmp += \'
\'; }' + "\n" + ' if (item.underheader.length > 0) { tmp += \'\' + item.underheader + \'
\'; }' + "\n" + ' ' + "\n" + ' tmp += \'
\' +' + "\n" + ' \'
\' +' + "\n" + ' ' + "\n" + ' \'
\' +' + "\n" + ' \'
\';' + "\n" + ' ' + "\n" + ' if (item.pricetext.length > 0) { tmp += \'\' + item.pricetext + \'
\'; }' + "\n" + ' if (item.price.length > 0) { tmp += \'\' + item.price + \'
\'; }' + "\n" + ' ' + "\n" + ' tmp += \'
\' +' + "\n" + ' \'
\' +' + "\n" + ' ' + "\n" + ' ' + "\n" + ' ' + "\n" + ' \'
\' +' + "\n" + ' \'\';' + "\n" + ' ' + "\n" + ' return tmp;' + "\n" + '}' + "\n" + '' + "\n" + '' + "\n" + 'function next ()' + "\n" + '{' + "\n" + ' clearInterval(timer);' + "\n" + ' if (lastClick+500 > new Date().getTime())' + "\n" + ' {' + "\n" + ' return;' + "\n" + ' }' + "\n" + ' $("#cycle1").cycle(\'next\');' + "\n" + ' ' + "\n" + ' $(".itemPicture1").fadeIn();' + "\n" + ' setTimeout(function()' + "\n" + ' {' + "\n" + ' $(".itemPicture1").fadeOut();' + "\n" + ' }, 3500);' + "\n" + ' timer = setInterval("next();", 6000);' + "\n" + ' ' + "\n" + '}' + "\n" + '' + "\n" + 'function prev ()' + "\n" + '{' + "\n" + ' clearInterval(timer);' + "\n" + ' if (lastClick+500 > new Date().getTime())' + "\n" + ' {' + "\n" + ' return;' + "\n" + ' }' + "\n" + ' $("#cycle1").cycle(\'prev\');' + "\n" + ' ' + "\n" + ' $(".itemPicture1").fadeIn();' + "\n" + ' setTimeout(function()' + "\n" + ' {' + "\n" + ' $(".itemPicture1").fadeOut();' + "\n" + ' }, 3500);' + "\n" + ' timer = setInterval("next();", 6000);' + "\n" + ' ' + "\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" + '}' + "\n" + '' + "\n" + '' + "\n" + '//new clicktag / redir function' + "\n" + '//do NOT edit unless your are Master Yoda' + "\n" + '//to use default clicktag call: redir();' + "\n" + '//to add futher clicktags do: redir(\'http://url1.dk\', 1); and redir(\'http://url2.dk\', 2); and so on.' + "\n" + 'var lastClick = new Date().getTime();' + "\n" + 'function redir (url, itemId)' + "\n" + '{' + "\n" + ' if (lastClick+500 > new Date().getTime())' + "\n" + ' {' + "\n" + ' return;' + "\n" + ' }' + "\n" + ' lastClick = new Date().getTime();' + "\n" + '' + "\n" + ' if (url == undefined)' + "\n" + ' {' + "\n" + ' var url = landingUrl;' + "\n" + ' var itemId = 0;' + "\n" + ' }' + "\n" + ' window.open(clickTAG + url); ' + "\n" + ' API.registerEvent(API.EVENT_CLICK, clickTAG + url, itemId, clickTAG + url); ' + "\n" + '}' + "\n" + '
' + "\n" + '' + "\n" + ' ' + "\n"; OnAds_1737617c101d24c8376cfb1a76317447.src = 'javascript:window["contents"]'; } function OnAds_1737617c101d24c8376cfb1a76317447_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_1737617c101d24c8376cfb1a76317447_isInScreen () { if (OnAds_1737617c101d24c8376cfb1a76317447_isElementInViewport('OnAds_1737617c101d24c8376cfb1a76317447')) { // register inscreen view document.getElementById('OnAds_1737617c101d24c8376cfb1a76317447').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_1737617c101d24c8376cfb1a76317447_isInScreen();", 500); } } function OnAds_1737617c101d24c8376cfb1a76317447_isInViewport () { if (OnAds_1737617c101d24c8376cfb1a76317447_isElementInViewport('OnAds_1737617c101d24c8376cfb1a76317447')) { document.getElementById('OnAds_1737617c101d24c8376cfb1a76317447').contentWindow.inViewport(); } else { setTimeout("OnAds_1737617c101d24c8376cfb1a76317447_isInViewport()", 500); } } function OnAds_1737617c101d24c8376cfb1a76317447_isElementInViewport(el) { var rect = document.getElementById(el).getBoundingClientRect(); //tmp dba fix if (rect.top == -15) { return true; } return ( rect.top >= 0 && rect.left >= 0 && rect.top <= (window.innerHeight || document. documentElement.clientHeight) && rect.left <= (window.innerWidth || document. documentElement.clientWidth) ); } if (OnAds_1737617c101d24c8376cfb1a76317447_mraid) { mraid.addEventListener('stateChange', function(state) { if (state == 'default') { OnAds_1737617c101d24c8376cfb1a76317447_collapse (); } }); if (mraid.getState() === 'loading') { mraid.addEventListener('ready', OnAds_1737617c101d24c8376cfb1a76317447_init); } else { OnAds_1737617c101d24c8376cfb1a76317447_init(); } } else { var OnAds_1737617c101d24c8376cfb1a76317447_AutoPolite = 0; if (OnAds_1737617c101d24c8376cfb1a76317447_AutoPolite == 1) { OnAds_1737617c101d24c8376cfb1a76317447_autoPolite(); } else { setTimeout("OnAds_1737617c101d24c8376cfb1a76317447_init();", 500); } } function OnAds_1737617c101d24c8376cfb1a76317447_mraid_open (url) { mraid.open(url); } function OnAds_1737617c101d24c8376cfb1a76317447_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_1737617c101d24c8376cfb1a76317447_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; }