//ouverture popup
//<a href="javascript:OpenPopUp('infoslegales.htm','pp',600,460)">infos l&eacute;gales</a>
function OpenPopUp(MyFile,MyWindow,MyWidth,MyHeight)

//MyFile :		nom du fichier contenant le code HTML du pop-up
//MyWindow :	nom de la fenêtre (ne pas mettre d'espace)
//MyWidth :		entier indiquant la largeur de la fenêtre en pixels
//MyHeight :		entier indiquant la hauteur de la fenêtre en pixels

	{
	var ns4 = (document.layers)? true:false;			//NS 4
	var ie4 = (document.all)? true:false;			//IE 4
	var dom = (document.getElementById)? true:false;	//DOM
	var xMax, yMax, xOffset, yOffset;

	if (ie4 || dom)
		{
		xMax = screen.width;
		yMax = screen.height;
		}
	else if (ns4)
		{
		xMax = window.outerWidth;
		yMax = window.outerHeight;
		}
	else
		{
		xMax = 800;
		yMax = 600;
		}
	xOffset = (xMax - MyWidth)/2;
	yOffset = (yMax - MyHeight)/2;
	window.open(MyFile,MyWindow,'width='+MyWidth
+',height='+MyHeight
+',screenX='+xOffset
+',screenY='+yOffset
+',top='+yOffset
+',left='+xOffset
+',scrollbars=no,resizable=no');
	}
	
function add_bookmark() {
	var ua=navigator.userAgent.toLowerCase();
	var konq=(ua.indexOf('konqueror')!=-1);
	var saf=(ua.indexOf('webkit')!=-1);
	var mac=(ua.indexOf('mac')!=-1);
	var ctrlKey=mac?'Command/Cmd':'CTRL';

	if(window.external && (!document.createTextNode ||(typeof(window.external.AddFavorite)=='unknown'))) {
		window.external.AddFavorite("http://www.bailacaminando.com/","Cours de Salsa à Quimper");
	} else if(konq) {
		alert('Veuillez appuyer sur CTRL + B pour ajouter ce site à vos favoris.');
	} else if(window.opera) {
		void(0);
	} else if(window.home||saf) {
		alert('Veuillez appuyer sur '+ctrlKey+' + D pour ajouter ce site à vos favoris.');
	} else if(!window.print || mac) {
		alert('Veuillez appuyer sur Command/Cmd + D pour ajouter ce site à vos favoris.');    
	} else {
		alert('Votre navigateur internet n\'étant pas reconnu, vous devrez ajouter ce site manuellement à vos favoris.');
	}
}	
	

        	

