///// WINDOW \\\\\
bodyWidth = screen.availWidth;
bodyHeight = screen.availHeight;
screenWidth = screen.width;
screenHeight = screen.height;

function openPdf(arg_path_str) {
//alert (arg_path_str);
 window.open("pdf/" + arg_path_str,"pdf");  
}
function openVideo(arg_path_str) {
  var top=(screen.height-280)/2;
  var left=(screen.width-772)/2;
	window.open("videos/player/" + arg_path_str + ".html","video","top="+top+",left="+left+",width=772,height=280");
}
function PopupCentrer(page,name,largeur,hauteur,options) {
  var top=(screen.height-hauteur)/2;
  var left=(screen.width-largeur)/2;
  window.open(page,name,"top="+top+",left="+left+",width="+largeur+",height="+hauteur+","+options);
}
function windowOpen( title, url, x, y, width, height, location, menubar, toolbar, scrollbars, status, resizable, fullscreen) {
	var tmpWindow = window.open( url, title, "left=" + x + ",top=" + y + ",width=" + width + ",height=" + height + ",location=" + location + ",menubar=" + menubar + ",toolbar=" + toolbar + ",scrollbars=" + scrollbars + ",status=" + status + ",resizable=" + resizable + ",fullscreen=" + fullscreen);
  tmpWindow.focus();
	return( tmpWindow);
}	
function popupOpen( title, url, width, height, scrollbars) {
		var tmpWindow = windowOpen( title, url, ( screenWidth - width) / 2 - 5, ( screenHeight - height) / 2 - 20, width, height, scrollbars);
	}
