(function(VmgConfig, VmgAdConfig) {if(undefined == VmgConfig)
{
var VmgConfig = new Array();
}
//VmgConfig['debug'] = true;
VmgConfig['adContainer'] = '.article_content .body p+p';
VmgConfig['adPosistion'] = 'append';
VmgConfig['width'] = 446;
VmgConfig['height'] = VmgConfig['width'] /16*9;
VmgConfig.skipArticleWithVideoContent=true;
var VmgAdConfig = {"viewId":"391006975","campaign_id":"357","campaign_po_id":"1073","videoSrc":"http:\/\/inpagevideo.nl\/assets\/357\/1676.mp4","link":"https:\/\/ad.doubleclick.net\/ddm\/clk\/287179041;114192825;h","trackers":{"placement":["http:\/\/inpagevideo.nl\/adServ\/placement\/banner\/5248225\/bannerview\/391006975"],"engagement":["http:\/\/inpagevideo.nl\/adServ\/engagement\/banner\/5248225\/bannerview\/391006975"],"play":["http:\/\/inpagevideo.nl\/adServ\/play\/banner\/5248225\/bannerview\/391006975","https:\/\/ad.doubleclick.net\/ad\/N1142.279049MARKETINGTRIBUNE\/B8444949.114192825;sz=1x1;ord=1422493147?"],"time":["http:\/\/inpagevideo.nl\/adServ\/time\/banner\/5248225\/bannerview\/391006975"],"totaltime":["http:\/\/inpagevideo.nl\/adServ\/totaltime\/banner\/5248225\/bannerview\/391006975"],"totalTime":["http:\/\/inpagevideo.nl\/adServ\/totalTime\/banner\/5248225\/bannerview\/391006975"],"mouseover":["http:\/\/inpagevideo.nl\/adServ\/mouseover\/banner\/5248225\/bannerview\/391006975"],"click":["http:\/\/inpagevideo.nl\/adServ\/click\/banner\/5248225\/bannerview\/391006975"],"firstQuartile":["http:\/\/inpagevideo.nl\/adServ\/firstQuartile\/banner\/5248225\/bannerview\/391006975"],"midPoint":["http:\/\/inpagevideo.nl\/adServ\/midPoint\/banner\/5248225\/bannerview\/391006975"],"thirdQuartile":["http:\/\/inpagevideo.nl\/adServ\/thirdQuartile\/banner\/5248225\/bannerview\/391006975"],"complete":["http:\/\/inpagevideo.nl\/adServ\/complete\/banner\/5248225\/bannerview\/391006975"],"creativeView":["http:\/\/inpagevideo.nl\/adServ\/creativeView\/banner\/5248225\/bannerview\/391006975"],"pause":["http:\/\/inpagevideo.nl\/adServ\/pause\/banner\/5248225\/bannerview\/391006975"],"fullscreen":["http:\/\/inpagevideo.nl\/adServ\/fullscreen\/banner\/5248225\/bannerview\/391006975"],"inscreen":["http:\/\/inpagevideo.nl\/adServ\/inscreen\/banner\/5248225\/bannerview\/391006975"],"mute":["http:\/\/inpagevideo.nl\/adServ\/mute\/banner\/5248225\/bannerview\/391006975"],"unmute":["http:\/\/inpagevideo.nl\/adServ\/unmute\/banner\/5248225\/bannerview\/391006975"],"error":["http:\/\/inpagevideo.nl\/adServ\/error\/banner\/5248225\/bannerview\/391006975"],"close":["http:\/\/inpagevideo.nl\/adServ\/close\/banner\/5248225\/bannerview\/391006975"],"resume":["http:\/\/inpagevideo.nl\/adServ\/resume\/banner\/5248225\/bannerview\/391006975"],"adrequest":["http:\/\/inpagevideo.nl\/adServ\/adrequest\/banner\/5248225\/bannerview\/391006975"],"adresponse":["http:\/\/inpagevideo.nl\/adServ\/adresponse\/banner\/5248225\/bannerview\/391006975"],"win":["http:\/\/inpagevideo.nl\/adServ\/win\/banner\/5248225\/bannerview\/391006975"]},"width":"320","height":"240","pool":"inpagevideo","REQUEST_URI":"\/adServ\/placement\/id\/133","failBackCode":"","browser":{"typ":"Browser","ua_family":"Chrome","ua_version":"39.0.2171.95","os_family":"Windows","device_type":"Personal computer"}};
/*  VMG BUILD 2015-Jan-28 11:52 REV 3802:5328M
 */0 < navigator.appVersion.indexOf("MSIE 8") && !String.prototype.trim && (String.prototype.trim = function () {
	return this.replace(/^\s+|\s+$/g, "")
});
(function (e) {
	if (0 < navigator.appVersion.indexOf("MSIE 9") || 0 < navigator.appVersion.indexOf("MSIE 8") || 0 < navigator.appVersion.indexOf("MSIE 7"))
		e = window.top.document, 0 == e.styleSheets.length && e.createStyleSheet(), function (e) {
			"undefined" == typeof e.querySelector && (e.querySelectorAll = function (b) {
				b = b.split(",");
				var p = b.length, a, g = [], d, z, v;
				for (a = 0; a < p; a++) {
					z = b[a];
					d = z.split(/[>]+/);
					z = z.match(/[>]+/g) || [];
					var x = void 0;
					v = void 0;
					var G = [this], E = void 0, B = void 0, t = x = void 0, F = void 0, y = void 0, q = void 0, D = void 0, Q = void 0,
						c = void 0, H = void 0;
					for (z.unshift(" "); x = d.shift(); )
						for ((v = z.shift()) && (v = v.replace(/^ +| +$/g, "")), E = G.slice(0), G = [], B = E.length, t = x.match(/[#.[]?[a-z_-]+(?:='[^']+'|="[^"]+")?]?/gi), F = t.length, x = 0; x < B; x++)
							if ("#" == t[0].charAt(0))
								G = [e.getElementById(t[0].substr(1))];
							else if (q = ">" == v ? E[x].children : E[x].getElementsByTagName("*"))
								for (Q = q.length, D = 0; D < Q; D++) {
									c = !0;
									for (y = 0; y < F; y++) {
										switch (t[y].charAt(0)) {
											case ".":
												q[D].className.match(new RegExp("\\b" + t[y].substr(1) + "\\b")) || (c = !1);
												break;
											case "[":
												H = t[y].substr(1,
													t[y].length - 2).split("=");
												q[D].getAttribute(H[0]) ? H[1] && (H[1] = H[1].replace(/^['"]|['"]$/g, ""), q[D].getAttribute(H[0]) != H[1] && (c = !1)) : c = !1;
												break;
											default:
												q[D].tagName.toLowerCase() != t[y].toLowerCase() && (c = !1)
										}
										if (!c)
											break
									}
									c && G.push(q[D])
								}
					d = G;
					z = d.length;
					for (v = 0; v < z; v++)
						g.push(d[v])
				}
				return g
			}, e.querySelector = function (b) {
				b = this.querySelectorAll(b);
				return 0 < b.length ? b[0] : null
			}, "undefined" != typeof HTMLElement && (HTMLElement.prototype.querySelector = e.querySelector, HTMLElement.prototype.querySelectorAll = e.querySelectorAll))
		}(top.window.document)
})();
(function (e, C) {
	if (-1 != navigator.appVersion.indexOf("MSIE 7."))
		return!1;
	var b, p = {version: "1.16.0.5", HTTP_HOST: "inpagevideo.nl", http: "http", adContainer: "#inPageVideo", adPosistion: "prepend", adPosistionMethod: "insertBefore", skipArticleWithVideoContent: !1, fitPosistion: 2, inscreenHandler: !0, autoplay: !1, playOnInScreen: !0, playOnInScreenMobile: !1, slideInOnStart: !0, slideInOnClose: !0, forceHtml5: !1, forceFlash: !1, loadFailBackAtEnd: !1, topFrameClass: "", mute: !0, muteOnMouseOut: !0, unMuteOnMouseOver: !0, unMuteCountDown: void 0,
		showMute: !0, expandCountDown: void 0, expandOnStart: void 0, expandOnLoad: void 0, expandHeight: void 0, expandWidth: void 0, translationSecond: "seconde", translationSeconds: "seconden", closeButton: !0, showCloseButtonAfter: 0, showCounter: !0, showTopLink: !0, bottomLogo: !0, topLinkText: "Advertentie", controls: !1, contextMenu: !0, playerColor: "white", marginTop: "0px", marginBottom: "0px", marginRight: "0px", marginLeft: "0px", backgroundColor: "none", topLinkColor: "#000000", width: "100%", height: "100%", aspectRatio: 16 / 9, zIndex: 9, posistion: "relative",
		playerCSS: "//inpagevideo.nl/library/inpagevideo/1/15/assets/css/base.css", topCSS: "//inpagevideo.nl/library/inpagevideo/1/15/assets/css/top.css", campaignCSS: void 0, campaignStyle: void 0, vpaid: void 0, vast: void 0, vastTimeOut: 600, vastRetry: 0, autoConstruct: !1, debugOutput: "console", heightExtra: 0, topLinkHeight: 20, ctaFooterMessage: "Tap hier voor meer informatie", dummyToCalculateWidth: "VideoMediaDummy", initiated: !0};
	void 0 !== e.onPageVideo && !0 === e.onPageVideo && (e.adContainer = "body", e.adPosistion = "append", e.width =
		"0%", e.height = "0%", e.expandOnStart = !0, e.expandHeight = 480, e.expandWidth = 853, e.playOnInScreen = !1, e.slideInOnStart = !1, e.endImage = void 0, C.startImage = void 0, e.mute = !1, e.onPlayerReady = function () {
			B.player("start")
		});
	void 0 !== e.onPageVideoMobile && !0 === e.onPageVideoMobile && (e.adContainer = "body", e.adPosistion = "prepend", e.width = "0%", e.height = "0%", e.expandOnStart = !0, e.playOnInScreen = !1, e.slideInOnStart = !1, e.endImage = void 0, e.mute = !0, e.onPlayerReady = function () {
		B.player("onPageVideoMobile")
	});
	if (!0 === e.preYouTube ||
		!0 === e.preYouTubeMobile)
		if (e.marginTop = "0px", e.showTopLink = !1, e.slideInOnStart = !0, e.playOnInScreen = !1, e.slideInOnClose = !1, C.startImage = void 0, C.endImage = void 0, e.closeButton = !1, e.showMute = !1, e.mute = !1, e.closeButton = !0, e.showCloseButtonAfter = 5, e.inscreenHandler = !1, e.adContainer = 'iframe[src*="youtube"]', "Tablet" == C.browser.device_type || "Smartphone" == C.browser.device_type)
			e.preYouTube = void 0, e.preYouTubeMobile = !0;
	p.http = "http";
	"https:" == document.location.protocol && (p.http = "https");
	p.HTTP_HOST = p.http +
		"://" + p.HTTP_HOST;
	p.closed = 0;
	var a = [], g;
	for (g in C)
		a[g] = C[g];
	for (g in p)
		void 0 !== p[g] && (a[g] = p[g]);
	for (g in e)
		void 0 !== e[g] && (a[g] = e[g]);
	if ("Tablet" == a.browser.device_type || "Smartphone" == a.browser.device_type)
		a.showMute = !1, a.mute = !1, a.forceFlash = !1, a.ctaFooter = !0, a.controls = !1, "Android" === a.browser.os_family && "Tablet" !== a.browser.device_type && (1E3 < window.screen.width || 1E3 < window.screen.height) && (a.browser.device_type = "Tablet"), !1 === a.playOnInScreenMobile ? a.playOnInScreen = !1 : !0 === a.playOnInScreenMobile &&
			void 0 === a.notPlayOnMobileProvider && (a.inscreenHandler = !0, a.playOnInScreen = !0, a.mute = !1, a.muteOnMouseOut = !1, a.unMuteOnMouseOver = !1), "iOS" == a.browser.os_family && "Smartphone" == a.browser.device_type && (a.playOnInScreen = !1);
	a.html5 = "OS X" == a.browser.os_family && "Firefox" == a.browser.ua_family || 0 < navigator.userAgent.toLowerCase().indexOf("windows nt 5.1") && "Firefox" == a.browser.ua_family || 0 < navigator.appVersion.indexOf("MSIE 9") || 0 < navigator.appVersion.indexOf("MSIE 8") || 0 < navigator.appVersion.indexOf("MSIE 7") ?
		!1 : "Tablet" == a.browser.device_type || "Smartphone" == a.browser.device_type || "OS X" == a.browser.os_family && "Safari" == a.browser.ua_family || 1 == a.forceHtml5 ? !0 : 1 == a.forceFlash || "unknown" == a.browser.ua_version ? !1 : a.browser.ua_family in{Chrome: !0, Firefox: !0, Safari: !0, IE: !0, H5: !0} ? !0 : !1;
	var d = function (d) {
		if (!0 === a.debug || 1 === a.debug) {
			void 0 == a.start && (a.start = new Date);
			var b = new Date - a.start, b = b / 1E3;
			try {
				void 0 === a.errorLog && (a.errorLog = {test: "1"}), a.errorLog[d] = void 0 === a.errorLog[d] ? 1 : a.errorLog[d] + 1, 10 > a.errorLog[d] &&
					z("VMG " + a.viewId + " (" + b + ")" + d), Math.round(a.errorLog[d] / 100) == a.errorLog[d] / 100 && z("VMG " + a.viewId + " (" + b + "): too many messages " + a.errorLog[d] + "::" + d)
			} catch (g) {
			}
			return!0
		}
		return!1
	}, z = function (d) {
		try {
			if (console.log(d), "adContainer" === a.debugOutput)
				if (void 0 === a.debugOutputContainer) {
					var b = top.document.createElement("div");
					b.id = "debugOutputContainer";
					var g = window.top.document.querySelectorAll(a.adContainer);
					0 < g.length && (g[0].appendChild(b), a.debugOutputContainer = window.top.document.getElementById("debugOutputContainer"),
						console.log(a.debugOutputContainer), a.debugOutputContainer.innerHTML = "<p>" + d + "</p>" + a.debugOutputContainer.innerHTML)
				} else
					a.debugOutputContainer.innerHTML = "<p>" + d + "</p>" + a.debugOutputContainer.innerHTML
		} catch (c) {
			console.log(c)
		}
	};
	void 0 == top.VMGREGISTER && (top.VMGREGISTER = []);
	if (void 0 == top.VMGREGISTER[a.viewId])
		top.VMGREGISTER[a.viewId] = !0, d("Register Instance");
	else
		return d("Double instance started, Exitting, double instance"), !1;
	d("InPageVideo BY VideoMediaGroep.nl");
	d("loadingView version " + a.version);
	if (window != top) {
		p = parent.document.getElementById(window.frameElement.id);
		p.style.display = "none";
		p.style.height = "0px";
		p.height = 0;
		var p = p.parentNode, v = document.createElement("div");
		v.id = "inPageVideo";
		p.parentNode.insertBefore(v, p);
		!1 === a.hasOwnProperty("adContainer") && (a.adContainer = "#inPageVideo", a.adContainer = "#inPageVideo", "Browser" == a.browser.typ && "Chrome" == a.browser.ua_family && (a.forceFlash = !1, a.forceHtml5 = !0))
	} else if (!1 === VmgConfig.hasOwnProperty("adContainer") && void 0 != document.getElementById("inPageVideo"))
		VmgConfig.adContainer =
			"#inPageVideo";
	else if (!1 === VmgConfig.hasOwnProperty("adContainer")) {
		p = top.document.querySelector('script[src*="' + a.REQUEST_URI + '"]') || document.querySelector('script[src*="' + a.REQUEST_URI + '"]');
		if (void 0 == p)
			for (g in v = document.getElementsByTagName("script"), v)
				if (void 0 != v[g].src && void 0 != v[g].src.indexOf("/inpagevideo/")) {
					p = v[g];
					break
				}
		void 0 != p && (v = document.createElement("div"), v.id = "inPageVideo", p.parentNode.insertBefore(v, p), a.adContainer = "#inPageVideo")
	}
	var x = function () {
		this._construct = function () {
			d("VMG Loader");
			if (void 0 !== a.preYouTube)
				return R(), !1;
			if (void 0 !== a.preYouTubeMobile) {
				d("YouTube::MOBILE");
				var c = top.document.querySelector('iframe[src*="youtube.com/embed"]');
				if (void 0 == c)
					d("NoYT Found");
				else {
					var b = top.document.createElement("div");
					b.id = "VMGAdContainer";
					b.style.position = "absolute";
					b.style.zIndex = 9999999999;
					a.autoplay = !0;
					a.slideInOnStart = !1;
					a.width = c.width;
					a.height = c.height;
					a.aspectRatio = c.width / c.height;
					a.adContainer = "#" + b.id;
					c.parentNode.insertBefore(b, c);
					c = v(c.src);
					a.startImage = "http://i.ytimg.com/vi/" +
						c + "/maxresdefault.jpg";
					a.showCloseButtonAfter = 0;
					e();
					p()
				}
				return!1
			}
			e();
			p()
		};
		var e = function () {
			b = "<!doctype html>\n";
			b += "<html>";
			b += "<head>";
			b += "<meta http-equiv='X-UA-Compatible' content='IE=edge'></meta>";
			b += "<meta http-equiv='X-UA-Compatible' content='IE=9'></meta>";
			void 0 !== a.liveRailId || void 0 !== a.vpaidJs ? (b = void 0 !== a.vpaidJs ? b + ("<script src='" + a.vpaidJs + "'>\x3c/script>") : b + ("<script src='//cdn-static.liverail.com/js/LiveRail.AdManager-1.0.js?LR_PUBLISHER_ID=" + a.liveRailId + "&LR_FORMAT=application/javascript'>\x3c/script>"),
				b += "<script  type='text/javascript' >var jwplayer = undefined;\x3c/script>") : b = !0 === a.html5 ? b + "<script  type='text/javascript' >var jwplayer = undefined;\x3c/script>" : b + "<script  type='text/javascript' src='//inpagevideo.nl/library/jwplayer/6/8/jwplayer.js'>\x3c/script>";
			b += "<script type='text/javascript' src='//code.jquery.com/jquery-1.11.1.min.js'>\x3c/script>";
			if ("Tablet" === a.browser.device_type || "Smartphone" === a.browser.device_type)
				b += "<script type='text/javascript' src='//code.jquery.com/mobile/1.4.4/jquery.mobile-1.4.4.min.js'>\x3c/script>";
			b += '<link href="' + a.playerCSS + '" media="screen" rel="stylesheet" type="text/css">';
			void 0 != a.campaignCSS && (b += '<link href="' + a.campaignCSS + '" media="screen" rel="stylesheet" type="text/css">');
			void 0 != a.campaignStyle && (b += "<style>" + a.campaignStyle + "</style>");
			b += "<style>";
			b += "</style>";
			b += "</head>";
			b += '<body class="' + a.playerColor + " " + a.browser.device_type.replace(" ", "").toLowerCase() + '">';
			if (!1 !== a.showTopLink || void 0 == a.showTopLink)
				b += "<style>", b += "#top a{ color: " + a.topLinkColor + ";}", b += "</style>",
					b += "<div id='top' >", b += "<a target='_blank'  class='click' href='" + a.link + "' id='adLabel'>" + a.topLinkText + "</a>", b += "</div>";
			void 0 != a.trackingCode && "" != a.trackingCode && (b += "<div style='width: 0px; height: 0px; float: left;'>" + a.trackingCode + "</div>");
			b += "<div id='playerWrapper'>";
			void 0 != a.endImage && (b += "<div id='endImage'>", b += "<img src='" + a.endImage + "' />", b += "<div id='replayButton' >", b += "</div>", b += "</div>");
			b += "<div id='header'></div>";
			b += "<div class='controls' id='countDown'>";
			b += '<div id=\'hoverCounter\'><span id="hoverCounterDesc"></span> <span id="hoverCounterValue"></span></div>';
			b += "</div>";
			b += '<div id="player">';
			b += "<div id='VMG" + a.viewId + "'></div>";
			b += "<div class='controls' id=\"buttons\">";
			if (!0 === a.showMute) {
				var d = "on";
				!0 === a.mute && (d = "off");
				b += "<div id='soundButton' class='" + d + "'></div>"
			}
			!0 === a.closeButton && (b += "<div id='closeButton'  class=''></div>");
			b += "</div>";
			b += "<div class='controls' id='time'>";
			!0 === a.showCounter && (b += "<div id='counter'></div>");
			b += "</div>";
			b += "</div>";
			b += "<div id='footer'><a target='_blank'  href='" + a.link + "' class='click'><span id='footerLeft'></span>Klik hier voor meer informatie<span id='footerRight'></span></a></div>";
			!0 === a.bottomLogo && (a.heightExtra += 37, a.adHeight += 37, b += "<div id='bottomLogo'><a target='_blank'  href='http://www.videomediagroup.com'>BottomLogo</a></div>");
			b += "</div>";
			b += "<div id='trackers' style='display:none'></div>";
			b += "<script>$(document).ready(function(){ var test=top.VmgController[" + a.viewId + "] (document, window, parent, $, jwplayer); })\x3c/script>";
			b += '<div id="infoBox"> <a href="http://www.videomediagroup.com" target="_new" ><span></span>Video Media Groep player</a>';
			b += "</body></html>"
		},
			D = function (a) {
				function c (a) {
					a = 0;
					for (g in n)
						a += 1;
					return a
				}
				d("Finder:: findParentWithMost:: " + a);
				var f = top.document.body.getElementsByTagName(a);
				if (void 0 === f || null === f || f && 0 === f.length)
					d("Finder:: Break Function:: NO " + a + " aanwezig");
				else {
					d("Finder:: " + f.length + " " + a + "gevonden");
					var b = void 0, e = 0, n = [];
					for (g in f)
						void 0 !== f[g].nodeName && f[g].nodeName.toLowerCase() === a.toLowerCase() && !0 !== function (a) {
							for ("string" == typeof a && (a = xGetElementById(a)); "body" != a.nodeName.toLowerCase() && "none" != a.style.display.toLowerCase() &&
								"hidden" != a.style.visibility.toLowerCase(); )
								a = a.parentNode;
							return"body" == a.nodeName.toLowerCase() ? !0 : !1
						}(f[g]) && ("p" === a && void 0 !== f[g].innerText && 25 > f[g].innerText.trim().length ? d("Finder:: < 25" + f[g].innerText.trim()) : void 0 === f[g].parentNode ? d("Finder:: parent is undefined") : ("" === f[g].parentNode.id && (d("Finder:: renaming container"), f[g].parentNode.id = "VMG" + g), void 0 === n[f[g].parentNode.id] && (d("Finder:: create temp2 for: " + f[g].parentNode.id), n[f[g].parentNode.id] = {cnt: 0, txt: 0}), n[f[g].parentNode.id].cnt++,
							"br" === a ? void 0 !== f[g].previousSibling && null !== f[g].previousSibling && void 0 !== f[g].previousSibling.length && (n[f[g].parentNode.id].txt += f[g].previousSibling.length) : "p" === a && (void 0 !== f[g].textContent ? n[f[g].parentNode.id].txt += f[g].textContent.length : void 0 !== f[g].innerText && (n[f[g].parentNode.id].txt += f[g].innerText.length))));
					d("Finder:: sorting parents :: " + c(n));
					if (0 < c(n)) {
						for (g in n) {
							d(g);
							if ("p" === a)
								var m = n[g].cnt * n[g].txt;
							"br" === a && (m = 0, m = n[g].txt * n[g].cnt);
							e < m && (b = g, e = m)
						}
						d(b + " == " + e);
						if (1 <
							e) {
							var e = top.document.getElementById(b), m = e.offsetHeight, w = e.offsetWidth;
							if (0 == m && 0 == w)
								for (g in e.childNodes)
									f = e.childNodes[g], 0 < f.offsetHeight && (m += f.offsetHeight), 0 < f.offsetWidth && (w += f.offsetWidth);
							d("Finder:: #" + b + "OFFSETHEIGHJT " + w + "XX" + m);
							if (100 < m && 100 < w)
								return d("Finder:: #" + b + " :: GEVONDEN, Container met meeste " + a + " ??? paragrafen of breaks"), b;
							d("Finder:: " + b + " MaxID is te klein " + w + "x" + m)
						}
					}
					d("Finder:: geen " + a + " of paragrafen gevonden")
				}
			}, p = function () {
			if ("find" === a.adPosistion) {
				var b = D("p");
				void 0 === b && (b = D("br"));
				if (void 0 !== b)
					d("Finder:: NIEUWE CONTAINER GEVONDEN"), a.adContainer = "#" + b, a.adPosistion = "fit";
				else
					return!1
			}
			d("FindAdPos:: start finding adpos: " + a.adContainer);
			b = window.top.document.querySelector(a.adContainer);
			null === b && (b = top.window.document.querySelector(a.adContainer));
			null === b && (b = document.querySelector(a.adContainer));
			if (null === b)
				return d("FindAdPos:: kan niets vinden"), !1;
			if (1 == a.skipArticleWithVideoContent && void 0 != b.querySelector('iframe[src*="youtube"]'))
				return d("FindAdPos:: youtube content found, not loading IPV"),
					!1;
			var k = b;
			if ("100%" == a.width && "100%" == a.height) {
				var f = document.createElement("div");
				f.id = a.dummyToCalculateWidth;
				f.width = "100%";
				f.height = 0;
				k.appendChild(f);
				k = k.ownerDocument.getElementById(a.dummyToCalculateWidth);
				a.height = k.clientWidth / 16 * 9;
				k.parentNode.removeChild(k)
			} else
				void 0 == a.height && (a.height = a.width / 16 * 9);
			a.adHeight = parseInt(a.height);
			0 != a.showTopLink && (a.heightExtra += a.topLinkHeight, a.adHeight += a.heightExtra);
			d("fitted ad in container");
			if (void 0 == b)
				return!1;
			d("FindAdPos::  " + a.adContainer);
			k = window.top.document.createElement("iframe");
			f = " position: " + a.posistion + "; margin-top:" + a.marginTop + ";margin-bottom:" + a.marginBottom + ";margin-left:" + a.marginLeft + ";margin-right:" + a.marginRight + '"; width="' + a.width;
			f = f + "z-index:" + a.zIndex + " ";
			!0 === a.slideInOnStart && (k.className += " VmgSlideinOnStart");
			k.width = a.width;
			k.height = a.adHeight;
			k.height = 0;
			k.setAttribute("scrolling", "no");
			k.setAttribute("marginwidth", "0");
			k.setAttribute("marginheight", "0");
			k.setAttribute("frameBorder", "0");
			k.setAttribute("allowTransparency",
				"true");
			k.id = "VmgIframe" + a.viewId;
			k.name = "VmgIframe" + a.viewId;
			k.src = "about:blank";
			k.className = k.className + " VmgIframe  " + a.topFrameClass;
			k.setAttribute("style", f);
			d("create iframe");
			if ("append" == a.adPosistion)
				return d("FindAdPos:: append element"), k = b.appendChild(k), c(k);
			if ("prepend" == a.adPosistion)
				return d("FindAdPos:: prepend element"), k = void 0 != b.childNodes[0] ? b.insertBefore(k, b.childNodes[0]) : b.appendChild(k), c(k);
			if ("fit" === a.adPosistion || "btf" === a.adPosistion) {
				d("FindAdPos:: finding adpos below the fold");
				d("FindAdPos:: doc height : " + top.document.documentElement.clientHeight + " Window Hiehgt: " + top.window.innerHeight);
				for (var f = "p br div span h3 img h1 li".split(" "), e = 0; e < f.length; e += 1)
					if (parseInt(e) == e) {
						d("FindAdPos:: finding" + f[e]);
						if ("btf" === a.adPosistion) {
							if (void 0 != a.btf) {
								d("FindAdPos:: Cannot execute btf twice, skipping loopentry ");
								continue
							}
							a.btf = !0;
							var q = window.top.document.querySelectorAll(a.adContainer + ">*")
						} else
							q = window.top.document.querySelectorAll(a.adContainer + ">" + f[e]);
						if (0 === q.length)
							d("FindAdPos:: skip " +
								f[e]);
						else {
							g = 0;
							d("FindAdPos::  .. " + q.length + " found");
							for (var n = 0; n < q.length; n++)
								if ("btf" === a.adPosistion && -1 === f.indexOf(q[n].tagName.toLowerCase()))
									d("FindAdPos:: BTF :: Skip " + q[n].tagName);
								else if (d("FindAdPos:: occurance" + n + " .. " + f[e] + " .. "), void 0 == q[n].getBoundingClientRect)
									d("FindAdPos:: skip");
								else {
									var m = q[n].getBoundingClientRect(), w = m.top;
									if ((void 0 !== w || 0 === w) && top.document.createRange) {
										var h = top.document.createRange();
										null !== q[n].previousSibling && void 0 !== q[n].previousSibling && (h.selectNodeContents(q[n].previousSibling),
											h.getBoundingClientRect && (d("FindAdPos:: rerange"), m = h.getBoundingClientRect(), w = m.top))
									}
									if (void 0 === m.top || 0 === m.top)
										w = q[n].offsetTop;
									if (void 0 === w)
										d("FindAdPos:: skip want hij is undefined");
									else if (q[n].id == a.dummyToCalculateWidth)
										d("elements[k].id == config.dummyToCalculateWidth");
									else if (top.screen.height < w + q[n].clientHeight) {
										d("FindAdPos:: " + top.screen.height + "find the best one @ << " + w + "--" + q[n].clientHeight);
										m = {H1: !0, H2: !0, H3: !0, H4: !0, H5: !0, h1: !0, h2: !0, h3: !0, h4: !0, h5: !0};
										void 0 != q[parseInt(n) +
										1] && void 0 != q[parseInt(n) + 1].previousSibling && null != q[parseInt(n) + 1].previousSibling && void 0 != q[parseInt(n) + 1].previousSibling.previousSibling && null != q[parseInt(n) + 1].previousSibling.previousSibling && q[parseInt(n) + 1].previousSibling.previousSibling.tagName in m && (d("FindAdPos:: broer is h :: + append element"), a.adPosistionMethod = "append");
										if ("append" == a.adPosistionMethod && "br" != f[e] || "li" == f[e])
											d("FindAdPos:: APPENDING"), q[n].appendChild(k);
										else if ("insertBefore" == a.adPosistionMethod || "br" === q[n].nodeName) {
											try {
												d("FindAdPos:: INSERTBEFORE"),
													b.insertBefore(k, q[parseInt(n) + 1])
											} catch (R) {
												d("FindAdPos:: FAILBACK APPEND"), b.appendChild(k)
											}
											d("FindAdPos:: found the best one below the fold " + f[e] + " ..." + g)
										}
										return c(k)
									}
								}
							d("FindAdPos:: can not find a fittable ad posistion between <" + f[e] + "> in ad container to fit below the fold ")
						}
					}
			}
			d("FindAdPos failback:: adPosistion not found below the fold, now appending as default in content container " + a.adContainer);
			d("FindAdPos failback:: failback 1 find content");
			f = "p br div span h3 img h1 li".split(" ");
			for (e in f)
				if (parseInt(e) != e)
					d("FindAdPos:: lengt");
				else if (q = document.querySelectorAll(a.adContainer + ">" + f[e]), 0 < q.length)
					return d("FindAdPos failback:: found element" + f[e]), "br" == f[e] ? (d("FindAdPos:: InsertBefore BREAK:: "), k = b.insertBefore(k, q[q.length - 1])) : k = q[q.length - 1].appendChild(k), c(k);
			d("FindAdPos:: failback 2 append to column");
			k = b.appendChild(k);
			return c(k)
		}, c = function (d) {
			a.iframe = d;
			var c = document.createElement("link");
			c.rel = "stylesheet";
			c.type = "text/css";
			c.href = a.topCSS;
			top.document.getElementsByTagName("head")[0].appendChild(c);
			0 < navigator.appVersion.indexOf("MSIE 9") || 0 < navigator.appVersion.indexOf("MSIE 8") || 0 < navigator.appVersion.indexOf("MSIE 7") ? (d.contentWindow.contents = b, d.src = 'javascript:window["contents"]') : (d.contentWindow.document.open("text/html", "replace"), d.contentWindow.document.write(b), d.contentWindow.document.close());
			return!1
		}, v = function (a) {
			if ((a = a.match(/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#\&\?]*).*/)) && 11 == a[7].length)
				return a[7];
			d("Url incorrecta")
		}, R = function () {
			d("YouTube:: initializing");
			var c = top.document.querySelector('iframe[src*="youtube.com/embed"]');
			if (void 0 == c)
				return d("YouTube:: NoYT Found"), !1;
			if (0 < navigator.appVersion.indexOf("MSIE 8") || 0 < navigator.appVersion.indexOf("MSIE 7") || 0 < navigator.appVersion.indexOf("MSIE 9"))
				return d("YouTube:: OlD IE Not Supported"), !1;
			var b = top.document.createElement("div");
			b.id = "VMGAdContainer";
			b.style.position = "absolute";
			b.style.zIndex = 9999999999;
			a.width = c.width;
			a.height = c.height;
			a.height = c.height;
			a.aspectRatio = c.width / c.height;
			a.adContainer =
				"#" + b.id;
			c.parentNode.insertBefore(b, c);
			c.style.pointerEvents = "none";
			b = document.createElement("script");
			b.src = "http://www.youtube.com/iframe_api";
			top.document.getElementsByTagName("head")[0].appendChild(b);
			top.window.onYouTubeIframeAPIReady = function () {
				var f = v(c.src), b = top.document.createElement("div");
				b.id = "player" + a.viewId;
				b.name = "player" + a.viewId;
				b.style.position = "absolute";
				"Firefox" == a.browser.ua_family ? b.style.visibility = "hidden" : b.style.display = "none";
				c.parentNode.insertBefore(b, c);
				a.preYouTube =
					void 0;
				t._construct();
				a.YouTubePlayer = new top.YT.Player("player" + a.viewId, {height: a.height, width: a.width, videoId: f, events: {onReady: function () {
							d("YouTube:: ReadY");
							"Firefox" == a.browser.ua_family ? top.document.getElementById("player" + a.viewId).style.visibility = "visible" : top.document.getElementById("player" + a.viewId).style.display = "block";
							B.loadPlayer()
						}, onStateChange: function (c) {
							1 != a.preYouTubeStateChange && (a.preYouTubeStateChange = !0, 1 === a.playerReady ? (a.onClose = function () {
								a.YouTubePlayer.playVideo()
							},
								a.YouTubePlayer.pauseVideo(), B.player("start")) : d("De Advertentie was niet snel genoeg geladen."))
						}}})
			}
		}
	}, G = function () {
		var b = a.vastTimeOut, e = [];
		this._construct = function () {
			d("VASTController:: VastController");
			a.fetchedVast = !0;
			void 0 !== a.vast && (a.vastArray = [a.vast], a.vast = void 0);
			if (void 0 !== a.vastArray && 0 < a.vastArray.length) {
				d("VASTController:: vastArray detected" + a.vastArray.length);
				for (var g = 0; g < a.vastArray.length; g++)
					void 0 !== a.vastArray[g] && (e[g] = new p, e[g]._construct(g))
			}
			a.vastTimeout = setTimeout(c,
				b);
			a.vastInterval = setInterval(t, 10)
		};
		var t = function () {
			for (var b in a.vastArray) {
				if (void 0 === a.vastResult[b].vastCompleted)
					return!1;
				d("VASTController:: callbacktimer b ypass");
				c();
				return!1
			}
		}, c = function () {
			d("VASTController:: CallBackTimer VAST " + b + "ms");
			clearTimeout(a.vastTimeout);
			clearInterval(a.vastInterval);
			for (var c in a.vastArray) {
				var e = a.vastArray[c];
				if (void 0 === a.vastResult)
					break;
				if (void 0 === a.vastResult[c] || void 0 === a.vastResult[c].vastCompleted)
					d("VASTController:: NOT COMPLETED " + e);
				else {
					for (var k in a.vastResult[c])
						if ("trackers" !=
							k)
							a[k] = a.vastResult[c][k];
						else if (0 < e.indexOf("/adServ/campaign_po/campaign_po/"))
							a.trackers = void 0, a.trackers = a.vastResult[c].trackers;
						else
							for (var f in a.vastResult[c].trackers) {
								void 0 == a.trackers[f] && (a.trackers[f] = []);
								for (var g = 0; g < a.vastResult[c].trackers[f].length; g++)
									void 0 !== a.vastResult[c].trackers[f][g] && a.trackers[f].push(a.vastResult[c].trackers[f][g])
							}
					d("VASTController:: Parralel Waterfall has choosen :: -> " + e);
					break
				}
			}
			void 0 === a.videoSrc && (d("VASTController:: WATERFALL NO VAST RESPONSE"),
				a.slideInOnStart = !0);
			a.parsingVast = !1;
			a.loadPlayer = void 0;
			B.loadPlayer()
		}, p = function () {
			var c = void 0, l;
			this._construct = function (b) {
				l = b;
				c = String(a.vastArray[l]);
				d("VASTController:: ParseVast :: construct::  vasturl  " + c);
				b = (new Date).getTime();
				var e = encodeURIComponent(top.document.URL);
				c = c.replace("[timestamp]", b);
				c = c.replace("[TIMESTAMP]", b);
				void 0 != e && (c = c.replace("[referrer_url]", e), c = c.replace("[referrer_url]", e), c = c.replace("[page_url]", e), c = c.replace("[PAGE_URL]", e));
				d("VASTController:: " + l + " New VAST Instance " +
					l + " voor " + c);
				void 0 === a.vastResult && (a.vastResult = []);
				void 0 === a.vastResult[l] && (a.vastResult[l] = [], a.vastResult[l].trackers = []);
				return f(c)
			};
			var k = function (c) {
				d("VASTController:: SUB TRACKER" + c);
				void 0 !== a.vastResult[l].trackers[c] ? (d("VASTController:: SubTracker track " + c), (new Image).src = a.vastResult[l].trackers[c][0]) : (d("VASTController:: Parent track " + c), a.track(c))
			}, f = function (c) {
				d("VASTController:: " + l + " getVastXML" + c);
				if (0 < c.indexOf("VmgAdformCallback")) {
					window.VMGvast = e;
					window.VmgAdformCallback =
						function (b) {
							void 0 != b && void 0 != b.vast_url ? (a.vastArray[l] = b.vast_url, window.VMGvast[l]._construct(l)) : d("VASTController:: " + l + " No Vast Response vor " + c)
						};
					var m = document.createElement("script");
					m.setAttribute("type", "text/javascript");
					m.setAttribute("src", c);
					document.body.appendChild(m);
					return!0
				}
				m = document.getElementById("VmgProxyFrame");
				void 0 == m && (m = document.createElement("iframe"), m.height = 0, m.width = 0, m.style.display = "none", m.id = "VmgProxyFrame", m = a.document.body.appendChild(m));
				var m = m.contentWindow ||
					m, g = new m.XMLHttpRequest;
				"undefined" != typeof m.XDomainRequest && (g = new m.XDomainRequest);
				g.ontimeout = function () {
					d("VASTController:: " + l + " Vast The request for " + c + " timeout.");
					1 == g.withCredentials && f(c + (0 < c.indexOf("?") ? "&" : "?") + "withCredentials=false")
				};
				g.onerror = function (a) {
					1 == g.withCredentials && f(c + (0 < c.indexOf("?") ? "&" : "?") + "withCredentials=false")
				};
				g.onabort = function (a) {
					d("VASTController:: " + l + " abort" + c)
				};
				g.onload = function (a) {
					if (void 0 != g.responseXml)
						return p(g.responseXml);
					if (void 0 != g.responseText)
						return window.DOMParser ?
							a = (new DOMParser).parseFromString(g.responseText, "text/xml") : (a = new ActiveXObject("Microsoft.XMLDOM"), a.async = !1, a.loadXML(g.responseText)), p(a)
				};
				g.onloadend = function (a) {
				};
				g.onloadstart = function (a) {
				};
				try {
					g.followRedirects = !0, g.open("GET", c, !0), -1 === c.indexOf("inpagevideo.nl/adS") && -1 === c.indexOf("&withCredentials=false") ? g.withCredentials = !0 : g.withCredentials = !1
				} catch (k) {
				}
				g.followRedirects = !0;
				g.timeout = b;
				g.send()
			}, t = function (c, b) {
				void 0 == a.vastResult[l].trackers[c] && (a.vastResult[l].trackers[c] = []);
				a.vastResult[l].trackers[c].push(b);
				d("VASTController:: addtracker " + c + " :: " + b)
			}, p = function (b) {
				d("VASTController:: " + l + " parse Vast response");
				b = b.getElementsByTagName("Ad");
				if (void 0 == b[0])
					return d("VASTController:: " + l + " NO VAST RESPONSE for " + c), !1;
				var e = b = b[0];
				if (void 0 != e.getElementsByTagName("Tracking")) {
					d("VASTController:: parsetrackers vast trackers");
					for (var q = e.getElementsByTagName("Tracking"), h = 0; h < q.length; h++) {
						var p = q[h].getAttribute("event");
						"midpoint" == p && (p = "midPoint");
						"start" == p &&
							(p = "play");
						if (void 0 != p) {
							var r = q[h].childNodes[0].wholeText.trim();
							t(p, r)
						}
					}
				}
				if (void 0 != e.getElementsByTagName("Impression") && (d("VASTController:: parsetrackers impression"), e = e.getElementsByTagName("Impression"), void 0 != e))
					for (h = 0; h < e.length; h++)
						void 0 != e[h].childNodes[0] && (r = e[h].childNodes[0].wholeText.trim(), t("play", r));
				a:{
					h = b;
					k("adrequest");
					h = h.getElementsByTagName("VASTAdTagURI");
					if (0 < h.length)
						for (r = 0; r < h.length; r++)
							for (e = 0; e < h[r].childNodes.length; e++)
								if (void 0 != h[r].childNodes[e].wholeText) {
									h =
										h[r].childNodes[e].wholeText.replace(/^\s+|\s+$/g, "");
									-1 !== h.indexOf("liverail.com") && -1 !== h.indexOf("LR_SCHEMA=vast2-vpaid") && (d("VASTController:: " + l + "wrapper is a liverail link, exitting vast.js now loading lvierail playuer"), h += "&LR_FORMAT=application/javascript");
									d("VASTController:: " + l + " matching VastWrapper(" + c + ") " + h);
									f(h);
									h = !0;
									break a
								}
					h = !1
				}
				if (!1 === h) {
					h = b;
					d("VASTController:: vast : parseVideo");
					a.vastResult[l].videoSrc = void 0;
					r = h.getElementsByTagName("MediaFile");
					for (e = 0; e < r.length; e++)
						if ("video/mp4" ==
							r[e].getAttribute("type").toLowerCase() || "application/x-shockwave-flash" == r[e].getAttribute("type") || "video/x-mp4" == r[e].getAttribute("type").toLowerCase() || "application/javascript" == r[e].getAttribute("type").toLowerCase() || "video/x-flv" == r[e].getAttribute("type").toLowerCase())
							if (void 0 != r[e].childNodes[0].nodeValue) {
								h = r[e].childNodes[0].nodeValue.replace(/^\s+|\s+$/g, "");
								if (void 0 != h.indexOf("http://")) {
									a.vastResult[l].vpaid = void 0;
									"application/javascript" == r[e].getAttribute("type").toLowerCase() &&
										(a.vastResult[l].vpaidJs = h);
									if ("application/x-shockwave-flash" == r[e].getAttribute("type").toLowerCase()) {
										if (void 0 != a.vastResult[l].videoSrc || "Tablet" == a.browser.device_type || "Smartphone" == a.browser.device_type)
											continue;
										if (-1 !== h.indexOf("liverail.com") && -1 !== h.indexOf("vox-static.liverail.com/swf")) {
											a.vastResult[l].videoSrc = h;
											r = a.vastResult[l];
											h = (h = /[?&]LR_PUBLISHER_ID=([^&]*)/.exec(h)) && decodeURIComponent(h[1].replace(/\+/g, " "));
											r.liveRailId = h;
											break
										}
										a.vastResult[l].vpaid = !0
									}
									if ("video/x-flv" == r[e].getAttribute("type").toLowerCase()) {
										if (void 0 !=
											a.vastResult[l].videoSrc || "Tablet" == a.browser.device_type || "Smartphone" == a.browser.device_type)
											continue;
										a.vastResult[l].html5 = !1
									}
									-1 < r[e].getAttribute("type").toLowerCase().indexOf("mp4") && (a.vastResult[l].html5 = !0);
									a.vastResult[l].videoSrc = h
								}
								void 0 != r[e].childNodes[0].wholeText.trim() && (a.vastResult[l].videoSrc = r[e].childNodes[0].wholeText.trim())
							} else
								for (g in r[e].childNodes)
									void 0 != r[e].childNodes[g].nodeValue && (h = r[e].childNodes[g].nodeValue.replace(/^\s+|\s+$/g, ""), 0 < h.indexOf("ttp://") && (a.vastResult[l].videoSrc =
										h));
					void 0 == a.vastResult[l].videoSrc ? h = !1 : (d("VASTController:: mediaFile:" + a.vastResult[l].videoSrc), h = !0);
					if (1 == h) {
						e = b;
						b = e.getElementsByTagName("ClickThrough");
						for (h = 0; h < b.length; h++)
							for (r = 0; r < b[h].childNodes.length; r++)
								if (void 0 != b[h].childNodes[r].nodeValue && 0 < b[h].childNodes[r].nodeValue.replace(/^\s+|\s+$/g, "").length) {
									a.vastResult[l].link = b[h].childNodes[r].wholeText.trim().replace(/^\s+|\s+$/g, "");
									break
								}
						b = e.getElementsByTagName("ClickTracking");
						for (h = 0; h < b.length; h++)
							for (r = 0; r < b[h].childNodes.length; r++)
								void 0 !=
									b[h].childNodes[r].nodeValue && 0 < b[h].childNodes[r].nodeValue.replace(/^\s+|\s+$/g, "").length && (e = b[h].childNodes[0].wholeText.trim(), t("click", e));
						k("adresponse");
						a.vastResult[l].vastCompleted = !0;
						d("VASTController:: " + l + " vast completed")
					}
				}
			}
		}
	}, E = function (b, e, g, c, p) {
		function t () {
			if (void 0 !== a.expandCountDown && 1 !== complete)
				return y(), !0;
			if (!0 === a.mute && !0 === a.unMuteCountDown && void 0 === a.intervalTimer)
				return n(), !0;
			!0 === a.unMuteOnMouseOver && void 0 === a.unMuteCountDown && !0 === a.mute && 0 < c("#" + k).length &&
				"PLAYING" === f.getState() ? (f.setMute(!1), f.muted = !1) : u("mouseover")
		}
		function l () {
			a.clicked = !0;
			u("click");
			f.pause(!0);
			null === b.getElementById("playButton") && (c("#playerWrapper").prepend('<div id="playButton" class="playButton"></div>'), c("#playButton").click(function () {
				f.play();
				c("#playButton").remove()
			}));
			c("#playButton").show();
			e.open(a.link);
			return!1
		}
		var k = "VMG" + a.viewId, f;
		this._construct = function () {
			a.document = b;
			d("Initializing Controller in IFRAME");
			c("#playerWrapper").mouseover(t);
			c("#playerWrapper").mouseout(r);
			c("#replayButton").click(X);
			c("#closeButton").click(N);
			c("#top").click(l);
			c("#endImage").click(l);
			c(".click").click(l);
			c("#soundButton").click(v);
			Y();
			"Tablet" === a.browser.device_type || "Smartphone" === a.browser.device_type ? (c("body", top.document).bind("scrollstop", A), S(), B.loadPlayer()) : !0 === a.onPageVideo || !0 === a.autoplay || !0 === a.preYouTubeMobile ? (B.loadPlayer(), a.insCreenahndler = setInterval(A, 10)) : (a.insCreenahndler = setInterval(A, 10), c(top).bind("scroll", A))
		};
		this.loadPlayer = function () {
			d("Controller:: LoadPlayer");
			if (void 0 != a.loadPlayer)
				return d("Controller:: LoadPlayer called TWICE EXITTING"), !1;
			a.loadPlayer = !0;
			if (void 0 === a.fetchedVast && (void 0 !== a.vast || void 0 !== a.vastArray)) {
				if (!0 === a.parsingVast)
					return d("Already parsing VAST"), !1;
				if (void 0 === a.fetchedVast && (void 0 !== a.vast || void 0 !== a.vastArray))
					return d("Parsing VAST"), a.parsingVast = !0, (new G)._construct(), !1
			}
			void 0 !== a.videoSrc && u("adresponse");
			void 0 === a.videoSrc || void 0 === a.vast && void 0 === a.vastArray || u("win");
			d("Selecting Player");
			void 0 !== a.liveRailId ||
				void 0 !== a.vpaidJs ? (d("loadPlayer::liverail"), F()) : void 0 !== a.vpaid ? (d("loadPlayer::vpaid"), Z()) : !0 === a.html5 ? (d("loadPlayer::html5"), aa()) : (d("loadPlayer::flash"), E(p));
			c(e).bind("resize", x);
			x();
			ba();
			if (!0 === a.onPageVideo || !0 === a.autoplay || !0 === a.preYouTubeMobile)
				A(), K()
		};
		var v = function () {
			void 0 === f.muted && (f.muted = a.mute);
			!1 === f.muted ? (f.setMute(!0), f.muted = !0, c("#soundButton").removeClass("on"), c("#soundButton").addClass("off")) : (f.muted = !1, f.setMute(!1), a.mute = !1, void 0 !== a.intervalTimer && (clearInterval(a.intervalTimer),
				c("#hoverCounter").hide()), c("#soundButton").removeClass("off"), c("#soundButton").addClass("on"))
		}, x = function () {
			c("body").height(a.adHeight);
			c("#playerWrapper").height(a.height);
			if (!0 === a.onPageVideo || !0 === a.onPageVideoMobile)
				a.iframe.style.height = a.adHeight + "px";
			0 < parseInt(a.iframe.style.height) && 1 != a.closed && (a.height = c(a.iframe).width() / a.aspectRatio, a.adHeight = a.height + a.heightExtra, c(a.iframe).height(a.adHeight), c("video").attr("height", a.height), c("video").height(a.height), c("#playerWrapper").height(a.height),
				c("body").height(a.adHeight))
		}, n = function () {
			void 0 === a.intervalTimerValue && (a.intervalTimerValue = 4);
			c("#hoverCounterValue").html(a.intervalTimerValue);
			c("#hoverCounterDesc").html("Geluid aan in");
			void 0 === a.intervalTimer && (a.intervalTimer = setInterval(function () {
				c("#hoverCounter").show();
				a.intervalTimerValue--;
				0 >= a.intervalTimerValue ? (clearInterval(a.intervalTimer), a.intervalTimer = void 0, f.setMute(!1), a.mute = !1, f.muted = !1, c("#soundButton").removeClass("off"), c("#soundButton").addClass("on"), c("#hoverCounter").hide()) :
					c("#hoverCounterValue").html(a.intervalTimerValue)
			}, 500))
		}, m = function () {
			c(a.iframe).removeClass("VmgSlideinOnStart");
			!1 === c(a.iframe).hasClass("VmgExpand") && (a.aspectRatio !== 16 / 9 && (a.aspectRatioBackup = a.aspectRatio, a.aspectRatio = 16 / 9), c("body").addClass("expanded"), c("video").addClass("expanded"), c(".player").addClass("expanded"), c(".VmgLightBox", top.window.document).show(), c(a.iframe).hide(), d("add VMGExpand Class"), c(a.iframe).addClass("VmgExpand"), c(a.iframe).show());
			c(".VmgLightBox", top.window.document).click(w)
		},
			w = function () {
				c(a.iframe).hasClass("VmgExpand") && (void 0 !== a.aspectRatioBackup && (a.aspectRatio = a.aspectRatioBackup, a.aspectRatioBackup = void 0), c(a.iframe).hide(), c(a.iframe).removeClass("VmgExpand"), c(a.iframe).show(), c("body").removeClass("expanded"), c("video").removeClass("expanded"), c(".player").removeClass("expanded"), c(".VmgLightBox", top.window.document).hide(), 0 == a.complete && (c("#playButton").show(), f.pause()), 1 == a.onPageVideo && a.iframe.parentNode.removeChild(a.iframe));
				return!0
			}, h = function () {
			if (void 0 ==
				a.expandSetStyle) {
				a.expandSetStyle = 1;
				if (void 0 !== a.expandHeight && void 0 !== a.expandWidth)
					var b = a.expandWidth, d = a.expandHeight + a.heightExtra;
				else
					b = .6 * c(top.window).width(), d = b / 16 * 9 + a.heightExtra;
				b = ".VmgExpand{height:" + d + "px !important; width:" + b + "px !important; margin-left: -" + b / 2 + "px !important; margin-top: -" + d / 2 + "px !important;}.VmgExpandStart{height:" + d + "px !important; width:" + b + "px !important; margin-left: -" + b / 2 + "px !important; margin-top: -" + d / 2 + "px !important;}";
				b = "<style>" + b + "</style>";
				c("head",
					top.window.document).append(b);
				c("body", top.window.document).append('<div class="VmgLightBox"></div>')
			}
		}, y = function () {
			if ("Smartphone" == a.browser.device_type || "Tablet" == a.browser.device_type)
				return d("OnMouseOverCountDownNotEnabledIn Mobile Environments"), !1;
			void 0 == a.intervalTimerValue && (a.intervalTimerValue = 4, h(), v());
			void 0 == a.intervalTimerValueStart && (a.intervalTimerValueStart = a.intervalTimerValue);
			c("#hoverCounterValue").html(a.intervalTimerValue);
			c("#hoverCounterDesc").html("Expanding in");
			c("#hoverCounter").show();
			if (void 0 == a.intervalTimer || 0 < a.intervalTimer)
				a.intervalTimer = setInterval(function () {
					a.intervalTimerValue--;
					d("expandcountdowntimer");
					0 >= a.intervalTimerValue ? (clearInterval(a.intervalTimer), a.intervalTimer = void 0, a.expandCountDown = void 0, C(), m(), c("#hoverCounter").hide()) : c("#hoverCounterValue").html(a.intervalTimerValue)
				}, 500)
		}, r = function () {
			void 0 == a.unMuteCountDown && 1 == a.mute && 0 < c("#" + k).length && "PLAYING" == f.getState() && 1 == a.mute && 1 == a.muteOnMouseOut && f.setMute(!0);
			void 0 != a.intervalTimer && (c("#hoverCounter").hide(),
				clearInterval(a.intervalTimer), a.intervalTimer = void 0)
		}, z = function () {
			L();
			d("Preloader");
			if (!0 === a.playOnInScreen)
				return!0;
			void 0 === a.startImage && (d("Genereating THumb"), a.startImage = "http://inpagevideo.nl/thumb/index.php?video=" + encodeURIComponent(a.videoSrc));
			d("LOAD Preloader");
			c("#player").hide();
			c("#playerWrapper").prepend('<img id="startImage" style="background-repeat: no-repeat !Important;   height: auto !Important;   " src="' + a.startImage + '"  />');
			c("#startImage").show();
			c("#playerWrapper").prepend('<div id="playButton" class="playButton"></div>');
			c("#playButton").click(C);
			c("#startImage").click(C)
		};
		this.player = function (a) {
			"start" != a && "play" != a || C();
			"stop" === a && f.stop();
			"pause" === a && f.pause();
			"onPageVideoMobile" === a && (h(), m())
		};
		var C = function () {
			c("#playButton").hide();
			c("#startImage").hide();
			c("#player").show();
			f.play(!0);
			T();
			1 == a.expandOnStart && (h(), m())
		}, E = function (b) {
			if (void 0 === b && void 0 === a.jwplayerLoadInProgress)
				return d("LOADING FLASDH"), a.jwplayerLoadInProgress = !0, e.loadJW = E, b = e.jwplayer, c("head").append('<script src="/library/jwplayer/6/8/jwplayer.js">\x3c/script><script>window.loadJW(jwplayer); \x3c/script>'),
					d("JWPLAYER NOT LOADED< LOADING"), !1;
			if (void 0 === b && void 0 != a.jwplayerLoadInProgress || void 0 != a.playerFlash)
				return!1;
			a.playerFlash = !0;
			if (void 0 === a.videoSrc)
				return d("No Video Found! EXITTING PLAYER"), O(), !1;
			d("flash Loaded");
			b.key = "9LfOgAp3nOlnElnfaZvjorey917UMJakhNDkMR5E/fk=";
			d("jwplayer version" + b.version + " " + k);
			var g = {bufferlength: 1, file: a.videoSrc, primary: "flash", height: "100%", width: "100%", controls: "false", "controlbar.idlehide": "true", icons: "false", mute: a.mute, repeat: "false", wmode: "transparent",
				fallback: !0, analytics: {enabled: !1}};
			b(k).setup(g);
			b(k).onError(function () {
				d("error")
			});
			b(k).onReady(L);
			b(k).onPause(U);
			b(k).onDisplayClick(l);
			b(k).onMute(V);
			b(k).onTime(W);
			b(k).onComplete(J);
			b(k).onBuffer(function () {
				d("buffering" + a.videoSrc)
			});
			b(k).onPlay(P);
			f = b(k);
			b(k).setControls(!1);
			z();
			A()
		}, F = function () {
			d("LiveRail:: LOAD Player");
			if (void 0 === e.getVPAIDAd) {
				if (1 == a.liveRailFramework)
					return setTimeout(loadLiveRail, 10), !0;
				d("LiveRail:: Liverail not Preloaded, Load Liverail Framework");
				c.getScript("http://cdn-static.liverail.com/js/LiveRail.AdManager-1.0.js?",
					function () {
						a.liveRailFramework = !0;
						d("LiveRail:: LOAD Player again");
						F()
					});
				return!1
			}
			a.inscreenHandler = !1;
			a.endImage = void 0;
			var g;
			f = {state: 0};
			g = '<div id="videoWrapper" ><video id="videoElement" muted style="width: 100%; height: 100%;"></video>';
			g += "</div>";
			c("#" + k).html(g);
			var h = e.getVPAIDAd();
			h.handshakeVersion("2.0");
			g = {slot: b.getElementById("videoWrapper"), videoSlot: b.getElementById("videoElement"), videoSlotCanAutoPlay: !0, LR_PUBLISHER_ID: a.liveRailId, LR_MUTED: 1, LR_TAGS: "demo", LR_AUTOPLAY: 1, LR_CONTENT: 5,
				LR_VIDEO_ID: a.campaign_po_id, LR_TITLE: top.document.title};
			if (0 < navigator.appVersion.indexOf("MSIE 8") || 0 < navigator.appVersion.indexOf("MSIE 7"))
				d("LiveRail::loading ie flash"), g.LR_ENVIRONMENT = "flash";
			d("LiveRail::Init liverail VPAID AD");
			h.initAd("100%", "100%", "normal", 600, {}, g);
			var l = !1;
			d("LiveRail:: DEBUG Player");
			h.subscribe(function () {
				d("LiveRail::Vpaid AdStarted");
				l = !0;
				c(top).unbind("scroll");
				c(top).bind("scroll", A);
				A();
				u("play");
				a.start = 1;
				a.time = 1;
				f.state = "PLAYING"
			}, "AdStarted");
			h.subscribe(function () {
				d("adError");
				c(top).unbind("scroll");
				O();
				N();
				return!1
			}, "AdError");
			var m = function () {
				1 == I() && !0 === a.playOnInScreen ? 1 != a.complete && (f.play(), a.videoSrc = !0, K()) : 0 == I() && !0 === a.playOnInScreen && f.pause();
				if (1 == I() && !1 === a.playOnInScreen)
					return d("temporary inscreen handler, to catch the AdStarted event"), u("inscreen")
			};
			h.subscribe(function () {
				a.playerReady = !0;
				u("creativeView");
				d("LiveRail::adLoaded");
				a.interv = setInterval(m, 10);
				return!0
			}, "AdLoaded");
			h.subscribe(function () {
				d("LiveRail::AdImpression")
			}, "AdImpression");
			h.subscribe(function () {
				u("firstQuartile");
				a.firstQuartile = 1
			}, "AdVideoFirstQuartile");
			h.subscribe(function () {
				a.midPoint = 1;
				u("midPoint")
			}, "AdVideoMidpoint");
			h.subscribe(function () {
				a.thirdQuartile = 1;
				u("thirdQuartile")
			}, "AdVideoThirdQuartile");
			h.subscribe(function () {
				u("complete");
				a.complete = 1;
				J()
			}, "AdVideoComplete");
			h.subscribe(function () {
				u("click")
			}, "AdClickThru");
			h.subscribe(function () {
			}, "AdStopped");
			h.subscribe(function (a) {
			}, "AdLog");
			f.getState = function () {
				return f.state
			};
			f.play = function () {
				"PLAYING" !==
					f.state && (d("liveRail :: Play"), h.startAd(), h.resumeAd(), f.state = "PLAYING")
			};
			f.setMute = function () {
				return 0 == l ? !1 : 0 < h.getAdVolume() ? h.setAdVolume(0) : h.setAdVolume(1)
			};
			f.pause = function () {
				if ("PAUSE" != f.state) {
					d("liveRail :: Pause");
					if (0 == l)
						return d("LiveRail: Skip Pause, adLoaded == false"), !1;
					f.state = "PAUSE";
					h.pauseAd()
				}
			};
			f.stop = function () {
				if (0 == l)
					return!1;
				f.state = "PAUSE";
				h.stopAd();
				return!0
			};
			A();
			d("LiveRail::endLoadPlayer")
		}, Z = function () {
			f = {pause: function () {
				}, stop: function () {
				}};
			d("VPAID:: Loading");
			if ("Tablet" === a.browser.device_type || "Smartphone" === a.browser.device_type)
				return!1;
			d("VPAID:: load VMG Vpaid");
			f = {state: 0};
			a.videoSrc = a.videoSrc.trim();
			a.videoSrc = escape(a.videoSrc);
			a.endImage = void 0;
			a.inscreenInterval = setInterval(function () {
				A()
			}, 100);
			c.getScript("http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js", function (b) {
				e.swfobject.embedSWF("//inpagevideo.nl/library/inpagevideo/1/14/assets/swf/~VPAIDFlashWrapper.swf", k, "100%", "100%", "9.0.0", null, {id: k, url: a.videoSrc}, {allowScriptAccess: "always",
					allowFullScreen: "true"}, {id: k}, function (a) {
				})
			});
			var g = b.getElementById(k);
			e.VPAIDFlashWrapperHandler = function (f, e) {
				g = b.getElementById(f);
				d("VPAID " + e);
				"AdLog" === e && d(e);
				if ("VPAIDFlashWrapperReady" == e)
					return g.handshakeVersion("2.0"), g.initAd(853, 480, "fullscreen", {}, {}, null), u("creativeView"), !0;
				if ("AdError" == e)
					return d("VPAID:: AdErrorCatched"), !0;
				if ("AdLoaded" == e)
					return L(), 1 == a.mute && g.adVolumeSet(0), !0;
				if ("AdStarted" === e)
					return void 0 === a.adStarted && (P(), a.adStarted = 1, void 0 !== g && 0 < g.adRemainingTime() &&
						(a.timerVPAID = setInterval(function () {
							if (void 0 === g || void 0 === g.adRemainingTime())
								return clearInterval(a.timerVPAID), !1;
							var b = Math.round(g.adRemainingTime());
							1 < b ? c("#counter").html(b + " " + a.translationSeconds) : c("#counter").html(b + " " + a.translationSecond)
						}, 100))), !0;
				if ("AdVideoStart" === e)
					return u("play"), !0;
				if ("AdVideoFirstQuartile" == e)
					return u("firstQuartile"), !0;
				if ("AdVideoMidpoint" == e)
					return u("midPoint"), !0;
				if ("AdVideoThirdQuartile" == e)
					return u("thirdQuartile"), !0;
				if ("AdVideoComplete" == e)
					return a.complete =
						1, J(), clearInterval(a.timerVPAID), !0;
				if ("AdStopped" == e)
					return N(), !0;
				if ("AdClickThru" == e)
					return u("click"), !0;
				if ("AdDurationChange" == e)
					return!0
			};
			f.play = function () {
				"PAUSE" === f.state ? g.resumeAd() : g.startAd();
				f.state = "PLAYING"
			};
			f.setMute = function () {
				if (0 == a.muted)
					return a.muted = !0, g.adVolumeSet(0);
				a.muted = !1;
				return g.adVolumeSet(1)
			};
			f.pause = function () {
				void 0 !== g.pauseAd ? "PLAYING" === f.state && (d("VPAID:: player state" + f.state + " >?>?"), g.pauseAd(), f.state = "PAUSE") : d("VPAID:: Pause Not Available")
			};
			f.stop =
				function () {
					d("VPAID:: Stop");
					f.state = "PAUSE";
					g.pauseAd()
				};
			f.getState = function () {
				return f.state
			};
			f.getDuration = function () {
				return a.duration
			};
			a.onClose = function () {
				clearInterval(a.inscreenInterval);
				a.closed = 1;
				d("VPAID:: Extra Colose Handler")
			};
			d("VPAID:: loader finished");
			A()
		}, aa = function () {
			d("Loading Native HTML5 Player" + a.videoSrc);
			if (void 0 === a.videoSrc)
				return d("No Video Found! EXITTING PLAYER"), O(), !1;
			var e = "", e = "<video ", e = 1 == a.playOnInScreen ? e + 'preload="auto" ' : e + 'preload="metadata" ';
			!0 === a.mute &&
				(e += " muted  ");
			e += ' webkit-playsinline id="html5player' + k + '" style=" object-fit: cover; background-color:transparent;cursor: pointer; width:100%; height:100%; z-index:' + a.zIndex + '; margin:0px; border: 0px solid #ccc; ;" >';
			e += '<source src="' + a.videoSrc + '" type="video/mp4" />';
			e += "</video>";
			c("#" + k).html(e);
			f = b.getElementById("html5player" + k);
			f.load();
			f.volume = .5;
			V(f.muted);
			1 == a.controls && c("#html5player" + k).attr("controls", !0);
			f.getState = function () {
				return f.state
			};
			f.capture = function (a) {
				d("HTML5 state " +
					f.state)
			};
			f.stop = function () {
				d("fire HTML5 STOP")
			};
			f.getDuration = function () {
				return f.duration
			};
			f.setMute = function (a) {
				f.muted = a
			};
			f.clickHandlerWrapper = function () {
				c("#playButton").hide();
				if (void 0 != f.getState() && "PAUSE" != f.getState())
					return"Tablet" !== a.browser.device_type && "Smartphone" !== a.browser.device_type && l(), !0;
				f.play(!0);
				T();
				return!1
			};
			f.addEventListener("playing", function (a) {
				f.state = a.type.toUpperCase();
				P()
			}, !1);
			f.addEventListener("pause", function (a) {
				f.state = a.type.toUpperCase();
				U()
			}, !1);
			f.addEventListener("ended",
				function (a) {
					f.state = a.type.toUpperCase();
					J()
				}, !1);
			f.addEventListener("canplay", function (a) {
				L()
			}, !1);
			f.addEventListener("timeupdate", function () {
				W({position: f.currentTime})
			});
			c(f).click(f.clickHandlerWrapper);
			z();
			A();
			d("Controller::ENdLoadingPlayer")
		}, T = function () {
			"Smartphone" != a.browser.device_type && "Tablet" != a.browser.device_type || S();
			if ("Smartphone" == a.browser.device_type) {
				var g = function () {
					b.exitFullscreen ? b.exitFullscreen() : b.mozCancelFullScreen ? b.mozCancelFullScreen() : b.webkitExitFullscreen && b.webkitExitFullscreen();
					c("video").get(0).webkitExitFullScreen()
				};
				c(b).on("webkitfullscreenchange mozfullscreenchange fullscreenchange MSFullscreenChange", function () {
					var d = b.MSIsFullScreen || b.mozIsFullScreen || b.webkitIsFullScreen;
					if (void 0 == a.fs)
						return a.fs = d, !1;
					if (a.fs == d)
						return!1;
					f.pause();
					c("#playButton").show();
					g()
				});
				d("setMObuileFullScreen");
				f.play(!0);
				f.requestFullscreen ? f.player() : f.mozRequestFullScreen ? f.mozRequestFullScreen() : f.webkitEnterFullscreen ? f.webkitEnterFullscreen() : f.webkitRequestFullscreen ? f.webkitRequestFullscreen() :
					f.msRequestFullscreen && f.msRequestFullscreen();
				c(e).on("popstate", function () {
					g();
					return!0
				});
				f.addEventListener("ended", function () {
					c("#playButton").hide();
					c("#startImage").hide();
					g()
				}, !0);
				f.addEventListener("pause", function () {
					c("#playButton").show();
					c("#startImage").show();
					c("#player").hide();
					g()
				}, !0)
			}
		}, S = function () {
			void 0 != a.ctaFooter && 0 != a.ctaFooter && (a.ctaFooter = !1, c("#footer").css({display: "block"}), c("#footer a").html(a.ctaFooterMessage), void 0 == a.heightExtraAtfLabel && (a.heightExtraAtfLabel = !0,
				a.heightExtra += c("#footer").height()), c("#footer a").click(function () {
				a.clicked = !0;
				u("click");
				return!0
			}))
		}, L = function () {
			d("playerReadyHandler");
			if (1 === a.playerReady)
				return!0;
			"Tablet" !== a.browser.device_type && "Smartphone" !== a.browser.device_type && A();
			if (void 0 === a.videoSrc)
				return!1;
			a.playerReady = 1;
			u("creativeView");
			if (void 0 != a.onPlayerReady)
				a.onPlayerReady()
		}, V = function (a) {
			1 == a.mute ? (u("mute"), c("#soundButton").removeClass("on"), c("#soundButton").addClass("off")) : (u("unmute"), c("#soundButton").removeClass("off"),
				c("#soundButton").addClass("on"));
			return!0
		}, P = function () {
			K();
			if ("Smartphone" == a.browser.device_type)
				return!0;
			void 0 != a.showCloseButtonAfter && 0 < a.showCloseButtonAfter && (c("#closeButton").hide(), setTimeout(function () {
				c("#closeButton").show()
			}, 1E3 * a.showCloseButtonAfter), a.showCloseButtonAfter = 0)
		}, W = function (b) {
			if (a.time !== Math.round(b.position) && (a.time = Math.round(b.position), !1 !== a.showCounter || void 0 == a.showCounter)) {
				var d = Math.round(f.getDuration() - a.time);
				1 < d ? c("#counter").html(d + " " + a.translationSeconds) :
					c("#counter").html(d + " " + a.translationSecond)
			}
			1 === a.playerReady && 0 < a.time && void 0 === a.play && (a.play = 1, u("play"));
			b = b.position / f.getDuration();
			.25 <= b && .5 > b && void 0 === a.firstQuartile && (a.firstQuartile = 1, u("firstQuartile"));
			.5 <= b && .75 > b && void 0 === a.midPoint && (a.midPoint = 1, u("midPoint"));
			.75 <= b && 1 > b && void 0 === a.thirdQuartile && (a.thirdQuartile = 1, u("thirdQuartile"));
			f.getDuration()
		}, M = function () {
			d("adSlideIN on exit");
			c(e).unbind("resize");
			c(top).unbind("scroll");
			a.complete = 1;
			a.iframe.style.height = 0;
			setTimeout(function () {
				c("#player").remove()
			},
				600)
		}, U = function () {
			void 0 !== a.play && u("pause")
		}, N = function () {
			if (void 0 != a.onClose)
				a.onClose();
			if (c(a.iframe).hasClass("VmgExpand"))
				return w();
			d("closeHandler");
			c(e).unbind("resize");
			c(top).unbind("scroll");
			u("close");
			a.closed = 1;
			f.stop(!0);
			!0 === a.slideInOnClose && (c(a.iframe).addClass("VmgSlideinOnStart"), M());
			M();
			"10px" == a.iframe.style.marginTop && (a.iframe.style.marginTop = "0px");
			return!0
		}, J = function () {
			a.complete = 1;
			if (void 0 != a.onClose)
				a.onClose();
			if (c(a.iframe).hasClass("VmgExpand"))
				return w(), setTimeout(J,
					1E3), !0;
			u("complete");
			f.stop();
			!1 !== a.loadFailBackAtEnd ? (c("#player > *").hide(), c("#playButton").remove(), c("#playButton").hide(), c("#playerWrapper").prepend(a.loadFailBackAtEnd), c("#endImage").show()) : void 0 !== a.endImage ? (c("#player").hide(), c("#playButton").remove(), c("#endImage").show()) : !0 === a.slideInOnClose ? (a.iframe.style.height = 0, setTimeout(function () {
				M()
			}, 1E3)) : M();
			return!0
		}, I = function () {
			var b = c(a.iframe).offset().top, d = c(e.top).scrollTop(), f = top.window.innerHeight || top.document.documentElement.clientHeight ||
				top.document.body.clientHeight;
			if (d - b > a.adHeight / 2 || d + f < b + a.adHeight / 2)
				return!1;
			0 < a.trackers.inscreen.length && (u("inscreen"), a.trackers.inscreen = []);
			return!0
		}, A = function () {
			if (!1 === c(a.iframe).is(":visible"))
				return d("inscreenHandler:: Player not visible"), !1;
			if (!1 === a.inscreenHandler)
				return d("inscreenHandler:: FALSE"), I();
			!0 === a.autoPlay && (I(), d("inscreenHandler:: Player == already atoplay, now playing"), f.play(!0));
			if (1 == a.complete || 1 === a.closed)
				return void 0 === a.completeMessage && (d("inscreenHandler:: video already completed"),
					a.completeMessage = !0), !0;
			if (1 == a.expandOnLoad)
				return a.playOnInScreen = !1, a.expandOnLoad = void 0, a.expandOnStart = void 0, h(), m(), d("inscreenHandler:: ExPandOnLooad + PLAY Command"), f.play(!0), !0;
			if (!1 === I()) {
				if (void 0 == a.playerReady)
					return!1;
				f.pause(!0)
			} else {
				if (void 0 === a.loadPlayer)
					return d("inscreenHandler:: LOADING PLAYER"), B.loadPlayer(), !1;
				if (void 0 == a.playerReady)
					return d("inscreenHandler:: Player not ready"), !1;
				!1 === a.playOnInScreen && !0 === a.slideInOnStart && K();
				if (!1 === a.playOnInScreen)
					return d("disabled play on inscreen exitting"),
						!1;
				if (void 0 !== a.pluginPreloader)
					return void 0 !== a.pluginPreloaderReady && void 0 === a.pluginPreloaderStarted && (a.pluginPreloaderStarted = !0, c(b).trigger("startPluginPreloader")), !1;
				if ("PLAYING" === f.getState())
					return!0;
				"PAUSED" === f.getState() && f.pause(!1);
				0 < a.start && 0 < a.time && u("resume");
				!0 === a.expandOnStart && (h(), m());
				d("play video");
				f.play();
				b.getElementById("html5player" + k) && b.getElementById("html5player" + k).play()
			}
			return!0
		}, K = function () {
			0 == c(a.iframe).height() && void 0 != a.videoSrc && (d("slideInOnNStart"),
				a.iframe.style.height = a.adHeight + "px", "0px" == a.iframe.style.marginTop && (a.iframe.style.marginTop = "10px"))
		}, u = function (b, f) {
			null == f && (f = "");
			if (void 0 == a.trackers[b])
				return d("EventTracker:: Event not found: " + b), !0;
			for (var e = 0; e < a.trackers[b].length; e++)
				void 0 !== a.trackers[b][e] && (d("EventTracker:: " + b + " " + a.trackers[b][e] + f), c("#trackers").append('<img src="' + a.trackers[b][e] + f + '" width="0" height="0" /> '));
			return!0
		};
		a.track = u;
		var X = function () {
			init();
			f.play();
			a.complete = 0;
			c("#player").show();
			c("#endImage").hide()
		},
			Y = function () {
				!0 === a.contextMenu && ("Tablet" === a.browser.device_type && "Smartphone" === a.browser.device_type || c(b).bind("contextmenu", function (a) {
					c("#infoBox").css("left", a.pageX);
					c("#infoBox").css("top", a.pageY);
					c("#infoBox").toggle();
					return!1
				}))
			}, ba = function () {
			if (void 0 !== a.pluginPreloader) {
				d("pluginPreloader");
				c("#player").prepend('<iframe  name="iframePopupContainer"   id="preloaderPlugin" scrolling="no" src="" frameborder="0" style="width:100%; height:100%; position:absolute !important; top:0px; left:0px;"></iframe>');
				var e = b.getElementById("preloaderPlugin");
				d("appended preloader");
				c.get(a.pluginPreloader, function (g) {
					c(b).bind("pluginPreloaderReady", function () {
						a.pluginPreloaderReady = !0;
						A()
					});
					d("pluginPreloader fetch");
					0 < navigator.appVersion.indexOf("MSIE 8") || 0 < navigator.appVersion.indexOf("MSIE 7") ? (e.contentWindow.contents = g, e.src = 'javascript:window["contents"]') : (e.contentWindow.document.open("text/html", "replace"), e.contentWindow.document.write(g), e.contentWindow.document.close());
					d("pluginPreloader READY");
					c(b).bind("endPreloader", function () {
						a.pluginPreloader = void 0;
						c("#preloaderPlugin").remove();
						!0 === a.expandOnStart && (h(), m());
						f.play()
					})
				})
			}
		}, O = function () {
			d("Controller::Failback");
			if (void 0 != a.failBackCode && 2 < a.failBackCode.length) {
				if (void 0 === g.document.getElementById("inPageVideo")) {
					d("Controller::Failback|:: async tag not placed, create in content container");
					var c = b.createElement("div");
					c.id = "inPageVideo";
					var e = top.document.querySelector('script[src*="' + a.REQUEST_URI + '"]') || b.querySelector('script[src*="' +
						a.REQUEST_URI + '"]');
					void 0 != e && e.parentNode.insertBefore(c, e)
				}
				c = g.document.getElementById("inPageVideo");
				void 0 == g.document.getElementById("inPageVideo") && (d("Controller::Failback::#inPageVideo Not Found, selecting body."), c = b.getElementsByTagName("body"), c = c[0]);
				-1 < a.failBackCode.indexOf("document.write") ? (d("Controller::Failback::rewriting document.write"), c.innerHTML = eval(a.failBackCode.replace("document.write", ""))) : (e = b.createElement("script"), e.setAttribute("type", "text/javascript"), e.innerText =
					a.failBackCode, c.appendChild(e));
				a.loadFailBackAtEnd = void 0;
				a.failBackCode = void 0;
				d("loadFailBackAtEnd")
			}
		}
	};
	"undefined" === typeof top.VmgController && (top.VmgController = {empty: 123});
	var B;
	top.VmgController[a.viewId] = function (a, b, d, c, e) {
		B = new E(a, b, d, c, e);
		return B._construct()
	};
	var t = void 0;
	if (!0 === a.autoConstruct && (d("Construct on AutoConstruct" + a.adContainer), void 0 === t))
		return t = !0, t = new x, t._construct(), !0;
	if (0 < top.document.querySelectorAll(a.adContainer).length && void 0 == t)
		return d("Constructing on adcontainer already loaded" +
			a.adContainer), t = !0, t = new x, t._construct(), !0;
	if ("function" != typeof top.document.onload)
		var F = top.document.onload;
	top.document.onload = function () {
		void 0 === t && (d("construct on top.document.onload::" + a.adContainer), t = !0, t = new x, t._construct(), void 0 != F && F());
		return!0
	};
	if ("function" === typeof top.window.onload)
		var y = top.window.onload;
	top.window.onload = function () {
		void 0 === t && (d("construct on top.window.onload::" + a.adContainer), t = !0, t = new x, t._construct(), void 0 !== y && y());
		return!0
	};
	0 == navigator.appVersion.indexOf("MSIE 8") &&
		window.top.document.addEventListener("load", function () {
			void 0 === t && (d("construct on window.top.document.addEventListener::" + a.adContainer), t = new x, t._construct(), void 0 != y && y());
			return!0
		}, !1)
})(VmgConfig, VmgAdConfig);})({}, {});