/********************
	@author : jpiou
	@date : 30/05/2008
	@description : fonctions utilitaires traitant les images
********************/


	function fixImgs(whichId, maxW) {
			var loop=false;
			//$("div.blockMe2 > div.bordure > table#usersTable > tbody > tr > td > img").each(function(i, elem){
			$("img", "#"+whichId).each(function(i, elem){
				w=$(elem).width();
				h=$(elem).height();
				if (w > maxW) {
					f=1-((w - maxW) / w);
					$(elem).width(w * f);
					$(elem).height(h * f);
				}
			});
			return false;
	}
