(function (w, d) { var undefined, winWidth, winHeight, adDeliverUrl = "http:\/\/w.unister-adservices.com\/", containerWidth = 520, containerHeight = 330, vcCookieUpdated = false, uidUrl = adDeliverUrl + "uid.js"; function on(el, type, fn, obj) { var handler = function (e) { fn(e || w.event, obj); }; if (el.addEventListener) el.addEventListener(type, handler, false); else if (el.attachEvent) el.attachEvent('on'+type, handler); } /** * Prevend default operation of an event * @param Event event */ function preventDefault(event) { event.returnValue = false; if (event.preventDefault) { event.preventDefault(); } } function detectUID() { var s, i; if (typeof w.uAd_uid != "string") { w.uAd_uid_callback = (typeof w.uAd_uid_callback == "function") ? w.uAd_uid_callback : function (uid) { if (uid) { w.uAd_uid = uid; } w.uAd_uid_callback = undefined; }; s = d.createElement('script'); i = d.getElementsByTagName('script')[0]; s.type = 'text/javascript'; s.async = true; s.src = uidUrl; i.parentNode.insertBefore(s, i); } } function getContainerVisibility(frame) { var rect = frame.getBoundingClientRect(), style, width, height, winWidth, winHeight; if (rect) { if (typeof w.innerWidth == "number") { winWidth = w.innerWidth; winHeight = w.innerHeight; } else if (d.documentElement && (d.documentElement.offsetWidth || d.documentElement.offsetHeight)) { winWidth = d.documentElement.offsetWidth; winHeight = d.documentElement.offsetHeight; } else if (d.body && (d.body.offsetWidth || d.body.offsetHeight)) { winWidth = d.body.offsetWidth; winHeight = d.body.offsetHeight; } if (rect.left <= 0) { width = Math.max(0, Math.min(rect.left + containerWidth, containerWidth, winWidth)); } else { width = Math.max(0, Math.min(winWidth - rect.left, containerWidth, winWidth)); } if (rect.top <= 0) { height = Math.max(0, Math.min(rect.top + containerHeight, containerHeight, winHeight)); } else { height = Math.max(0, Math.min(winHeight - rect.top, containerHeight, winHeight)); } } // check if hidden by CSS if (width || height) { if (w.getComputedStyle) { style = w.getComputedStyle(frame, null); } else if (frame.currentStyle) { style = frame.currentStyle; } else { style = frame.style; } if (style && (style.display == "none" || style.visibility == "hidden")) { width = height = 0; } } // Page Visibility API if (width || height) { if (typeof d.hidden !== "undefined" && d.hidden) { width = height = 0; } else if (typeof d.mozHidden !== "undefined" && d.mozHidden) { width = height = 0; } else if (typeof d.msHidden !== "undefined" && d.msHidden) { width = height = 0; } else if (typeof d.webkitHidden !== "undefined" && d.webkitHidden) { width = height = 0; } } return (width !== undefined && height !== undefined) ? {width: width, height: height} : undefined; } function getElementsByAttr(elmt, attrName) { if (!elmt.querySelectorAll) { return (function () { var rs = [], all = elmt.getElementsByTagName("*"), l = all.length, i = 0; for (; i < l; i++) { if (all[i].getAttribute && all[i].getAttribute(attrName)) { rs.push(all[i]); } } return rs; })(); } return elmt.querySelectorAll("[" + attrName + "]"); } function getAdvGroupIds(d) { var attrName = "data-advgroupid", entries = getElementsByAttr(d.body, attrName), entryLen = entries.length, entryPos = 0, advGroupId, advGroupIds = []; for (; entryPos < entryLen; entryPos++) { advGroupId = Number(entries[entryPos].getAttribute(attrName)); if (isFinite(advGroupId)) { advGroupIds.push(advGroupId); } } return advGroupIds; } function ready() { var domId = "cpc_6596401369686191832", e = d.getElementById(domId), to = 1, f, onload; if (!e) return; f = d.createElement('iframe'); f.src = "javascript:document.open(); document.domain='" + document.domain + "'; document.close();"; f.width = 520; f.height = 330; f.scrolling = 'no'; f.frameBorder = '0'; f.marginWidth = 0; f.marginHeight = 0; f.vspace = 0; f.hspace = 0; f.allowTransparency = true; e.appendChild(f); write2iframe(); function write2iframe() { try { if (f.contentDocument) { write2Document(f.contentDocument); return; } else if (f.contentWindow) { write2Document(f.contentWindow.document); return; } } catch (e) {} setTimeout(write2iframe, to++); } function write2Document(d) { d.open(); if (!d.getElementsByClassName) { d.getElementsByClassName = function(sClass) { var classPattern = new RegExp('(?:^|\\s)' + sClass + '(?:$|\\s)'), allElmts = d.all || d.getElementsByTagName('*'), rsElmts = [], elmt; for (var i=0; i < allElmts.length; i++) { elmt = allElmts[i]; if (elmt.nodeType == 1 && classPattern.test(elmt.className)) rsElmts.push(elmt); } return rsElmts; } } d.write("\r\n\r\n\r\n\r\n
\"7,25% 7,25% Zinsen pro Jahr Attraktives Investment in deutsches Geothermie Kraftwerk! Kein Agio! Jetzt Informationen anfordern! \"1.500 1.500 Punkte und gratis lesen 1 Jahr kostenlos BILD am SONNTAG. Die PAYBACK American Express Karte. Jetzt beantragen! \"Pflegezusatzversicherung Pflegezusatzversicherung der DKV Nutzen Sie die Vorteile und sichern Sie sich und Ihre Familie ab. Jetzt informieren! \"1.500 1.500 Punkte und gratis lesen 1 Jahr kostenlos BILD am SONNTAG. Die PAYBACK American Express Karte. Jetzt beantragen! \"EUROPA EUROPA Hausrat-Versicherung: Jetzt schon ab 2,79 \u20ac pro Monat bester Schutz f\u00fcr Ihr Eigentum! Jetzt Beitrag berechnen!
"); d.close(); (function () { var container = d.getElementById("uAd__adContainer"), aTags, aTag, urlRaw, urlDisplay, i; if (container) { if (!containerHeight) { containerHeight = container.offsetHeight || 1; } aTags = container.getElementsByTagName("A"); if (aTags) { for (i = 0; i < aTags.length; i++) { aTag = aTags[i]; urlDisplay = aTag.getAttribute("data-url"); urlRaw = aTag.getAttribute("href"); if (urlDisplay && urlRaw) { aTag.removeAttribute("data-url"); aTag.href = urlDisplay; } on(aTag, "click", function (event, extra) { var url = extra.url, visibility = getContainerVisibility(f); if (visibility) { visibility = Math.round((visibility.width * visibility.height) * 100 / (containerWidth * (containerHeight || 1))); url = url.replace(/(ad\/click\/.*\;[0-9a-f]+)$/, "$1;" + visibility.toString(16)); } if (window.open(url, extra.elmt.target || "_blank")) { preventDefault(event); return false; } else { extra.elmt.href = url; } }, {"elmt":aTag, "url":urlRaw}); } } } })(); if (!onload) { onload = true; on(f, "load", function () { var iframeDocument; try { if (f.contentDocument) { iframeDocument = f.contentDocument; } else if (f.contentWindow) { iframeDocument = f.contentWindow.document; } } catch (e) {} if (iframeDocument && !iframeDocument.getElementById("uAd__adContainer")) { write2Document(iframeDocument); } }); function onWinVcEvent() { var visibility, advGroupIds, advGroupIdsBase36, i = 0; if (!vcCookieUpdated) { visibility = getContainerVisibility(f); if (visibility && (visibility.width * visibility.height) > 200) { vcCookieUpdated = true; advGroupIds = getAdvGroupIds(d); advGroupIdsBase36 = []; for (; i < advGroupIds.length; i++) { advGroupIdsBase36.push(advGroupIds[i].toString(36)); } new Image().src = adDeliverUrl + "/ads/vc.gif?" + advGroupIdsBase36.join("-"); } } } onWinVcEvent(); if (!vcCookieUpdated) { on(window, "resize", onWinVcEvent); on(window, "scroll", onWinVcEvent); } } } detectUID(); } if(d.readyState == "complete" || d.readyState == "loaded") ready(); else { var intervalHandle; function onReady() { if (intervalHandle) { clearInterval(intervalHandle); } ready(); } on(d, "DOMContentLoaded", onReady); intervalHandle = setInterval(function () { if(d.readyState == "complete" || d.readyState == "loaded") onReady(); }, 100); } })(this, document);