var	Xmax    = screen.width;
var	Ymax    = screen.height;

function glossaire(page) {
	the_URL = "glossaire/" + page;
	window.open(the_URL,"glossaire","toolbar=no,status=no,location=no,resizable=no,scrollbars=no,copyhistory=0,menubar=no,width=310,height=310");
}

function realisations_zoom(image) {
	var X = 350;
	var Y = 350;
	var Xoffset = (Xmax - X) / 2;
	var Yoffset = (Ymax - Y) / 2;
	the_URL = "realisations_zoom.php?image=" + image;
	window.open(the_URL,"realisationszoom","toolbar=no,status=no,location=no,resizable=no,scrollbars=no,copyhistory=0,menubar=no,width=" + X + ",height=" + Y + ",left=" + Xoffset + ",top=" + Yoffset);
}

function promotions_zoom (num_image) {
	var X = 400;
	var Y = 400;
	var Xoffset = (Xmax - X) / 2;
	var Yoffset = (Ymax - Y) / 2;
	the_URL = "promotions_zoom.php?num_image=" + num_image;
	window.open(the_URL,"promotionszoom","toolbar=no,status=no,location=no,resizable=no,scrollbars=no,copyhistory=0,menubar=no,width=" + X + ",height=" + Y + ",left=" + Xoffset + ",top=" + Yoffset);
}

function stocks_zoom (num_image) {
	var X = 400;
	var Y = 400;
	var Xoffset = (Xmax - X) / 2;
	var Yoffset = (Ymax - Y) / 2;
	the_URL = "stocks_zoom.php?num_image=" + num_image;
	window.open(the_URL,"stockszoom","toolbar=no,status=no,location=no,resizable=no,scrollbars=no,copyhistory=0,menubar=no,width=" + X + ",height=" + Y + ",left=" + Xoffset + ",top=" + Yoffset);
}