var OnAds_e620049f4f1dcce10bd852a1455c0ca4_mraid = false;
document.write("
Loading...
");
var OnAds_e620049f4f1dcce10bd852a1455c0ca4readyStateCheckInterval;
function OnAds_e620049f4f1dcce10bd852a1455c0ca4politeListen ()
{
OnAds_e620049f4f1dcce10bd852a1455c0ca4readyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
clearInterval(OnAds_e620049f4f1dcce10bd852a1455c0ca4readyStateCheckInterval);
document.getElementById('OnAds_e620049f4f1dcce10bd852a1455c0ca4').contentWindow.politeInit();
}
}, 10);
}
var OnAds_e620049f4f1dcce10bd852a1455c0ca4AutoReadyStateCheckInterval;
function OnAds_e620049f4f1dcce10bd852a1455c0ca4_autoPolite ()
{
document.getElementById('OnAds_e620049f4f1dcce10bd852a1455c0ca4_banner').innerHTML = '';
OnAds_e620049f4f1dcce10bd852a1455c0ca4AutoReadyStateCheckInterval = setInterval(function() {
if (document.readyState === "complete") {
clearInterval(OnAds_e620049f4f1dcce10bd852a1455c0ca4AutoReadyStateCheckInterval);
OnAds_e620049f4f1dcce10bd852a1455c0ca4_init();
}
}, 10);
}
function OnAds_e620049f4f1dcce10bd852a1455c0ca4_init ()
{
document.getElementById('OnAds_e620049f4f1dcce10bd852a1455c0ca4_banner').innerHTML = '';
var OnAds_e620049f4f1dcce10bd852a1455c0ca4 = document.createElement('iframe');
OnAds_e620049f4f1dcce10bd852a1455c0ca4.width = '930';
OnAds_e620049f4f1dcce10bd852a1455c0ca4.height = '180';
OnAds_e620049f4f1dcce10bd852a1455c0ca4.setAttribute('frameborder', '0');
OnAds_e620049f4f1dcce10bd852a1455c0ca4.setAttribute('border', '0');
OnAds_e620049f4f1dcce10bd852a1455c0ca4.setAttribute('scrolling', 'no');
OnAds_e620049f4f1dcce10bd852a1455c0ca4.setAttribute('style', 'width: 930px; height: 180px; overflow: hidden; border: none; outline: none;');
OnAds_e620049f4f1dcce10bd852a1455c0ca4.src = 'about:blank';
OnAds_e620049f4f1dcce10bd852a1455c0ca4.id = "OnAds_e620049f4f1dcce10bd852a1455c0ca4";
document.getElementById('OnAds_e620049f4f1dcce10bd852a1455c0ca4_banner').appendChild(OnAds_e620049f4f1dcce10bd852a1455c0ca4);
OnAds_e620049f4f1dcce10bd852a1455c0ca4.contentWindow.contents = '' + "\n" +
'' + "\n" +
'' + "\n" +
'var API; var clickTAG = \'http://unimedia.adservinginternational.com/click.php?raw=13652|5665||\'; window.onload = function() { API = new OnAdsStatsAPI(); API.init(\'33acdaee88af4689a076bd610fd36a62\'); API.trackElement(\'container\'); parent.OnAds_e620049f4f1dcce10bd852a1455c0ca4_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" +
'var landingUrl = \'http://www.farstadoptik.dk\';' + "\n" +
'' + "\n" +
'var counter = 0;' + "\n" +
'var tl = new TimelineLite({onComplete:restartTimeline});' + "\n" +
'tl.pause();' + "\n" +
'' + "\n" +
'//RESET//' + "\n" +
'tl.to(POSTIT, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST1, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST2, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(KNAP1, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST3, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST4, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'' + "\n" +
'tl.to(RENTEFRI, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST5, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST6, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(KNAP2, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST7, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST8, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'' + "\n" +
'//PLAY//' + "\n" +
'tl.to(POSTIT, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST1, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'tl.to(TEKST2, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'tl.to(KNAP1, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'tl.to(TEKST3, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'tl.to(TEKST4, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'' + "\n" +
'tl.to(POSTIT, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: 3});' + "\n" +
'tl.to(TEKST1, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'tl.to(TEKST2, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'tl.to(KNAP1, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'tl.to(TEKST3, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'tl.to(TEKST4, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'' + "\n" +
'tl.to(RENTEFRI, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: 0});' + "\n" +
'tl.to(TEKST5, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'tl.to(TEKST6, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'tl.to(KNAP2, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'tl.to(TEKST7, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'tl.to(TEKST8, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: -0.4});' + "\n" +
'' + "\n" +
'tl.to(RENTEFRI, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: 3});' + "\n" +
'tl.to(TEKST5, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'tl.to(TEKST6, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'tl.to(KNAP2, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'tl.to(TEKST7, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'tl.to(TEKST8, 0.5, {y:-20, alpha:0, ease:"Expo.easeIn", delay: -0.45});' + "\n" +
'' + "\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" +
'' + "\n" +
' //RESET//' + "\n" +
' TweenLite.to(POSTIT, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(TEKST1, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(TEKST2, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(KNAP1, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(TEKST3, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(TEKST4, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'' + "\n" +
' TweenLite.to(RENTEFRI, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(TEKST5, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(TEKST6, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(KNAP2, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(TEKST7, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
' TweenLite.to(TEKST8, 0, {y:20, alpha:0, ease:"Expo.easeOut", delay: 0});' + "\n" +
'' + "\n" +
' //PLAY//' + "\n" +
' TweenLite.to(POSTIT, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: 0.1});' + "\n" +
' TweenLite.to(TEKST1, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: 0.2});' + "\n" +
' TweenLite.to(TEKST2, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: 0.3});' + "\n" +
' TweenLite.to(KNAP1, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: 0.4});' + "\n" +
' TweenLite.to(TEKST3, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: 0.5});' + "\n" +
' TweenLite.to(TEKST4, 0.5, {y:0, alpha:1, ease:"Expo.easeOut", delay: 0.6});' + "\n" +
'' + "\n" +
' return false;' + "\n" +
' }' + "\n" +
' else' + "\n" +
' {' + "\n" +
' tl.restart();' + "\n" +
' }' + "\n" +
'}' + "\n" +
'' + "\n" +
'function init () {' + "\n" +
'' + "\n" +
' API.registerImpression();' + "\n" +
' ' + "\n" +
' document.getElementById("container").onmouseover=mouseOver;' + "\n" +
' document.getElementById("container").onmouseout=mouseOut;' + "\n" +
' ' + "\n" +
' parent.OnAds_e620049f4f1dcce10bd852a1455c0ca4_isInViewport(); // Listen for the banner to enter the viewport / getting visible on the webpage.' + "\n" +
'}' + "\n" +
'' + "\n" +
'function inViewport ()' + "\n" +
'{' + "\n" +
' tl.restart();' + "\n" +
'}' + "\n" +
'' + "\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_e620049f4f1dcce10bd852a1455c0ca4.src = 'javascript:window["contents"]';
}
function OnAds_e620049f4f1dcce10bd852a1455c0ca4_scroll (intMove)
{
document.body.scrollTop = document.body.scrollTop + intMove;
}
function OnAds_e620049f4f1dcce10bd852a1455c0ca4_isInScreen ()
{
if (OnAds_e620049f4f1dcce10bd852a1455c0ca4_isElementInViewport('OnAds_e620049f4f1dcce10bd852a1455c0ca4'))
{
// register inscreen view
document.getElementById('OnAds_e620049f4f1dcce10bd852a1455c0ca4').contentWindow.API.registerEvent(4);
}
else
{
setTimeout("OnAds_e620049f4f1dcce10bd852a1455c0ca4_isInScreen();", 500);
}
}
function OnAds_e620049f4f1dcce10bd852a1455c0ca4_isInViewport ()
{
if (OnAds_e620049f4f1dcce10bd852a1455c0ca4_isElementInViewport('OnAds_e620049f4f1dcce10bd852a1455c0ca4'))
{
document.getElementById('OnAds_e620049f4f1dcce10bd852a1455c0ca4').contentWindow.inViewport();
}
else
{
setTimeout("OnAds_e620049f4f1dcce10bd852a1455c0ca4_isInViewport()", 500);
}
}
function OnAds_e620049f4f1dcce10bd852a1455c0ca4_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_e620049f4f1dcce10bd852a1455c0ca4_mraid)
{
mraid.addEventListener('stateChange', function(state)
{
if (state == 'default')
{
OnAds_e620049f4f1dcce10bd852a1455c0ca4_collapse ();
}
});
if (mraid.getState() === 'loading')
{
mraid.addEventListener('ready', OnAds_e620049f4f1dcce10bd852a1455c0ca4_init);
}
else
{
OnAds_e620049f4f1dcce10bd852a1455c0ca4_init();
}
}
else
{
var OnAds_e620049f4f1dcce10bd852a1455c0ca4_AutoPolite = 0;
if (OnAds_e620049f4f1dcce10bd852a1455c0ca4_AutoPolite == 1)
{
OnAds_e620049f4f1dcce10bd852a1455c0ca4_autoPolite();
}
else
{
setTimeout("OnAds_e620049f4f1dcce10bd852a1455c0ca4_init();", 500);
}
}
function OnAds_e620049f4f1dcce10bd852a1455c0ca4_mraid_open (url)
{
mraid.open(url);
}
function OnAds_e620049f4f1dcce10bd852a1455c0ca4_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_e620049f4f1dcce10bd852a1455c0ca4_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;
}