// Place your application-specific JavaScript functions and classes here
// This file is automatically included by javascript_include_tag :defaults

function playVideo(start_id) {
  player = document.getElementById('ply')
  if(player) {
    player.sendEvent('STOP');    
    player.sendEvent('LOAD', '/videos.rss?start_id=' + start_id); 
  }
  else { 
    window.location.reload();
  };  
}