(function($){
 	function hvmenuAffiche(elm,speed)
	{
		elm.stop(true,true).slideDown(speed);
	}
	
 	function hvmenuMasque(elm,speed)
	{
		elm.stop(true,true).slideUp(speed);	
	}
 
 
    //Attach this new method to jQuery
    $.fn.extend({
         
        //This is where you write your plugin's name
        hvmenu: function(speed,hauteur,float) {
 			
            //Iterate over the current set of matched elements
            return this.each(function() {
				$(this).css('height',hauteur);
				
				$(this).css('position','relative');
				$(this).children('div:eq(0)').css('position','absolute');
				$(this).children('div:eq(0)').css('top','0px');
				$(this).children('div:eq(0)').css(float,'0px');
				
				$(this).children().children('div').each(function(){
					
						$(this).css('float','left');
						
						$(this).children('div:eq(1)').hide();
						/*
						$(this).children('div:eq(0)').css('position','relative');
						$(this).children('div:eq(1)').css('position','absolute');
						*/
												
						$(this).hover(
							function(){},
							function(){hvmenuMasque($(this).children('div:eq(1)'),speed);}
						);	
						
						$(this).children('div:eq(0)').hover(
							function(){hvmenuAffiche($(this).parent().children('div:eq(1)'),speed);},
							function(){}							
						);	
						
						
				});
				
			});
      }
  });
     
//pass jQuery to the function,
//So that we will able to use any valid Javascript variable name
//to replace "$" SIGN. But, we'll stick to $ (I like dollar sign: ) )      
})(jQuery);
