var gWinVideo = null;

function popupPlayerVideo(path) {


	try {
		if (gWinVideo && gWinVideo.name) {
			gWinVideo.focus();
			return false;
		}
	}
	catch (ex) {
		gWinVideo = null;
	}
	
	param = "wm";	// Par défaut
	
	// Ouverture du player avec le bon plugin !
	if (navigator.userAgent.indexOf('Win') != -1) {
		if (navigator.userAgent.indexOf('MSIE') != -1) {
			if (detectWindowsMedia())
				param="wm";
			else if (detectReal())
				param="rm";
		}
		else {
			if (detectWindowsMedia())
				param="wm";
			else if (detectReal())
				param="rm";
		}
	}
	
	gWinVideo = window.open(path + "/player_popup.php?param=" + param, "player_popup", "left=0,top=0,width=734,height=480,menubar=no,resizable=yes,scrollbars=no,status=no,toolbar=no");
	
	if (gWinVideo)
		gWinVideo.focus();
	
	return false;
}

