$(window).load(function() {	
	   
	(function ($) {
	 //VERTICALLY ALIGN FUNCTION
	$.fn.vAlign = function() {
		return this.each(function(i){
		var ah = $(this).height();
		var ph = $(this).parent().parent().height();
		var mh = (ph - ah) / 2;
		$(this).css('margin-top', mh);
		});
	};
	})(jQuery);	
	
	$('#images img').vAlign();
		
});
