//188.166.5.185 //BUILD: 20160210-131248 var OnAds_bd525ffa41fb48646ca5b8916e931c71_mraid = false; document.write("
Loading...
"); var OnAds_bd525ffa41fb48646ca5b8916e931c71readyStateCheckInterval; function OnAds_bd525ffa41fb48646ca5b8916e931c71politeListen () { OnAds_bd525ffa41fb48646ca5b8916e931c71readyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_bd525ffa41fb48646ca5b8916e931c71readyStateCheckInterval); document.getElementById('OnAds_bd525ffa41fb48646ca5b8916e931c71').contentWindow.politeInit(); } }, 10); } var OnAds_bd525ffa41fb48646ca5b8916e931c71AutoReadyStateCheckInterval; function OnAds_bd525ffa41fb48646ca5b8916e931c71_autoPolite () { document.getElementById('OnAds_bd525ffa41fb48646ca5b8916e931c71_banner').innerHTML = '
'; OnAds_bd525ffa41fb48646ca5b8916e931c71AutoReadyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_bd525ffa41fb48646ca5b8916e931c71AutoReadyStateCheckInterval); OnAds_bd525ffa41fb48646ca5b8916e931c71_init(); } }, 10); } function OnAds_bd525ffa41fb48646ca5b8916e931c71_init () { document.getElementById('OnAds_bd525ffa41fb48646ca5b8916e931c71_banner').innerHTML = ''; var OnAds_bd525ffa41fb48646ca5b8916e931c71 = document.createElement('iframe'); OnAds_bd525ffa41fb48646ca5b8916e931c71.width = '930'; OnAds_bd525ffa41fb48646ca5b8916e931c71.height = '180'; OnAds_bd525ffa41fb48646ca5b8916e931c71.setAttribute('frameborder', '0'); OnAds_bd525ffa41fb48646ca5b8916e931c71.setAttribute('border', '0'); OnAds_bd525ffa41fb48646ca5b8916e931c71.setAttribute('allowfullscreen', 'allowfullscreen'); OnAds_bd525ffa41fb48646ca5b8916e931c71.setAttribute('scrolling', 'no'); OnAds_bd525ffa41fb48646ca5b8916e931c71.setAttribute('style', 'width: 930px; height: 180px; overflow: hidden; border: none; outline: none;'); OnAds_bd525ffa41fb48646ca5b8916e931c71.src = 'about:blank'; OnAds_bd525ffa41fb48646ca5b8916e931c71.id = "OnAds_bd525ffa41fb48646ca5b8916e931c71"; document.getElementById('OnAds_bd525ffa41fb48646ca5b8916e931c71_banner').appendChild(OnAds_bd525ffa41fb48646ca5b8916e931c71); OnAds_bd525ffa41fb48646ca5b8916e931c71.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'REPLACEME\'); API.trackElement(\'container\'); parent.OnAds_bd525ffa41fb48646ca5b8916e931c71_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" + '
' + "\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.stark.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" + ' //reset' + "\n" + ' tl.to(item_first_image, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_2_text, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_3_text, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_4_text, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_2_splash, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_3_splash, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_4_splash, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_2_produkt, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_3_produkt, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_4_produkt, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_2_magasin, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' //tl.to(item_3_magasin, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' //tl.to(item_4_magasin, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' //reset' + "\n" + '' + "\n" + '' + "\n" + ' tl.to(item_first_image, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_first_image, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: 1.5});' + "\n" + '' + "\n" + ' tl.to(slide_2, 0, {autoAlpha: 1, ease:"Expo.easeOut", delay: -1});' + "\n" + ' tl.to(item_2_slide, 1, {autoAlpha: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_2_produkt, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -1});' + "\n" + ' tl.to(item_2_splash, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -0.75});' + "\n" + ' tl.to(item_2_text, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -0.75});' + "\n" + ' tl.to(item_2_magasin, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -0.75});' + "\n" + ' tl.to(item_2_magasin, 1, {autoAlpha: 0, ease:"Expo.easeIn", delay: -1.7});' + "\n" + ' tl.to(item_2_text, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: 1.5});' + "\n" + ' tl.to(item_2_splash, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: -0.75});' + "\n" + ' tl.to(item_2_produkt, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: -0.75});' + "\n" + '' + "\n" + ' tl.to(slide_3, 0, {autoAlpha: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_3_slide, 1, {autoAlpha: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_3_produkt, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -1});' + "\n" + ' tl.to(item_3_splash, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -0.75});' + "\n" + ' tl.to(item_3_text, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -0.75});' + "\n" + ' tl.to(item_2_magasin, 0, {autoAlpha: 0, ease:"Expo.easeIn", delay: -1.25});' + "\n" + ' tl.to(item_3_magasin, 0.2, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -1.35});' + "\n" + ' tl.to(item_3_text, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: 1.5});' + "\n" + ' tl.to(item_3_splash, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: -0.75});' + "\n" + ' tl.to(item_3_produkt, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay:-0.75});' + "\n" + '' + "\n" + ' tl.to(slide_4, 0, {autoAlpha: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_4_slide, 1, {autoAlpha: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' tl.to(item_4_produkt, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -1});' + "\n" + ' tl.to(item_4_splash, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -0.75});' + "\n" + ' tl.to(item_4_text, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -0.75});' + "\n" + ' tl.to(item_3_magasin, 0, {autoAlpha: 0, ease:"Expo.easeIn", delay: -1.25});' + "\n" + ' tl.to(item_4_magasin, 0.2, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: -1.35});' + "\n" + ' tl.to(item_4_text, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: 1.5});' + "\n" + ' tl.to(item_4_splash, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: -0.75});' + "\n" + ' tl.to(item_4_produkt, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: -0.75});' + "\n" + ' tl.to(item_4_magasin, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: -0.75});' + "\n" + '' + "\n" + ' tl.to(item_first_slidebg2, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + '' + "\n" + '' + "\n" + ' function restartTimeline () {' + "\n" + ' counter++;' + "\n" + ' if (counter > 1)' + "\n" + ' {' + "\n" + ' // final tweens here' + "\n" + ' //RESET//' + "\n" + ' TweenLite.to(item_first_slide, 0, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_first_image, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_2_slide, 0, {autoAlpha: 0, scale: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_3_slide, 0, {autoAlpha: 0, scale: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_4_slide, 0, {autoAlpha: 0, scale: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_2_text, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_3_text, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_4_text, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_2_splash, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_3_splash, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_4_splash, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_2_produkt, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_3_produkt, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_4_produkt, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_2_magasin, 0, {autoAlpha: 0, scale: 2, ease:"Expo.easeOut", delay: 0});' + "\n" + '' + "\n" + ' //PLAY//' + "\n" + ' TweenLite.to(item_first_slidebg2, 0.1, {autoAlpha: 0, scale: 1, ease:"Expo.easeOut", delay: 0});' + "\n" + ' TweenLite.to(item_first_image, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: 0.2});' + "\n" + ' TweenLite.to(item_first_image, 1, {autoAlpha: 0, scale: 2, ease:"Expo.easeIn", delay: 3});' + "\n" + '' + "\n" + ' TweenLite.to(item_2_slide, 1, {autoAlpha: 1, ease:"Expo.easeOut", delay: 4});' + "\n" + ' TweenLite.to(item_2_produkt, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: 4.3});' + "\n" + ' TweenLite.to(item_2_splash, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: 4.6});' + "\n" + ' TweenLite.to(item_2_text, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: 4.9});' + "\n" + ' TweenLite.to(item_2_magasin, 1, {autoAlpha: 1, scale: 1, ease:"Expo.easeOut", delay: 5.2});' + "\n" + '' + "\n" + ' return false;' + "\n" + ' }' + "\n" + ' else' + "\n" + ' {' + "\n" + ' tl.restart();' + "\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" + ' document.getElementById("item_first_slide").src = constants.item_first_slide;' + "\n" + ' document.getElementById("item_first_slidebg2").src = constants.item_first_slide;' + "\n" + ' document.getElementById("item_first_image").src = constants.item_first_image;' + "\n" + ' //document.getElementById("item_2_magasin").src = constants.item_2_right_img;' + "\n" + '' + "\n" + ' if (data.length < 3)' + "\n" + ' {' + "\n" + ' for (x = data.length; x < 3; x++ )' + "\n" + ' {' + "\n" + ' data[x] = data[0];' + "\n" + ' }' + "\n" + ' }' + "\n" + '' + "\n" + ' for (x = 0; x < 3; x++)' + "\n" + ' {' + "\n" + ' var item = data[x];' + "\n" + ' var n = x + 2;' + "\n" + '' + "\n" + ' document.getElementById("slide_" + n).setAttribute("onclick", "redir(\'" + item.url + "\', " + item.id + ");");' + "\n" + '' + "\n" + ' document.getElementById("item_" + n + "_slide").src = item.slides_bg;' + "\n" + ' document.getElementById("item_" + n + "_magasin").src = item.right_img;' + "\n" + ' document.getElementById("item_" + n + "_text").src = item.product_name;' + "\n" + ' document.getElementById("item_" + n + "_produkt").src = item.produkt;' + "\n" + ' document.getElementById("item_" + n + "_splash").src = item.price;' + "\n" + '' + "\n" + ' }' + "\n" + '' + "\n" + '' + "\n" + ' parent.OnAds_bd525ffa41fb48646ca5b8916e931c71_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" + ' }' + "\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"; if (location.protocol === 'https:') { OnAds_bd525ffa41fb48646ca5b8916e931c71.contentWindow.contents = OnAds_bd525ffa41fb48646ca5b8916e931c71.contentWindow.contents.replace(/http:\/\/pool/g, 'https://pool'); OnAds_bd525ffa41fb48646ca5b8916e931c71.contentWindow.contents = OnAds_bd525ffa41fb48646ca5b8916e931c71.contentWindow.contents.replace(/http:\/\/betterbannerscloud.com/g, 'https://betterbannerscloud.com'); } OnAds_bd525ffa41fb48646ca5b8916e931c71.src = 'javascript:window["contents"]'; } function OnAds_bd525ffa41fb48646ca5b8916e931c71_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_bd525ffa41fb48646ca5b8916e931c71_isInScreen () { if (OnAds_bd525ffa41fb48646ca5b8916e931c71_isElementInViewport('OnAds_bd525ffa41fb48646ca5b8916e931c71')) { // register inscreen view document.getElementById('OnAds_bd525ffa41fb48646ca5b8916e931c71').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_bd525ffa41fb48646ca5b8916e931c71_isInScreen();", 500); } } function OnAds_bd525ffa41fb48646ca5b8916e931c71_isInViewport () { if (OnAds_bd525ffa41fb48646ca5b8916e931c71_isElementInViewport('OnAds_bd525ffa41fb48646ca5b8916e931c71')) { document.getElementById('OnAds_bd525ffa41fb48646ca5b8916e931c71').contentWindow.inViewport(); } else { setTimeout("OnAds_bd525ffa41fb48646ca5b8916e931c71_isInViewport()", 500); } } function OnAds_bd525ffa41fb48646ca5b8916e931c71_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_bd525ffa41fb48646ca5b8916e931c71_mraid) { mraid.addEventListener('stateChange', function(state) { if (state == 'default') { OnAds_bd525ffa41fb48646ca5b8916e931c71_collapse (); } }); if (mraid.getState() === 'loading') { mraid.addEventListener('ready', OnAds_bd525ffa41fb48646ca5b8916e931c71_init); } else { OnAds_bd525ffa41fb48646ca5b8916e931c71_init(); } } else { var OnAds_bd525ffa41fb48646ca5b8916e931c71_AutoPolite = 0; if (OnAds_bd525ffa41fb48646ca5b8916e931c71_AutoPolite == 1) { OnAds_bd525ffa41fb48646ca5b8916e931c71_autoPolite(); } else { setTimeout("OnAds_bd525ffa41fb48646ca5b8916e931c71_init();", 500); } } function OnAds_bd525ffa41fb48646ca5b8916e931c71_mraid_open (url) { mraid.open(url); } function OnAds_bd525ffa41fb48646ca5b8916e931c71_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_bd525ffa41fb48646ca5b8916e931c71_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; }