jQuery(document).ready(function()
{
    jQuery("#menu_horizontal_header, #menu_espace_greta_header").find("li").hover(function()
    {
    	var el = jQuery(".ssmenu:first", this).stop(true, false);
    	if ( jQuery.browser.msie ) {
    		el.show();
    	}
    	else {
    		el.fadeIn(300);
    	}
    },
    function()
    {
    	var el = jQuery(".ssmenu:first", this).stop(true, false);
    	if ( jQuery.browser.msie ) {
    		el.hide();
    	}
    	else {
    		el.fadeOut(300);
    	}
    });
    
    jQuery("#menu_vertical_header").find("li").hover(function() {
		jQuery(".ssmenu:first", this).stop(true, false).slideDown();
	},
	function() {
		jQuery(".ssmenu:first", this).stop(true, false).slideUp();
	});

    if ( jQuery.browser.msie && jQuery.browser.version <= 7)
    {
        jQuery('#content').after(jQuery('#header'));
        jQuery("#header").css({'position':'absolute', 'top':0, 'left':0});
        jQuery('#content').css({'padding-top':jQuery('#header').height()});
    }
    
    jQuery('#recherche .text').bind('click', function(){
    	if (this.value == 'Rechercher') {
    		this.value = '';
    		this.style.color = 'black';
    		this.style.fontWeight = 'normal';
    	}
    });

});


