include("swfobject.js");

var player = null;
function playerReady(thePlayer) {
	player = document.getElementById(thePlayer.id);
}


function createPlayer(thePlayer, theFile) {
	var flashvars = {
		file:theFile, 
		autostart:"true", 
		playlist:"none",
		playlistsize:"0",
		shuffle:"true",
		repeat:"always",
		volume:"0",
		controlbar:"none",		
		screencolor: "f1f1f1",
		stretching: "uniform",
		quality: "true",
		icons: "false",
		displayclick: "none"
	}

	var params = {
		allowfullscreen:"true", 
		allowscriptaccess:"always"
	}

	var attributes = {
		id:thePlayer,  
		name:thePlayer
	}

	swfobject.embedSWF("player.swf", "swfContainer", "615", "175", "9.0.115", false, flashvars, params, attributes);
}	