/*
	Auteur: Amiot Loïc - Décembre 2005 - Diffusion interdite
	Description: Fonctions utilisées pour le mode normale du site
*/

function page_win(src,width,height,scroll,pageType)
//Affiche une page/image dans une nouvelle fenêtre
//src: Source de la page/image
//width: Largeur
//height: Hauteur
//scroll: (yes/no) Scrolling pour la fenêtre?
//pageType: (img/page) Définit l'élément à afficher
{
	width+=32; height+=50;

	{//Gestion de la résolution de l'écran:
		if(screen.height <= 600){
			screenHeightMax=480+50;
		}
		else{
			screenHeightMax=640+50;
		}
		if(height > screenHeightMax){
			height=screenHeightMax; scroll="yes";
		}
	}

	params="directories=no,width="+width+",height="+height;
	x = (screen.width - width) / 2 -10;
	y = (screen.height - height) / 2 -30;
	params +=",left="+x+",screenX="+x+",top="+y+",screenY="+y;
	params +=",resizable=yes,scrollbars="+scroll;

	if(pageType == "img"){
		win=window.open("","img",params);
		win.document.open();
		win.document.write("<!DOCTYPE HTML PUBLIC '-//W3C//DTD HTML 4.0 Transitional//EN'>");
		win.document.write("<html><head><title>Image</title><style type='text/css'>body {margin:5px;}</style></head>");
		win.document.write("<body><center><img src='"+src+"' vspace='5'><br>");
		win.document.write("<a href='javascript:self.close();' style='font-family:Verdana;font-size:12px;'>Fermer la fenêtre</a>");
		win.document.write("</center></body></html>");
		win.document.close();
	}
	else{
		win=window.open(src,"page",params);
	}
}

function show_mel(cQty,cList,mExtra,mText,m3Qty)
{
	document.write("<a href='m&#"+(12*8+1)+";ilto&#58;");
	for(i=0;i<cQty;i++){document.write("&#"+(cList[i]+cQty)+";");}
	document.write("'"+mExtra+">");
	if(mText == ""){
		for(i=0;i<m3Qty;i++){document.write("&#"+(cList[i]+cQty)+";");}
	}
	else{
		document.write(mText);
	}
	document.write("</a>");
}
