	
	/*	$.fn.vAlign = function() {
		return this.each(function(i){
			$(this).children().wrapAll('<div class="pastel-vAlign" style="position:relative; margin: 0; padding: 0;"></div>');
			var jWrap = $(this).children('div.pastel-vAlign');
			var ph = $(this).innerHeight();

			var dh = jWrap.height();
			var mh = Math.round((ph - dh) / 2);
			if (dh==0) {  return; } // correctife 6eme-route : si élément photo pas encore cahrgé on annule 
			//console.log('ph='+ph+' dh='+dh+' mh= '+mh);
			// jWrap.css('top', mh); 
			jWrap.css('top', mh-8); // correctife 6eme-route
		});
	};
	*/
	
	$.fn.vAlign = function() {
	return this.each(function(i){
		var ah = $(this).height();
		if (ah==0) return; // correctif yannick
		var ph = $(this).parent().height();
		var mh = (ph - ah) / 2;
	$(this).css('margin-top', mh);
	});
};
	

