var nextVideoInPlaylistUrl="";var autoplay=false;function refreshSession(){FD.doNielsonImpression(location.href)}function onVideoPlay(a){this.refreshSession()
}function onVideoStop(d){this.refreshSession();if(autoList!=undefined&&autoList.length>0){var b=document.getElementById("featurePlayer");
var e=b.getEmbedCode();for(var a=0;a<autoList.length-1;a++){if(autoList[a]==e){var c=autoList[a+1];b.setEmbedCode(c);autoplay=true
}}}else{if(nextVideoInPlaylistUrl!=""){window.location=nextVideoInPlaylistUrl}}}function onTemplateLoaded(a){try{player=bcPlayer.getPlayer(a);
video=player.getModule(APIModules.VIDEO_PLAYER);video.addEventListener(BCMediaEvent.PLAY,onVideoPlay);video.addEventListener(BCMediaEvent.STOP,onVideoStop)
}catch(b){addBrightcove2Events()}}function addBrightcove2Events(){try{callFlash("addEventListener","streamStart","onVideoPlay");
callFlash("addEventListener","mediaStop","onVideoStop")}catch(a){}}function receiveOoyalaEvent(c,b,a){if(b=="stateChanged"){if(a.state=="playing"){onVideoPlay()
}}if(b=="playComplete"){onVideoStop()}if(b=="apiReady"){var d=document.getElementById(c);if(autoplay){d.playMovie()}}};
