function aumentaImage(capa,img,dir){
	tope=50; // Alto máximo
	imagen=document.getElementById(img);
	objeto=document.getElementById(capa);
	objeto.style.zIndex=99;
	if (imagen.height<=tope){
			imagen.width=parseInt(imagen.width)+2;
			imagen.height=parseInt(imagen.height)+2;
			objeto.style.top=parseInt(objeto.style.top)-2;
			if (dir=="c")
				objeto.style.left=parseInt(objeto.style.left)-1;
			if (dir=="i")
				objeto.style.left=parseInt(objeto.style.left)-2;
	}
	a=setTimeout("aumentaImage('"+capa+"','"+img+"','"+dir+"')",15);
}

function disImage(capa,img,dir){
	clearTimeout(a);
	tope=30; // Alto miniatura
	imagen=document.getElementById(img);
	objeto=document.getElementById(capa);
	objeto.style.zIndex=1;
	while (imagen.height>tope)
	{
		imagen.width=parseInt(imagen.width)-2;
		imagen.height=parseInt(imagen.height)-2;
		objeto.style.top=parseInt(objeto.style.top)+2;
		if (dir=="c")
			objeto.style.left=parseInt(objeto.style.left)+1;
		if (dir=="i")
			objeto.style.left=parseInt(objeto.style.left)+2;
	}
}