// JavaScript Document

// + Updates
// + ------------------------------------------------------------
// +
// + 2009-05-14 => Modification complète du script
// +
// + ------------------------------------------------------------

(function($) {
	$(function(){
		/* Document is ready
		---------------------------------------- */

		//
		// Préparation du menu
		//
		$('#navigation > li > ul').hide();

		//
		// Assignation des évènements et transformation
		//
		$('#navigation > li.column').each(function (){
			var subMenu = $('> ul', this);
			var toggle = $('> a', this);
			var n = subMenu.queue("fx");

			toggle.bind('mouseenter', function(){
				subMenu.stop(true, true).slideDown('fast');
				$(this).css({backgroundPosition: '0px -30px', color: '#ffffff'});
			}).end()
			.bind('mouseleave', function(){
				subMenu.stop(true, true).slideUp();
        if(!$(this).hasClass('onglet_actif'))
        {
          toggle.not('.mainmenured').css({backgroundPosition: '0px 0px', color: '#a0a0a0'});
        }
			});
		});
	});
})(jQuery);
