
	var index=1;
	function changeme(){
		setTimeout(function(){
		index++;
		var newsource = 'img/products/arco_selection1G_'+index+'.jpg'
			$('imgZoom1').src = newsource;
		},10)
	}



function AntSig(evnt){
	obj = Event.element(evnt);
	imagen = obj.getAttribute('imagen');
	index = $(imagen).getAttribute('index');
	cantTotal = $(imagen).getAttribute('cantTotal');
	accion = obj.getAttribute('accion');
	
	setTimeout(function(){
		rutaBase = $(imagen).src;
		rutaBase = rutaBase.substring(0, rutaBase.lastIndexOf('_'));
		if (accion == 'siguiente'){
			index++;
			if (index > cantTotal) index = 1;
		}else{
			index--;
			if (index < 1) index = cantTotal;
		}
		rutaBase = rutaBase + '_' + index + ".jpg";
		
		$(imagen).attributes.index.value = index;
		$(imagen).attributes.src.value = rutaBase;
	}, 10);
}

function initAntSig(){
	listZoom = $$("a.antSig");
	listZoom.each(function(element,indx){
			Event.observe(element,"click",AntSig);
	});
}

Event.observe(window,"load",initAntSig);