if(typeof window.GoogleAnalyticsObject!=undefined){(function(d,e,j,h,f,c,b){d.GoogleAnalyticsObject=f;d[f]=d[f]||function(){(d[f].q=d[f].q||[]).push(arguments)},d[f].l=1*new Date();c=e.createElement(j),b=e.getElementsByTagName(j)[0];c.async=1;c.src=h;b.parentNode.insertBefore(c,b)})(window,document,"script","https://www.google-analytics.com/analytics.js","ga")}var googleAnalyticsString=window.GoogleAnalyticsObject;if(typeof googleAnalyticsString!=="undefined"){var googleAnalyticsFunction=window[googleAnalyticsString];googleAnalyticsFunction("create","UA-46200663-2","auto","jwPlayer");googleAnalyticsFunction("jwPlayer.send","pageview")}(function(c,b){function a(f,i){this.playlistObject=i;this.$el=c(f);this.$relatedWrapper=this.$el.nextAll(".videoPlayerRelatedWrapper");this.$replayBtn=this.$relatedWrapper.find(".videoPlayerReplay");this.$relatedItems=this.$relatedWrapper.find(".videoPlayerRelatedItems");this.countRelatedItems=this.$relatedItems.find(".videoPlayerRelatedItem").length;this.ga=undefined;this.trackingName=undefined;this.jwplayerId=this.$el.attr("id");this.videoId=this.jwplayerId.split("_")[1];this.adTime=undefined;this.adDuration=undefined;this.nstInitAd=false;this.nstInitVideo=false;this.oe24Playing=false;this.oe24LastPlayed="";var j={flashplayer:"/8.1.11/jwplayer.flash.swf",key:"QcCdgx3inM94dJ9izldPrT3TuCMlZ+e+QhYdRg==",displaytitle:false,displaydescription:false,hlshtml:true,androidhls:true,aspectratio:"16:9",width:"100%",stretching:"uniform",preload:"auto",ga:{}};var h={ready:true,error:true,adPlay:true,adRequest:true,play:true,firstFrame:true,beforeComplete:true,complete:true};this.customMessageBoxDone=false;var d=this.$el.data("jwplayer-opts");if(typeof d=="undefined"){d=JSON.parse(this.$el.attr("data-jwplayer-opts"))}this.playerOptions=c.extend(j,d);var e=this.$el.data("jwplayer-opts-event");if(typeof e=="undefined"){e=JSON.parse(this.$el.attr("data-jwplayer-opts-event"))}this.playerOptionsEvent=c.extend(h,e);this.elAgttData=this.$el.data("jwplayer-agtt");if(typeof elAgttData=="undefined"){this.elAgttData=JSON.parse(this.$el.attr("data-jwplayer-agtt"))}var g=this.setupPlayer();if(false===g){return false}if(typeof this.playlistObject!=="undefined"){this.initPlaylists()}this.initNSTJsTracking();this.initGoogleAnalytics();this.oe24TrackingEvent();this.addEventListeners("init")}a.prototype.initPlaylists=function(){var f=this;var j=c(this.playlistObject.box).find(this.playlistObject.clipsSelector);var h=c(this.playlistObject.box).find(".videoLayerClose");var d=c(this.playlistObject.box).find(".videoLayerUp");function i(p){f.oe24Playing=false;p.preventDefault();if("Mobile Column"===f.playlistObject.columnName){c("html, body").animate({scrollTop:0},200)}var k=c(this).data("videosrc");var o=c(this).data("videoposter");var n=c(this).data("livestream");var l=c(this).data("url");var r=c(this).data("published");var q=c(this).data("id");var s=c(this).find(".smallClipTitle").text();f.playerOptions.playlist[0].sources=k;f.playerOptions.playlist[0].image=o;f.playerOptions.playlist[0].title=s;if(n=="1"){f.elAgttData.cliptype="Live"}else{f.elAgttData.cliptype="Sendung"}f.elAgttData.videotitle=s;f.elAgttData.clipurl=l;f.elAgttData.clipreleasetime=r;f.elAgttData.episodeid=q;f.elAgttData.videopartid=q;if(typeof nst!=="undefined"){if(f.nstInitVideo&&f.player.getState()==="playing"){var m=Math.round(f.player.getPosition()*1000);f.nstAPI.setIsPlaying(false,m)}f.nstInitAd=false;f.nstInitVideo=false}f.player.setup(f.playerOptions);f.addEventListeners("click");j.removeClass("active");c(this).addClass("active")}function e(k){f.player.pause()}function g(k){f.player.play()}j.on("click",i);h.on("click",e);d.on("click",g);this.player.on("ready",function(k){c(f.playlistObject.box).fadeIn("slow")});this.player.on("error",function(k){c(f.playlistObject.box).fadeIn("slow")})};a.prototype.addEventListeners=function(G){var x=this;function n(K,J){var I=x.oe24Playing;if(K){if(!I){x.nstAPI.setIsPlaying(K,J);x.oe24Playing=true}}else{if(I){x.nstAPI.setIsPlaying(K,J);x.oe24Playing=false}}}function y(K){var I=undefined;for(var J in x.playerOptions.advertising.schedule){if(x.playerOptions.advertising.schedule[J].tag==K.tag){I=x.playerOptions.advertising.schedule[J].offset;break}}if(I===undefined){return}I=("mid"===I&&"nonlinear"===K.linear)?"overlay":I;x.initNSTTracking(I);x.oe24LastPlayed="werbung";x.nstInitAd=true;x.adTime=0}function o(K){if(x.nstInitAd===false){return}if(x.oe24LastPlayed!="werbung"){var I=undefined;for(var J in x.playerOptions.advertising.schedule){if(x.playerOptions.advertising.schedule[J].tag==K.tag){I=x.playerOptions.advertising.schedule[J].offset;break}}if(I===undefined){return}I=("mid"===I&&"nonlinear"===K.linear)?"overlay":I;x.initNSTTracking(I)}x.oe24LastPlayed="werbung";n(true,x.adTime)}function w(I){n(false,x.adTime)}function s(I){x.adTime=Math.round(I.position*1000);x.adDuration=Math.round(I.duration)}function g(J){if(x.nstInitAd===true){return}var I=J.adposition;I=("mid"===I&&"nonlinear"===J.linear)?"overlay":I;x.initNSTTracking(I);x.oe24LastPlayed="werbung";x.nstInitAd=true;n(true,0)}function h(I){n(false,x.adTime);x.nstInitAd=false;x.adTime=undefined;x.adDuration=undefined}function H(I){x.initNSTTracking();x.oe24LastPlayed="video";x.nstInitVideo=true;n(true,0)}function q(J){if(x.nstInitVideo===false){return}var I=Math.round(x.player.getPosition()*1000);if(x.oe24LastPlayed!="video"){x.initNSTTracking()}n(true,I);x.oe24LastPlayed="video"}function C(J){var I=Math.round(x.player.getPosition()*1000);n(false,I)}function j(J){var I=Math.round(x.player.getPosition()*1000);n(false,I)}function k(J){var I=Math.round(x.player.getPosition()*1000);n(false,I)}function D(J){var K=x.player.getState();var I=Math.round(x.player.getPosition()*1000);switch(K){case"playing":case"buffering":n(true,I);break;case"paused":case"idle":break;default:break}}function t(J){var I=Math.round(x.player.getPosition()*1000);n(false,I);x.nstInitVideo=false}function B(I){var J=(I.mute==true)?1:0;x.nstAPI.setMute(J)}function A(J){var I=(J.fullscreen==true)?1:0;x.nstAPI.setFullscreen(I)}function i(K){var M=c(x.playlistObject.box).find(x.playlistObject.clipsSelector);var J=c(x.playlistObject.box).find(".active");var L=(M.index(J)+1)%M.length;var I=M.get(L);c(I).trigger("click")}function m(J){var I=J.message.toLowerCase();if(I.indexOf("cannot load m3u8:")>=0){var L=x.player.getProvider()["name"];L=(L.indexOf("flash")===0)?"flash":"html5";var K=c.extend(true,{},x.playerOptions);delete K.advertising;if(K.playlist[0].sources.length>1&&"flash"!==L){K.playlist[0].sources.shift()}x.player.setup(K);x.addEventListeners("error")}}function f(I){x.sendAnalyticsEvent("Video","Adition Play",x.playerOptions.playlist[0].title);x.pauseOtherVideos()}function l(I){x.sendAnalyticsEvent("Video","Adition Request",x.playerOptions.playlist[0].title)}function E(I){x.sendAnalyticsEvent("Video","Video fertig abgespielt",x.playerOptions.playlist[0].title)}function z(I){if("true"===x.playerOptions.mute){x.player.setMute(true)}else{x.player.setMute(false)}}function v(I){x.sendAnalyticsEvent("Video","Video inkl. PostRoll fertig abgespielt",x.playerOptions.playlist[0].title);if(x.countRelatedItems>0){x.showRelatedVideos()}}function r(M){x.sendAnalyticsEvent("Video","Videofehler",M.message);if(true===x.customMessageBoxDone){return}var L=document.getElementById(x.jwplayerId);var N=L.parentElement;var I=["Die Wiedergabe des Streams wird von ihrem Web-Browser nicht unterstützt.","Bitte aktivieren sie den Flash Player für ihren Web-Browser."];if(Common.isMobileDevice()){I=I.slice(0,1)}var J,O,K;J=document.createElement("div");J.setAttribute("class","customMessageBox");O=document.createElement("div");O.setAttribute("class","customContentBox");for(var P=0;P<I.length;P++){K=document.createElement("p");K.textContent=I[P];O.appendChild(K)}J.appendChild(O);N.classList.remove("customLiveStreamError");N.classList.add("customLiveStreamError");N.appendChild(J);J.style.display="block";x.customMessageBoxDone=true}function d(I){x.sendAnalyticsEvent("Video","Video gestartet",x.playerOptions.playlist[0].title)}function p(I){x.sendAnalyticsEvent("Video","Video Play",x.playerOptions.playlist[0].title);x.pauseOtherVideos()}function F(I){x.sendAnalyticsEvent("Video","Video Stop",x.playerOptions.playlist[0].title);x.pauseOtherVideos()}function u(I){x.sendAnalyticsEvent("Video","JWPlayer geladen",x.playerOptions.playlist[0].title)}function e(I){I.preventDefault();x.hideRelatedVideos();x.player.play(true)}this.player.on("ready",z);if(true===this.playerOptionsEvent.adPlay){this.player.on("adPlay",f)}if(true===this.playerOptionsEvent.adRequest){this.player.on("adRequest",l)}if(true===this.playerOptionsEvent.beforeComplete){this.player.on("beforeComplete",E)}if(true===this.playerOptionsEvent.complete){this.player.on("complete",v)}if(true===this.playerOptionsEvent.error){this.player.on("error",r)}if(true===this.playerOptionsEvent.firstFrame){this.player.on("firstFrame",d)}if(true===this.playerOptionsEvent.play){this.player.on("play",p)}if(true===this.playerOptionsEvent.ready){this.player.on("ready",u)}this.player.on("stop",F);window.onbeforeunload=function(){j()};if(typeof this.nstAPI!=="undefined"){this.player.on("adPlay",o);this.player.on("adPause",w);this.player.on("adTime",s);this.player.on("adImpression",g);this.player.on("adComplete",h);this.player.on("firstFrame",H);this.player.on("play",q);this.player.on("pause",C);this.player.on("beforeComplete",t);this.player.on("stop",j);this.player.on("seek",k);this.player.on("seeked",D);this.player.on("mute",B);this.player.on("fullscreen",A)}this.player.on("error",m);if(typeof this.playlistObject!=="undefined"){this.player.on("beforeComplete",i)}if(typeof c.on=="function"){this.$replayBtn.on("click",e)}else{this.$replayBtn.click(e)}};a.prototype.pauseOtherVideos=function(){var d=0;while(b(d).id){if(b(d)!==this.player){b(d).pause(true)}d++}};a.prototype.showRelatedVideos=function(){this.$relatedWrapper.removeClass("videoPlayerRelatedWrapperHidden")};a.prototype.hideRelatedVideos=function(){this.$relatedWrapper.addClass("videoPlayerRelatedWrapperHidden")};a.prototype.setupPlayer=function(){if(typeof this.jwplayerId==="undefined"){return false}this.player=b(this.jwplayerId);this.player.setup(this.playerOptions);return true};a.prototype.oe24TrackingEvent=function(){if(typeof oe24Tracking=="object"&&oe24Tracking.currentObject!=this.videoId){oe24Tracking.currentObject=this.videoId;oe24Tracking.trackPageView()}if(typeof spunqTracking=="object"&&spunqTracking.getObjectId()!=this.videoId){spunqTracking.setObjectId(this.videoId);spunqTracking.trackEvent()}};a.prototype.initNSTJsTracking=function(){if(typeof nst==="undefined"){return}var h=false;var g=1;this.nstAPI=new nst.NSTBaseAPI(h,g);this.elAgttData.groupid=nst.generateGroupId();this.elAgttData.clipreferer=window.location.href.toString();var e=this;function k(){if(e.nstInitAd){return e.adTime}var l=Math.round(e.player.getPosition()*1000);l=l;return l}function j(){}function f(){}var d="oe24.video.agtt";if(typeof Common!=="undefined"){d=(Common.isMobileDevice())?"oe24.mobile.agtt":"oe24.video.agtt"}var i=this.jwplayerId;this.nstAPI.initJS(d,i,k,j,f,false)};a.prototype.initNSTTracking=function(f){var i=this.player.getProvider();var l=null;if(typeof i!=="undefined"){var j=i.name;l=(j.indexOf("flash")===0)?"flash":"html5"}var k=this.player.getCurrentQuality();var m=("flash"===l)?undefined:this.player.getQualityLevels();var h=(typeof f!=="undefined")?"Werbung":"Auto";if((typeof m!=="undefined"&&m!=null)&&(typeof k!=="undefined")&&(k>=0)&&(typeof m[k]!=="undefined")&&(typeof m[k].label!=="undefined")){h=m[k].label}var g=c.extend(true,{},this.elAgttData);g.clipquality=h;g.videoduration=("Werbung"===h)?this.adDuration:Math.round(this.player.getDuration());if(typeof f!=="undefined"){g.cliptype=("overlay"===f)?f:f+"roll"}var e=this.player.getPlaylist()[0].sources;var d=(e.length>1)?e[k].file:e[0].file;g.videoname=d;this.nstAPI.init(this.videoId,g)};a.prototype.sendAnalyticsEvent=function(g,e,f){if(typeof this.ga==="undefined"){return false}if(typeof this.trackingName==="undefined"){return false}var d=this.trackingName+".send";if(typeof f==="undefined"){this.ga(d,"event",g,e)}else{this.ga(d,"event",g,e,f)}};a.prototype.initGoogleAnalytics=function(){var d=this;var e=window.GoogleAnalyticsObject;if(typeof e==="undefined"){return false}this.ga=window[e];this.ga(function(){var g=window[e];var f=g.getByName("jwPlayer");if(typeof f==="undefined"){return false}d.trackingName=f.get("name")})};c.fn.jwPlayer=function(d){return this.each(function(){new a(this,d)})}})(jQuery,jwplayer);$(document).ready(function(){var a=document.getElementsByClassName("js-jwplayer8_1_11");if(a.length>0){$(".js-jwplayer8_1_11").jwPlayer()}});function GravityAd(a){this.options=a;this.playerMajorVersion=globalPlayerMajorVersion;var b=this.init();if(false===b){return}this.addPlayerEventListener();this.player.setMute(true)}GravityAd.prototype.addPlayerEventListener=function(){var a=this;function c(){var h;a.bodyClass=a.bodyElement.className;a.bodyElement.className=[a.bodyClass,"withGravityAd"].join(" ");a.addWindowEventListener();a.addMoveEventListener();a.addVolumeEventListener();window.scrollTo(0,0);function g(){var i=document.querySelector("#gravityPlayerContent").clientHeight;if(i>0){clearTimeout(h);a.updatePositions()}else{h=setTimeout(g,50)}}h=setTimeout(g,50)}function f(){a.skyscrapers.style.display="none";a.gravityContainer.style.display="block"}function e(){if(a.options.maxPlayCounter<1){a.player.play(true)}else{if(a.options.maxPlayCounter>=1&&a.currentPlayCounter<a.options.maxPlayCounter){a.currentPlayCounter++;a.player.play(true)}else{a.player.stop();a.skyscrapers.style.display="block"}}}function d(){window.open(a.options.url)}function b(){a.player.remove();a.gravityContainer.style.display="none"}if(6===globalPlayerMajorVersion){a.player.onReady(c);a.player.onPlay(f);a.player.onComplete(e);a.player.onDisplayClick(d);a.player.onSetupError(b)}else{if(7===globalPlayerMajorVersion){a.player.on("ready",c);a.player.on("play",f);a.player.on("complete",e);a.player.on("click",d);a.player.on("setupError",b)}else{if(8===globalPlayerMajorVersion){a.player.on("ready",c);a.player.on("play",f);a.player.on("complete",e);a.player.on("click",d);a.player.on("setupError",b)}}}};GravityAd.prototype.addWindowEventListener=function(){var b=this;function a(){b.updatePositions()}function c(){var d=b.getOpacity();b.gravityContainer.style.opacity=d}if(window.addEventListener){window.addEventListener("scroll",c,false);window.addEventListener("resize",a,false)}else{if(window.attachEvent){window.attachEvent("scroll",c);window.attachEvent("resize",a)}}};GravityAd.prototype.addMoveEventListener=function(){var a=this;function b(c){var d=document.querySelector("#gravityPlayerContent").clientHeight;gravityScrollToY(d,1500,"easeInOutQuint");c.preventDefault();c.stopPropagation()}if(this.gravityMove&&this.gravityMove.addEventListener){this.gravityMove.addEventListener("click",b,false)}else{if(this.gravityMove&&this.gravityMove.attachEvent){this.gravityMove.attachEvent("click",b)}}if(this.gravityMoveLogo&&this.gravityMoveLogo.addEventListener){this.gravityMoveLogo.addEventListener("click",b,false)}else{if(this.gravityMoveLogo&&this.gravityMoveLogo.attachEvent){this.gravityMoveLogo.attachEvent("click",b)}}};GravityAd.prototype.addVolumeEventListener=function(){var a=this;function b(c){if(typeof a.player!=="object"||a.player.getState()==="idle"){return}a.player.setMute(!a.player.getMute());a.gravityVolumeIcon.src=(true===a.player.getMute())?"/images/gravity/gravityVolumeMute.png":"/images/gravity/gravityVolumeSpeaker.png";c.preventDefault();c.stopPropagation()}if(this.gravityVolume&&this.gravityVolume.addEventListener){this.gravityVolume.addEventListener("click",b,false)}else{if(this.gravityVolume&&this.gravityVolume.attachEvent){this.gravityVolume.attachEvent("click",b)}}};GravityAd.prototype.updatePositions=function(){var b=this.getWindowHeight(),a=document.querySelector("#gravityPlayerContent").clientHeight;clientHeight=this.gravityControls.clientHeight,minHeight=Math.min(a,b);this.gravityContainer.style.opacity=this.getOpacity();this.gravityControls.style.top=(minHeight-clientHeight)+"px";this.wrapper.style.marginTop=a+"px"};GravityAd.prototype.getWindowHeight=function(){var a=window.parent.innerHeight||window.parent.document.documentElement.clientHeight||window.parent.document.body.clientHeight;return a};GravityAd.prototype.getOpacity=function(){var c=this,f=c.getWindowHeight(),a=c.gravityContainer.offsetHeight,b=window.pageYOffset||document.documentElement.scrollTop,e=Math.min(a,f),d=e-c.opacityZeroPosition;if(b<=d){opacity=1-(b/f)}else{opacity=0}if(opacity>0){c.skyscrapers.style.display="none";c.player.play(true)}else{c.skyscrapers.style.display="block";c.player.pause(true)}return opacity};GravityAd.prototype.init=function(){this.currentPlayCounter=1;this.opacityZeroPosition=90;this.suspendPlayBack=0.5;this.bodyElement=document.querySelector("body");this.wrapper=document.querySelector("#full");this.gravityContainer=document.querySelector(".gravityContainer");this.gravityPlayerContent=document.querySelector("#gravityPlayerContent");this.skyscrapers=document.querySelector("#Skyscrapers");this.gravityControls=this.gravityContainer.querySelector(".gravityControls");this.gravityVolume=this.gravityControls.querySelector(".gravityVolume");this.gravityMove=this.gravityControls.querySelector(".gravityMove");this.gravityMoveLogo=this.gravityContainer.querySelector(".gravityMoveLogo");this.gravityVolumeIcon=this.gravityVolume.querySelector(".gravityVolumeIcon");this.gravityMoveIcon=this.gravityMove.querySelector(".gravityMoveIcon");this.player=this.initPlayer();if(!this.player){return false}this.header=document.querySelector("header");return true};GravityAd.prototype.initPlayer=function(){var b=this;var d,c=b.gravityPlayerContent.getAttribute("id"),a={file:b.options.video,image:(typeof b.options.image==="undefined"||!b.options.image)?"":b.options.image,type:"mp4",autostart:true,width:"100%",aspectratio:"16:9",mute:true,controls:false,flashplayer:"http://www.oe24.at/misc/jwplayer_8_1_11/jwplayer.flash.swf",key:"QcCdgx3inM94dJ9izldPrT3TuCMlZ+e+QhYdRg=="};if(null===c){return null}d=jwplayer(c);d=d.setup(a);return d};if(typeof jwplayer==="function"){var globalPlayerMajorVersion=jwplayer.version.substr(0,1)*1;if(6===globalPlayerMajorVersion){jwplayer.key="0c5MB4r7nSgjR9tFqI4PsNqh4MQcbFV0duseNQ=="}else{if(7===globalPlayerMajorVersion){jwplayer.key="4BDv8xMllXGBIp2Tj+l3LlDBKqajA2+ZMcou/w=="}else{jwplayer.key="unknown"}}if(typeof globalGravityOptions!=="undefined"&&globalGravityOptions!==null&&typeof globalGravityOptions.video!=="undefined"&&globalGravityOptions.video!==null){new GravityAd(globalGravityOptions)}}window.requestAnimFrame=(function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||function(a){window.setTimeout(a,1000/60)}})();function gravityScrollToY(i,c,f){var h=window.scrollY,i=i||0,c=c||2000,f=f||"easeOutSine",a=0;var b=Math.max(0.1,Math.min(Math.abs(h-i)/c,0.8));var g=Math.PI/2,e={easeOutSine:function(j){return Math.sin(j*(Math.PI/2))},easeInOutSine:function(j){return(-0.5*(Math.cos(Math.PI*j)-1))},easeInOutQuint:function(j){if((j/=0.5)<1){return 0.5*Math.pow(j,5)}return 0.5*(Math.pow((j-2),5)+2)}};function d(){a+=1/60;var k=a/b;var j=e[f](k);if(k<1){requestAnimFrame(d);window.scrollTo(0,h+((i-h)*j))}else{window.scrollTo(0,i)}}d()};