// req's jquery-1.2.1 or >

$(document).ready(addRollovers);

function addRollovers() {
	$(".top ul.menu li").mouseover( function() {
		$(this).addClass("selected");
	});
	$(".top ul.menu li").mouseout( function() { 
		$(this).removeClass("selected");
	});
	
	$(".sidebar ul li").mouseover( function() {
		$(this).addClass("selected");
	});
	$(".sidebar ul li").mouseout( function() { 
		$(this).removeClass("selected");
	});

	img = new Image();
	img.src = "/media/template/menu_bg_selected.jpg";

}

function play_audio(object, video_id, player_id) {
	$(object).parents('tr').next().show();
	var fo = new SWFObject("/FlowPlayerDark.swf", "FlowPlayer", "468", "28", "9", "#ffffff", true);
	fo.addVariable("config", "{ playList: [ {overlayId: 'play' }, { url: '/medialibrary/file/" + video_id + "/audio.mp3' } ], loop: false, showMenu: false, initialScale: 'fit', showFullScreenButton: false }");
	fo.useExpressInstall('/firefly/global/flowplayer/expressinstall.swf');
	fo.addParam("allowFullScreen", "true");
	fo.write(player_id);
}