					var player = null;
					function playerReady(thePlayer) {	player = window.document[thePlayer.id];}
					function deletePlayer(theWrapper, thePlaceholder, thePlayerId) { 
							swfobject.removeSWF(thePlayerId);
							var tmp=document.getElementById(theWrapper);
							if (tmp) { tmp.innerHTML = "<div id='" + thePlaceholder + "'></div>"; }
					}
					 function createPlayer(theFile, theImage) {
								var flashvars = {
										duration:"0",
										file:theFile, 
										image:theImage, 
										link:"",  
										start:"0", 
										playlist:"none", 
										playlistsize:"180",  
										skin:"",

										autostart:false, 
										bufferlength:"10", 
										displayclick:"play", 
										item:"0",
										mute:"false", 
										quality:"true", 
										repeat:"none", 
										shuffle:"false", 
										stretching:"uniform",
										volume:"90"  
								};
						var params = {
							allowfullscreen:"true", 
							allowscriptaccess:"always",
							wmode:"opaque"
						};

						var attributes = {
							id:"player1",  
							name:"player1"
						};
						swfobject.embedSWF("/media/player.swf", "mediaPlay", "300", "280", "9.0.115", false, flashvars, params, attributes);
					}
					function initPlayer(theFile, theImage) {
								deletePlayer('media', 'mediaPlay', 'player1'); 
								createPlayer(theFile, theImage )
							}