// JavaScript Document
function goToLink(lien){
	window.location.href = lien;
}

function imprimer(){
	window.print();	
}

function connex(){
jQuery('#connex').fadeIn('slow');
/*jQuery('#connex').animate({
	width: "70%",
    marginLeft: "in",
  }, 1500 );*/
}

function connexDirecteur(){
jQuery('#connexDirecteur').fadeIn('slow');
}


function cacher(){
	if(document.getElementById('erreur').style.display=="none"){
	return false;
	}else{
	jQuery('#erreur').fadeOut('fast');
	
	//Effect.multiple('erreur', Effect.DropOut, {speed:0.07, afterFinishInternal:function(){Effect.Fade('erreur',{duration:0.4})}}); return false;
	}
}

function loadImage2(idImage){
		 var myAjax = $.ajax({
		   type: "GET",
		   url: "php/do_afficher_image.php",
		   data: "idImage="+idImage,
		   success: function(html){
			$('#loadImage').html(html);
		  }
		});

	return false;
}

function ajouterFavoris() {
if ( navigator.appName != 'Microsoft Internet Explorer' )
{ window.sidebar.addPanel("LCPA Passion Aventure Junior","http://www.passion-aventure-junior.com/",""); }
else { window.external.AddFavorite("http://www.passion-aventure-junior.com/","LCPA Passion Aventure Junior"); }
}