/* Ces fonctions permettent de gerer le MiniChat              */
/*                                                            */
/* Auteur : GuilleW                                           */

function AfficheChat(id){
  bulle = document.getElementById(id);
  bulle.style.visibility = "visible";
  bulle.style.display = "";
}

function CacheChat(id){
  bulle = document.getElementById(id);
  bulle.style.visibility = "hidden";
  bulle.style.display = "none";
}

/* Navigation dans le Chat */

function Chat_affiche(id){
  if (id == 1){cache = 2;}
  else{cache=1;}
  AfficheChat("zone_recherche_chat_bulle_nav"+id);
  CacheChat("zone_recherche_chat_bulle_nav"+cache);
}

function modeFade(cur,which){
  if(document.getElementById){
		if (which==0){
			if(document.all)
				cur.filters.alpha.opacity=100
			else
				cur.style.setProperty("-moz-opacity", 1, "");
		}else{
			if(document.all)
				cur.filters.alpha.opacity=40
			else
				cur.style.setProperty("-moz-opacity", .4, "");
		}
	}
}
