/*
function LoadPlayer( media, comment, file, style, width, height ) {
	var flashvars = { "m" : media, "comment" : comment, "file" : file, "style" : style };
	var params = { bgcolor : "#000000", allowFullScreen : "true", allowScriptAccess : "always", id : "myplayer" };
	new swfobject.embedSWF( "http://new.maguscinema.com/uppod/uppod.swf", "myplayer", width, height, "9.0.115", false, flashvars, params );
}
*/

function LoadPlayer(file) {
	$('#player').attr( 'href', file );
	flowplayer( "player", "/flash/flowplayer/flowplayer-3.2.5.swf", {
		clip: {
			
			// these two configuration variables does the trick
			autoPlay: false, 
			autoBuffering: true
		},
		plugins: {
			controls: {
				url: '/flash/flowplayer/flowplayer.controls-3.2.3.swf',

				// display properties
				bottom: 0,
				height: 24,
				'z-index': 1,
				backgroundColor: '#000000',
				backgroundGradient: 'none',

				// controlbar-specific configuration
				fontColor: '#ffffff',
				timeFontColor: '#333333',
				autoHide: true,

				// which buttons are visible and which are not?
				play: true,
				volume: true,
				mute: true,
				time: true,
				stop: false,
				playlist: true,
				fullscreen: true,

				// scrubber is a well-known nickname for the timeline/playhead combination
				scrubber: true

				// you can also use the "all" flag to disable/enable all controls
			}
		}
	});
}

