function showDHTML( e, adresse, numero  ){
	document.getElementById( "modalContainer" ).style.visibility = "visible";
	document.getElementById( "modalContainer" ).style.display = "block";
	document.getElementById( "modalContainerImg" ).src = "photo/"+adresse+"-"+numero+".jpg";	
}

function showDHTMLSIMPLE( e, adresse  ){
	document.getElementById( "modalContainer" ).style.visibility = "visible";
	document.getElementById( "modalContainer" ).style.display = "block";
	document.getElementById( "modalContainerImg" ).src = "photo/"+adresse+".jpg";	
}

function hideDHTML(){
	document.getElementById( "modalContainer" ).style.visibility = "hidden";
	document.getElementById( "modalContainer" ).style.display = "none";
}

$(document).ready(function(){

if(document.all) { 
      document.onselectstart = handleSelectAttempt; 
  } 
  document.onmousedown = handleSelectAttempt;
  
  $(document).bind("contextmenu",function(e){  
	//Votre code ici (par exemple votre menu contextuel
	//Puis désactivation du menu par défaut
	return false;  
});
	
$("span.addthis_button").css({ cursor:"pointer" }).click(function () {
	
	var url = 'http://www.addthis.com/bookmark.php?v=250&amp;username=hvignoble';	
	window.open(url); return false;	 
	
	})
	
})
 
function handleSelectAttempt(e) { 
    var sender = e && e.target || window.event.srcElement; 

    if (window.event) { 
        event.returnValue = false; 
    } 
    return true; 
}

function Facebook(e) {
   document.write('<div><a href="http://fr-fr.facebook.com/people/Huguette-Vignoble/100001532208342" target="_TOP" title="Huguette Vignoble"><img src="http://badge.facebook.com/badge/100001532208342.297.988275999.png" width="120" height="60" style="border: 0px;" /></a></div>');
}

$(document).ready(function(){

$("form#form_mail").submit(function() {
		var probleme=0;
		if($("input#email").val().length<10){ $("input#email").css({background:"#FFCBCA"}).val("Erreur, retapez votre email"); $("input#mail").focus(); probleme = 1; }
		
		if(probleme==0){ 
				$.post("ajout_mail.php",{email: $("input#email").val(), ajax: 'true'}, function(j){
					if(j=="ok"){
						$("div.infomenumail").css({background:"#e1fec4",color:"green"}).html("Votre adresse email est enregistré.<br />Vous serez désormais tenu au courant des évènements de l'artiste par email.");
					}else{
						$("input#email").css({background:"#FFCBCA"}).val("Erreur, retapez votre email"); $("input#email").focus();
					}
				})
		}
		
		return false;
	
	})
})
