//define the user config

var embedAttrs = { 
		allowScriptAccess: "always",
		width: 500,
		height: 400,
		salign: "tl",
		wmode: "transparent",
		scale: "default",
		flashVars: ""
};

var clientConfig = {
	 
	 swfurl: "/pub/home/CreativaPlayer.swf",
	 flashPlayerVersion: "10.0.0",
	 flashId:"client2",
	 containerId : "clientContainer2",
	
	 position: "absolute",
	 backgroundColor: "",
	 
	 width: "500",
	 height: "500",
	 
	 x:"45%",
	 y:"352",
	 halign:"",
	 valign:"",
	 
	 playAgainWidth:"120",
	 playAgainHeight:"60" ,	
	 
	 embedAttributes: embedAttrs 
};
	
	
function creationComplete() {
	CreativaSystem.initialize();
	addCPlayer();
}

function addCPlayer()  {
	var player = CreativaFactory.createPlayer();
	player.loadPlayer ( clientConfig );
}
 
function closePlayer(){
	var player = CreativaFactory.getPlayer( 1 ) ;
	player.hideVideo();
}

window.onload = creationComplete;	