// JavaScript Document

function reducirImagenes(capa,factor){

$("#" + capa +" img").each(function(){

				// set a variable for this, quicker
				var $this = $(this);

				// maximum length is hard-coded here
				//var $maximum = 125;

				// jQuery 1.2.6 has "dimensions" built-in
				var $thewidth = $(this).width();
				var $theheight = $(this).height();
				

				var $thewidth2 = $thewidth*factor;
				var $theheight2 = $theheight*factor;
				
				//alert($thewidth2  + "," + $theheight2 )
				$(this).attr({
							width: $thewidth2
					});
					
				$(this).attr({
					height: $theheight2
				});	

			});
}