function autoHeightAndWidth(obj,h,w){
	$(obj).each( function(){
    if($(this).height() > h && h > 0){
      $(this).height(h);
    }
    if($(this).width() > w && w > 0){
      $(this).width(w);
    }
  });
}
