/* Chartbeat Tracking */
_sf_async_config = window._sf_async_config || {};
_sf_async_config.authors = "";
_sf_async_config.sections = "";
function chartbeatLoader() {
var p = location.pathname.split("/");
_sf_async_config.sections = p.slice(2, (p[p.length-1].indexOf(".html") > -1)?p.length-1:p.length).join(",");
jQuery(function() {jQuery(".FAZArtikelEinleitung .Autor .caps").each(function() {
if (jQuery(this).parent("a").length > 0) {
_sf_async_config.authors += (_sf_async_config.authors.length > 0?",":"")+jQuery(this).text();
}
});});
window._sf_endpt=(new Date()).getTime();
var e = document.createElement('script');
e.setAttribute('language', 'javascript');
e.setAttribute('type', 'text/javascript');
e.setAttribute('src', (("https:" == document.location.protocol) ? "https://a248.e.akamai.net/chartbeat.download.akamai.com/102508/" : "http://static.chartbeat.com/") + "js/chartbeat.js");
document.body.appendChild(e);
};
$(document).ready(function () {
chartbeatLoader();
});
/* JAM-380 */
$(function() {$("div.Seitenbreite .TeaserInRondell br").after("
");});
/* JAM-466 */
window.FAZ = window.FAZ || {};
FAZ.EmittentenAds = {
W1Snippet: '/cmlink/',
W2Snippet: '/cmlink/',
isW1Placed: false,
isW2Placed: false,
isLive : function() {
"use strict";
var today = new Date();
var liveDate = new Date (2017,0,1);
return typeof jQuery !== "undefined" &&
typeof fazHostedAds !== "undefined" &&
today >= liveDate;
},
isActive:jQuery("#NewsCube").length != 0,
isSlotActive: function(slot) {
"use strict";
return typeof slot !== 'undefined' && jQuery("#"+slot+"Ziel #NewsCube").length > 0;
},
placement: function(slot, snippetID) {
"use strict";
if (this.isLive() && typeof slot !== 'undefined' && typeof snippetID != 'undefined' ) {
this[slot+"Snippet"] += snippetID;
if (slot == "W1" && !this.isW1Placed) {
document.write('<\/script>');
this.isW1Placed = true;
}
if (slot == "W2" && !this.isW2Placed) {
document.write('<\/script>');
this.isW2Placed = true;
}
}
},
write: function(targetPaths) {
var newsCubeLocalTest = false;
var isArtikel = location.href.lastIndexOf(".html") > -1;
var longestMatchingPath = fazHostedAds.longestPrefixOfPath(targetPaths);
if (window.console) console.log("Path: " + longestMatchingPath);
if (longestMatchingPath) {
var path = targetPaths[longestMatchingPath];
var slot = isArtikel?path.artikelSlot:path.targetSlot;
if (slot == path.targetSlot) {
var zielId = slot + "Ziel";
var adId = slot + "Ad";
var slotNr = path.slotNr;
buildAdContainerStart(zielId,true,true);
buildAdContainerStart("iqadtile"+slotNr,true,true);
showAnzeigeC_Ad(""+slotNr);
buildAdContainerEnd();
buildAdContainerEnd();
if (window.console) console.log("Target: " + slot);
fazHostedAds.showNewsCube(newsCubeLocalTest, zielId, adId);
}
}
}
};