var matteFlag = false;

var player = null;
function playerReady(thePlayer) {
	player = window.document[thePlayer.id];
}


function createPlayer(theFile, theAutostart) {
	var flashvars = {
		file:theFile, 
		autostart:theAutostart
	}

	var params = {
		allowfullscreen:"true",
		allowscriptaccess:"always"
	}

	var attributes = {
		id:"player1",  
		name:"player1"
	}

	swfobject.embedSWF("/player.swf", "placeholder1", "300", "200", "9.0.115", false, flashvars, params, attributes);
}



function showPlayer() {  
	document.getElementById("matte").style.width = 100+"%";
	document.getElementById("matte").style.height = 100+"%"; 
	document.getElementById("wrapper").style.top = 75+"px";
}


function hidePlayer() { 
	player.sendEvent('STOP');
	document.getElementById("wrapper").innerHTML = "<div id='placeholder1'></div>";
	document.getElementById("matte").style.width = 0+"%";
	document.getElementById("matte").style.height = 0+"%";
	document.getElementById("wrapper").style.top = -9999+"px";
}
