
$(document).ready(function(){
$('#icons .icon').hover(
    function()
    {
        var t = $(this).attr('rel');
        $(this).stop().animate({opacity: 1.0}, 150);
        $(this).parent().find('.description').text(t);
    },
    function ()
    {
        $(this).stop().animate({opacity: 0.6}, 1200);
        $(this).parent().find('.description').text('');
    }
  );

}
);

(function ($) {
// VERTICALLY ALIGN FUNCTION
$.fn.vAlign = function() {
	return this.each(function(i){
	var ah = $(this).height();
	var ph = $(this).parent().height();
        alert (ph);
	var mh = Math.ceil((ph-ah) / 2);
	$(this).css('top', mh);
	});
};
})(jQuery);


