jQuery.noConflict();
/* superEffet */
var superTimer = 0;
var superEffet = {
	init : function(){
		jQuery("#header .first_level").children("li.toSlide").hover(function() {
			clearTimeout(superTimer);
			superTimer = setTimeout("superEffet.inHov(\""+jQuery(this).attr("id")+"\")",100);
			// Changer background-position our top ou bottom
			jQuery(this).css({"background-position" : "top", "font-weight" : "bolder"});
		},this.outHov);
	},
	inHov : function(id){
		clearTimeout(superTimer);
		// BOF ajout de la classe active sur les liens haut
		jQuery("#"+id).addClass("active");
		e = jQuery("#"+id).children("ul");
		if (!superEffet.checkQueue(e))
		return false;
		e.slideDown(200);
		e.css({"z-index":"99"});
	},
	outHov : function(){
		clearTimeout(superTimer);
		// BOF retrait de la classe
		jQuery(this).removeClass("active");
		e = jQuery(this).children("ul");
		e.fadeOut(100);
	},
	checkQueue : function(e) {
		n=e.queue("fx").length;
		return (n==0);
	}
};
/* Onload Functions //---------------------------*/
jQuery(document).ready(function(){
	jQuery("li.toSlide").each(function() {
		jQuery(this).attr("id",jQuery(this).attr("class").substring(jQuery(this).attr("class").indexOf(" ")+1,jQuery(this).attr("class").lastIndexOf(" "))+"ID");
		jQuery(this).children("ul").hide();
	});
	
	superEffet.init();
});
