ayer_b6fa1_bhwf2qmn",wid:"_1467261",uiconf_id:"21813201",flashvars:{doubleClick:{plugin:!0,adTagUrl:prerollUrl},vast:{plugin:!0,postrollUrl:postrollUrl,loadAdsOnPlay:!0},adsOnReplay:!0,metadataProfileId:3063771,requiredMetadataFields:!0},cache_st:"1406844806",entry_id:"1_bhwf2qmn"}),kWidget.addReadyCallback(function(e){function r(e){gemiusStream.event("21813201",a,t,e);var l=r.caller.toString();console.log("gemiusStream.event: "+e+"@"+t+"sec - totalTime: "+i+"sec - Caller: "+l),"playing"==e&&c&&prerollUrl&&!~prerollUrl.indexOf("corelio-preview")&&(console.log("tracking empty ad"),(new Image).src="https://adhese.nieuwsblad.be/track/875367/sl53121/?t="+i,c=!1)}if(!~e.indexOf("incontent")&&!callback1_bhwf2qmn&&~e.indexOf("1_bhwf2qmn")){var l=document.getElementById(e),a="1_bhwf2qmn",n="nGEwQsgXJ7hprExa7E7U9MdvHZF8JkboWpPj7lWEnH3.G7",t=0,i=0,o=0,d="undefined"==typeof MEDIAHUIS?"nw":MEDIAHUIS.config.page_sectionname,c=!0,s=[{name:"_SCT ",value:"news"},{name:"se",value:d},{name:"ct",value:"nw"},{name:"st",value:"vid.wex.frag.vod.free"},{name:"tv",value:"news"}];callback1_bhwf2qmn=!0,l.kBind("metadataReceived",function(){var e,r=l.evaluate("{mediaProxy.entryMetadata}");i=l.evaluate("{mediaProxy.entry.duration}");var a=document.getElementsByClassName("video-source-origin");if(a.length>0)for(var n=a.length;n>=a.length;n--){var t=a[n-1];t&&t.parentNode.removeChild(t)}if(r&&r.Source){var o=r.Source;switch(o){case"ATV":e="atv";break;case"TVL":e="tvl";break;case"TVO":e="tvoost"}if(e){var d="www."+e+".be",c=document.createElement("div"),s=l.parentNode;c.className="video-source-origin",c.innerHTML="Bekijk meer video's van "+o+' op '+d+"",s.parentNode.insertBefore(c,s.nextSibling)}}}),l.kBind("playerUpdatePlayhead",function(e,r){t=t!=Math.round(e)?Math.round(e):t}),l.kBind("changeMedia",function(e,r){gemiusStream.closeStream("21813201",a,t),a=e.entryId,gemiusStream.newStream("21813201",a,i,s,[],n)}),l.kBind("playerStateChange",function(e){"buffering"!=e&&("playing"==e&&0==t&&o||(i>t&&r(e),0==t&&"playing"==e&&(o=1)))}),l.kBind("doStop",function(e,l){i>t&&r("stopped")}),l.kBind("seeked",function(e){i>t&&(t=e,r("seekingStarted"))}),l.kBind("playerPlayEnd",function(e,l){r("complete")}),l.kBind("doReplay",function(e,l){gemiusStream.closeStream("21813201",a,t),t=0,a=e.entryId,gemiusStream.newStream("21813201",a,i,s,[],n),r("playing")}),l.kBind("onAdPlay",function(e,r,l){c=!1})}})