(function($) {
$.fn.video_nav = function() { 
	var triggers = this;
	// for each element
	return this.each(function() {
		// event handling
	  	$(this).click(function(event) {
			var el = $(this);
			if (el.parent().hasClass('active')) { return false; }
			// remove the active class from all the elements less the clicked
			el.parent().siblings().removeClass('active');
			el.parent().addClass('active');
			swfobject.getObjectById('flashcontent').sendEvent('LOAD', el.attr('href'));
			return false;
	   });
	});
};
})(jQuery);