<!--
	function popImg(foto, carpeta){
		window.open("/_gestion/ampliarFoto.asp?src="+foto+"&dir="+carpeta, "ampliarFoto", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=yes,copyhistory=no,width=50,height=50,screenX=50,screenY=50,top=50,left=50")
	}
	

//cambio img grande
	function ampliar(d,i){
		rt = "/archivos/"+d+"/"+i+".jpg";
		document.getElementById("img").src = rt;
		document.getElementById("img").alt = i;		
	}
		function ampliar2(d,i,p){
		rt = "/archivos/"+d+"/"+i+".jpg";
		document.getElementById("img").src = rt;
		document.getElementById("img").alt = p;
		document.getElementById("img").title=p;
	}
	
		function ampliar3(d,i,p){
		rt = "/archivos/"+d+"/"+i+".jpg";
		document.getElementById("img").src = rt;
		document.getElementById("img").alt = p;
		document.getElementById("img").title=p;
		//alert(document.getElementById("img").onclick);
		document.getElementById("img").onclick= function onclick(event){ popImg(i,"tattoos/full");};
		//alert(document.getElementById("img").onclick);
	}
// Desplazamiento del slider
	var tempo; // variable temporizador
	var x = 0; // variable de la posición
	var t1 = 2; var t2 = 7;
	var t = 2; // desplazamiento actual
	function iniciar(dir, wvisto){
		wtotal = document.getElementById("tira").offsetWidth;
		tam = wvisto - wtotal; //lo que queda oculto de slide
		tempo=setInterval("mover('"+dir+"',"+tam+")", 10);
	}
	function mover(dir, tam){
		if (dir=='dr' && x>tam ){
			x-=t; // restamos diez a la posición
		}
		if (dir=='iz' && x<0 ){ // x=0 pos inicial
			x+=t; // sumamos diez a la posición
		}
		exis = x+'px';
		document.getElementById("tira").style.left = exis;	
	}
	
	function parar(){
		clearInterval(tempo); // paramos la repetición
	}
//-->
