
//******************************************************************************************************************
// wyrownanie w pionie
//******************************************************************************************************************

(function ($) {

$.fn.valign = function() {
	return this.each(function(i){
		$(this).css('visibility','hidden');
		var ah = $(this).height();
		var ph = $(this).parent().height();
		var mh = Math.ceil((ph-ah) / 2);
		$(this).css('margin-top', mh);
		$(this).css('visibility','visible');
	});
};
})(jQuery);
