// JavaScript Document
jQuery.noConflict();
jQuery(document).ready(function($) {
	$("#anneau").click(function() {
		if ($("#logo2").css("display") != "none") {
			$("#logo2").fadeOut("normal", function () {
				$("#choix").fadeIn("normal");
				$("#choix").css("float","left");
			});
		}
		else {
			$("#choix").fadeOut("normal", function () {
				$("#logo2").fadeIn("normal");
				$("#choix").css("float","none");
				$("#anneau img").attr({src: "/templates/v4/images/logo_ahf.png"});
			});
		}
	});

	$("#page").mouseenter(function () {
		$("#choix").fadeOut("normal", function () {
				$("#logo2").fadeIn("normal");
				$("#choix").css("float","none");
				$("#anneau img").attr({src: "/templates/v4/images/logo_ahf.png"});
		});
	});

	//ESPORT
	$("#s_esport").hover(
	  function () {
		$("#anneau img").fadeOut(100, function () {
			$("#anneau img").attr({src: "/templates/v4/images/logo_ehf.png"});
			$("#anneau img").fadeIn(100);
		});
	  }, 
	  function () {
		$("#anneau img").attr({src: "/templates/v4/images/logo_ahf.png"});
	  }
	);

	$("#s_wiki").hover(
	  function () {
		$("#anneau img").fadeOut(100, function () {
			$("#anneau img").attr({src: "/templates/v4/images/logo_wiki.png"});
			$("#anneau img").fadeIn(100);
		});
	  }, 
	  function () {
		$("#anneau img").attr({src: "/templates/v4/images/logo_ahf.png"});
	  }
	);

	$("#s_forums").hover(
	  function () {
		$("#anneau img").fadeOut(100, function () {
			$("#anneau img").attr({src: "/templates/v4/images/logo_forum.png"});
			$("#anneau img").fadeIn(100);
		});
	  }, 
	  function () {
		$("#anneau img").attr({src: "/templates/v4/images/logo_ahf.png"});
	  }
	);
});
