$(document).ready (function (){
	var tope;
	$(".fotos_home").each (
		function () {
			tope = Math.floor($(this).width() / 158);
			$(this).find(".art_foto_lista").hide ();
			var pos;
			pos = 0;
			$(this).find(".art_foto_lista").each (
				function () {
					pos = pos + 1;
					if (pos <= tope)
						$(this).show ();
				}
			)
		}
	);
});

