function Partager () {
	var urlToShare= "http://www.seegmuller.fr";
	PopUp('../fr/partager.php?url='+urlToShare, 'partager', 465, 425);
}
function Mentions_Legales () {
	PopUp('../fr/mentions_legales.php', 'mentions', 465, 400);
}
function Newsletter () {
	PopUp('../fr/newsletter_inscription.php','newsletter',550,170);
}
function Credits () {
	PopUp('../fr/credits.php', 'credits', 450, 300);
}
function Calendrier () {
	PopUp('../pdf/calendrier_2008.pdf', 'calendrier', screen.availWidth, screen.availHeight);
}

//
//POPUP
function PopUp(loc, popName, width, height, scrollAllow) {
	var newWin=null;
	IE = navigator.appName=="Microsoft Internet Explorer";
	NS = navigator.appName=="Netscape";
	bVer = parseInt(navigator.appVersion);
	if (!scrollAllow) scrollAllow="yes";
	var _params = "width="+width+",height="+height+",resizable=auto,scrollbars="+scrollAllow+",status=no";
		// CENTER ON BROWSERS WHICH SUPPORT JSCRIPT 1.2
			if (bVer >= 4) {
					 _left = ( (screen.width-width) >>1 );
					 _top = ( (screen.height-height) >>1 );
			} else {
					 _left = ( (800-width) >>1 );
					 _top = ( (600-height) >>1 );
			}
	
		if (IE) _params += ",top=" + _top + ",left=" + _left;
		else if (NS) _params += ",screenX=" + _left + ",screenY=" + _top;
		newWin = window.open(loc, popName, _params);
		
		if ( newWin!=null && !(IE && bVer<5) ) newWin.focus(); // MSIE4 DOESN'T FOCUS WINDOWS
	}
	
