var TVPlayer =  Class.create({
  initialize: function() {
	
	$$('#tv_list ul li').each( function(e) {
	            Event.observe(e, 'mouseover', function() {
	                Element.addClassName(e, 'hover');
	            });
	           Event.observe(e, 'mouseout', function() {
	                Element.removeClassName(e, 'hover');
	            });
	});
  },

  play: function(id){
	new Ajax.Updater('tv_screen', '/home/play/'+id, { method: 'get' });
	}
});
