// to centered open popup
function winOpen(url, popWidth, popHeight){
	popLeft = (screen.width/2)-(popWidth/2);
	popTop = (screen.height/2)-(popHeight/2);
	window.open(url,"popup","height="+popHeight+",width="+popWidth+",status=no,toolbar=no,menubar=no,location=no,resizable=no,titlebar=no,scrollbars=no,fullscreen=no,top="+popTop+",left="+popLeft);
} 

// To recover the variable in the url (flv path)
function extractParam() {
	url = window.location.href;
	var exp=new RegExp("[&?]+","g");
	var exp2=new RegExp("[=]+","g");
	var tabNom=url.split(exp);
	var	tabParam=new Array();
	if (tabNom!=null) {
		for (var i=1;i<tabNom.length;i++){
			var tabTemp=tabNom[i].split(exp2);
			tabParam[tabTemp[0]]=tabTemp[1];
		}
	}
	return tabParam;
}