$(window).load(function() {
	initPlayers();
}); 
function initPlayers() {
	$('div.player').each(function(i){
		// Gets the path to the file
		var mp3Path = $(this).attr('path');
		var title = $(this).attr('title');
		// Creates the flash object
		$(this).flash({
			swf: '/r/modules/sip/swf/apps/SipSoundPlayerApp.swf',
			width:308,
			height:74,
			background:'#eeaa00',
			flashvars: { mp3Path:mp3Path, title:title }
		});	
	});
}
