// JavaScript Document
	function PopupCenter(img) {
		titre="Image";
		w=open("",'image','width=50,height=50,toolbar=no,scrollbars=no,resizable=yes');
		w.document.write("<HTML><HEAD><TITLE>"+titre+"</TITLE></HEAD>");
		w.document.write("<SCRIPT language=javascript>function checksize()  { if (document.images[0].complete) {  window.resizeTo(document.images[0].width+12,document.images[0].height+60); window.focus();} else { setTimeout('check()',250) } }</"+"SCRIPT>");
		w.document.write("<BODY onload='checksize()' leftMargin=0 rightMargin=0 bottommargin=0 topMargin=0 marginwidth=0 marginheight=0><a href=\"javascript:self.close()\"><IMG src='"+img+"' border=0></a>");
		w.document.write("");
		w.document.write("</BODY></HTML>");
		w.document.close();
	}
  
    function pop_it(the_form) {
		my_form = eval(the_form)
		window.open("./wait.php", "popup", "height=20,width=400,menubar='no',toolbar='no',location='no',status='no',scrollbars='no'");
		my_form.target = "popup";
		my_form.submit();
	}	
	
	function RunFoo(swf, hauteur, largeur, couleur, nom, version) {
		document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version="+version+",0,0,0\" width=\""+hauteur+"\" height=\""+largeur+"\" id=\""+nom+"\" align=\"middle\">\n");
		document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />\n");
		document.write("<param name=\"wmode\" value=\"transparent\" />\n");
		document.write("<param name=\"movie\" value=\""+swf+"\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\""+couleur+"\" /><embed  wmode=\"transparent\" src=\""+swf+"\" quality=\"high\" bgcolor=\""+couleur+"\" width=\""+hauteur+"\" height=\""+largeur+"\" name=\""+nom+"\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />\n");
		document.write("</object>\n");
	}	
	
	function menuderoulant(cadre,selection){
		eval(cadre+".location='"+selection.options[selection.selectedIndex].value+"'");
	}
	
	function showPopup(popupURL, window, xsize, ysize, isResize, isScroll) 
	{
		msgWindow=open(popupURL,window,'resizable='+isResize+',scrollbars='+isScroll+',width='+xsize+',height='+ysize+'');
		if (msgWindow.opener == null) msgWindow.opener = self;
	}
	
	function  fnControleChamps(monForm)
	{
		with (monForm)
		{
			for (i=0;i<elements.length;i++){
				sNom = elements[i].name;
				if (elements[i].value == "")
				{
					alert("Le champ " + sNom + " n'a pas été renseigné !");
					elements[i].focus();
					return false;
				}
			}
		}
		return true;
	}
	
	function ajoutImage(monForm) {

		if (monForm.Fichier.value == "" ) {
			alert('Vous n\'avez pas selectionné d\'image ');
			return false;
		}
		else return true; 

	}
	
	function supp_photo(adresse) {

		$result = window.confirm('Etes-vous sűr de vouloir supprimer cette photo ?');
		if($result) document.location.href = adresse;
	
	}
	
	function supp_gal(adresse) {

		$result = window.confirm('Etes-vous sűr de vouloir supprimer cette galerie ?');
		if($result) document.location.href = adresse;
	
	}

	function efface_contenu(monForm,texteInitial) {
		if(monForm.motif.value == texteInitial) monForm.motif.value = "";
	}
	
	function efface_contenu_newsletter(monForm,texteInitial) {
		if(monForm.mail.value == texteInitial) monForm.mail.value = "";
	}
	
	function fonction_over(nom)
	{
		nom.style.border = "solid #DDDDDD 1px";
		//cursor:hand;
	}
	
	function fonction_out(nom)
	{
		nom.style.border = "solid white 1px";
	}
	
	/* Origine Script : //PLF-http://www.jejavascript.net/ */
	
	/* var coeff=2;//Coefficient de reduction
	var larg=125;//largeur maxi de l'image
	var haut=105;//hauteur maxi de l'image
	var coeffinit=coeff;
	
	function changer(image) {
		
		
		if (image.width < larg) {
			coeff = coeff-0.2;
			image.width = Math.round(larg/coeff);
			image.height = Math.round(haut/coeff);
			chang=window.setTimeout('changer(image);',60);//vitesse de l'effet
		}
		else {
			window.clearTimeout(chang);
		}
	}
	
	function initial() {
		
		if (image.width > larg/coeffinit) {
			window.clearTimeout(chang);
			coeff = coeff+0.2;
			image.width = Math.round(larg/coeff);
			image.height = Math.round(haut/coeff);
			
			initi=window.setTimeout('initial(image);',60);//vitesse de l'effet
		}
		else {
			window.clearTimeout(initi);
		}
	} */