var videoStarted=function(a){if("jQuery" in window&&"sfm" in window.$){window.$.sfm.trackVideo(a);
if("_gaq" in window){window._gaq.push(function(){window.$.log("Trying to track video "+a+" play event");
window._gaq._getAsyncTracker("pagetracker")._trackEvent("Video","video started","Start playing video with id "+a)
})
}}else{setTimeout(function(){videoStarted(a)
},500)
}},videoEnded=function(a){if("_gaq" in window){window._gaq.push(function(){window.$.log("Trying to track video "+a+" play event");
window._gaq._getAsyncTracker("pagetracker")._trackEvent("Video","video ended","End playback of video with id "+a)
});
return
}},addListeners=function(a){try{var c=a.getPlaylist();
if(a.getPlaylist().length>0){a.addModelListener("STATE","stateMonitor")
}}catch(b){setTimeout(function(){addListeners(a)
},1000)
}},playerReady=function(b){var a=document.getElementById(b.id);
addListeners(a)
},stateMonitor=function(c,d){var b=c.id.replace("_inner",""),a=$("#"+b+"_vid").attr("href").replace("http://www.sport-fm.gr/videos/","");
switch(c.newstate){case"PLAYING":videoStarted(a);
break;
case"COMPLETED":videoEnded(a);
break
}},_sfm=_sfm||{};
