var OnAds_617eed80667a2a7b26a827ef28696eab_mraid = false; document.write("
Loading...
"); var OnAds_617eed80667a2a7b26a827ef28696eabreadyStateCheckInterval; function OnAds_617eed80667a2a7b26a827ef28696eabpoliteListen () { OnAds_617eed80667a2a7b26a827ef28696eabreadyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_617eed80667a2a7b26a827ef28696eabreadyStateCheckInterval); document.getElementById('OnAds_617eed80667a2a7b26a827ef28696eab').contentWindow.politeInit(); } }, 10); } var OnAds_617eed80667a2a7b26a827ef28696eabAutoReadyStateCheckInterval; function OnAds_617eed80667a2a7b26a827ef28696eab_autoPolite () { document.getElementById('OnAds_617eed80667a2a7b26a827ef28696eab_banner').innerHTML = '
'; OnAds_617eed80667a2a7b26a827ef28696eabAutoReadyStateCheckInterval = setInterval(function() { if (document.readyState === "complete") { clearInterval(OnAds_617eed80667a2a7b26a827ef28696eabAutoReadyStateCheckInterval); OnAds_617eed80667a2a7b26a827ef28696eab_init(); } }, 10); } function OnAds_617eed80667a2a7b26a827ef28696eab_init () { document.getElementById('OnAds_617eed80667a2a7b26a827ef28696eab_banner').innerHTML = ''; var OnAds_617eed80667a2a7b26a827ef28696eab = document.createElement('iframe'); OnAds_617eed80667a2a7b26a827ef28696eab.width = '300'; OnAds_617eed80667a2a7b26a827ef28696eab.height = '250'; OnAds_617eed80667a2a7b26a827ef28696eab.setAttribute('frameborder', '0'); OnAds_617eed80667a2a7b26a827ef28696eab.setAttribute('border', '0'); OnAds_617eed80667a2a7b26a827ef28696eab.setAttribute('scrolling', 'no'); OnAds_617eed80667a2a7b26a827ef28696eab.setAttribute('style', 'width: 300px; height: 250px; overflow: hidden; border: none; outline: none;'); OnAds_617eed80667a2a7b26a827ef28696eab.src = 'about:blank'; OnAds_617eed80667a2a7b26a827ef28696eab.id = "OnAds_617eed80667a2a7b26a827ef28696eab"; document.getElementById('OnAds_617eed80667a2a7b26a827ef28696eab_banner').appendChild(OnAds_617eed80667a2a7b26a827ef28696eab); OnAds_617eed80667a2a7b26a827ef28696eab.contentWindow.contents = '' + "\n" + '' + "\n" + '' + "\n" + 'var API; var clickTAG = \'http://unimedia.adservinginternational.com/click.php?raw=13600|4666||\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'89df36a67d4e565b99420ba5a33cd121\'); API.trackElement(\'container\'); parent.OnAds_617eed80667a2a7b26a827ef28696eab_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" + '// Define your variables here like' + "\n" + '// references to divs and images, timelines and counters' + "\n" + '' + "\n" + '//THIS IS SMARTH!!!' + "\n" + 'var landingUrl = \'http://www.anitajaeger.dk/\';' + "\n" + 'var autoStart;' + "\n" + 'var current = 0;' + "\n" + 'var dataLength = data.length;' + "\n" + 'var amountAnita = dataLength/2+2;' + "\n" + 'var globalTimeout = 45000;' + "\n" + 'var autoTimeout = globalTimeout/(dataLength+amountAnita);' + "\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" + ' createElements();' + "\n" + ' ' + "\n" + ' $("#cycle").cycle({' + "\n" + ' fx: \'fade\',' + "\n" + ' speed: 500,' + "\n" + ' timeoutFn: getAutoTimeout,' + "\n" + ' next: \'#next\',' + "\n" + ' prev: \'#prev\',' + "\n" + ' after: function (curr, next, opts) {' + "\n" + ' current = opts.currSlide;' + "\n" + ' }' + "\n" + ' });' + "\n" + ' ' + "\n" + ' setTimeout("autoTimeout = 99999999999; clearTimeout(autoStart);", globalTimeout);' + "\n" + ' ' + "\n" + ' parent.OnAds_617eed80667a2a7b26a827ef28696eab_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" + 'function getAutoTimeout ()' + "\n" + '{' + "\n" + ' return autoTimeout; ' + "\n" + '}' + "\n" + '' + "\n" + 'function setAutoTimeout ()' + "\n" + '{' + "\n" + ' clearTimeout(autoStart);' + "\n" + ' autoStart = setTimeout("autoTimeout = 3000; $(\'#cycle\').cycle(\'next\');", 20000);' + "\n" + ' autoTimeout = 99999999999; ' + "\n" + '}' + "\n" + '' + "\n" + 'function createElements()' + "\n" + '{ ' + "\n" + ' for (x=0; x\'+' + "\n" + ' \'
\'+ constants.slide1_header +\'
\'+' + "\n" + ' \' \'+' + "\n" + ' \'
\'+' + "\n" + ' \' \'+' + "\n" + ' \'
\'+' + "\n" + ' \' \'+' + "\n" + ' \'\';' + "\n" + ' ' + "\n" + ' $("#cycle").append(temp);' + "\n" + ' }' + "\n" + ' ' + "\n" + ' var temp;' + "\n" + ' ' + "\n" + ' temp =' + "\n" + ' \'
\'+' + "\n" + ' \'
\'+ item.picture_text +\'
\' +' + "\n" + ' \'
\' +' + "\n" + ' \' \'+' + "\n" + ' \'
\' + ' + "\n" + ' \'
Klik her
\';' + "\n" + ' ' + "\n" + ' if(item.sign1==1)' + "\n" + ' {' + "\n" + ' temp = temp + \'
KLIK HER
\';' + "\n" + ' }' + "\n" + ' ' + "\n" + ' else if(item.sign2==1)' + "\n" + ' {' + "\n" + ' temp = temp + \'
NYHED
\';' + "\n" + ' }' + "\n" + ' ' + "\n" + ' else if(item.sign3==1)' + "\n" + ' {' + "\n" + ' temp = temp + \'
BEMÆRK PRISEN
\';' + "\n" + ' }' + "\n" + ' ' + "\n" + ' else if(item.sign4==1)' + "\n" + ' {' + "\n" + ' temp = temp + \'
ÅBENT HUS
\';' + "\n" + ' }' + "\n" + ' ' + "\n" + ' else if(item.sign5==1)' + "\n" + ' {' + "\n" + ' temp = temp + \'
SOLGT
\';' + "\n" + ' }' + "\n" + ' ' + "\n" + ' else if(item.sign6==1)' + "\n" + ' {' + "\n" + ' temp = temp + \'
UNDER HANDEL
\';' + "\n" + ' }' + "\n" + ' ' + "\n" + ' temp = temp + \'
\';' + "\n" + ' $("#cycle").append(temp);' + "\n" + ' }' + "\n" + ' ' + "\n" + ' temp = ' + "\n" + ' \'
\'+' + "\n" + ' \'
\'+ constants.slide1_header +\'
\'+' + "\n" + ' \' \'+' + "\n" + ' \'
\'+' + "\n" + ' \' \'+' + "\n" + ' \'
\'+' + "\n" + ' \' \'+' + "\n" + ' \'
\';' + "\n" + ' ' + "\n" + ' $("#cycle").append(temp);' + "\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" + ' ' + "\n" + ' if(url==1)' + "\n" + ' {' + "\n" + ' url = constants.slide1_url; ' + "\n" + ' }' + "\n" + ' ' + "\n" + ' window.open(clickTAG + url); ' + "\n" + ' API.registerEvent(API.EVENT_CLICK, clickTAG + url, itemId, clickTAG + url); ' + "\n" + '}' + "\n" + '
' + "\n" + '' + "\n" + ' ' + "\n"; OnAds_617eed80667a2a7b26a827ef28696eab.src = 'javascript:window["contents"]'; } function OnAds_617eed80667a2a7b26a827ef28696eab_scroll (intMove) { document.body.scrollTop = document.body.scrollTop + intMove; } function OnAds_617eed80667a2a7b26a827ef28696eab_isInScreen () { if (OnAds_617eed80667a2a7b26a827ef28696eab_isElementInViewport('OnAds_617eed80667a2a7b26a827ef28696eab')) { // register inscreen view document.getElementById('OnAds_617eed80667a2a7b26a827ef28696eab').contentWindow.API.registerEvent(4); } else { setTimeout("OnAds_617eed80667a2a7b26a827ef28696eab_isInScreen();", 500); } } function OnAds_617eed80667a2a7b26a827ef28696eab_isInViewport () { if (OnAds_617eed80667a2a7b26a827ef28696eab_isElementInViewport('OnAds_617eed80667a2a7b26a827ef28696eab')) { document.getElementById('OnAds_617eed80667a2a7b26a827ef28696eab').contentWindow.inViewport(); } else { setTimeout("OnAds_617eed80667a2a7b26a827ef28696eab_isInViewport()", 500); } } function OnAds_617eed80667a2a7b26a827ef28696eab_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_617eed80667a2a7b26a827ef28696eab_mraid) { mraid.addEventListener('stateChange', function(state) { if (state == 'default') { OnAds_617eed80667a2a7b26a827ef28696eab_collapse (); } }); if (mraid.getState() === 'loading') { mraid.addEventListener('ready', OnAds_617eed80667a2a7b26a827ef28696eab_init); } else { OnAds_617eed80667a2a7b26a827ef28696eab_init(); } } else { var OnAds_617eed80667a2a7b26a827ef28696eab_AutoPolite = 0; if (OnAds_617eed80667a2a7b26a827ef28696eab_AutoPolite == 1) { OnAds_617eed80667a2a7b26a827ef28696eab_autoPolite(); } else { setTimeout("OnAds_617eed80667a2a7b26a827ef28696eab_init();", 500); } } function OnAds_617eed80667a2a7b26a827ef28696eab_mraid_open (url) { mraid.open(url); } function OnAds_617eed80667a2a7b26a827ef28696eab_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_617eed80667a2a7b26a827ef28696eab_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; }