$(function(){  
  $('.item').showSubnav();
})

$.fn.showSubnav = function() {
  return this.each(function(){    
    var box = $(this);
    var text = $('p', this);

    text.css({ position: 'absolute', bottom: '0' }).show();

    box.hover(function(){
      text.slideUp("fast");
    },function(){
      text.slideDown("fast");
    });
  });
}

