/*

This function builds an FLV player with JW Player and SWFObject

*/

function BuildPlayer(div_id,splash,movie,width,height){
	// Do not set config options in Flashvars, use paramas
	var flashvars = {
		file: movie,
		image: splash,
		backcolor: "87ab36",
		frontcolor: "FFFFFF",
		lightcolor: "a9d14e",
		stretching: "fill"
	};
	var params = {
		allowfullscreen: true, 
		allowscriptaccess: true, 
		wmode: "opaque"
	};
	var attributes = {};
	
	objPlayer = swfobject.embedSWF("/swf/player.swf", div_id, width, height, "9.0.0", false, flashvars, params, attributes);
	
	//Write it out
	return objPlayer;
}