var links = $("#video-listing a.movie-play");
 
// loop those links and alter their click behaviour 
for (var i = 0; i < links.length; i++) { 
    
    links[i].onclick = function() { 
         
        // play the clip specified in href- attribute with Flowplayer 
        $f().play(this.getAttribute("href", 2));
        //$("#video-listing a.movie-play").html('Play');
        //this.innerHTML="<em>Playing</em>";
         
        // by returning false normal link behaviour is skipped 
        return false; 
    } 
}
