var aFotos = new Array();
aFotos[1] = "Kit de camara y cable (Prototipo inicial)";
aFotos[2] = "Control Tecnico de la Camara (en feria Piedra 2004)";
aFotos[3] = "Detalle del objetivo de la camara";
aFotos[4] = "Camara ya instalada";
aFotos[5] = "Detalle del prototipo de conexion";
aFotos[6] = "Detalle de la conexion (prototipo)";
aFotos[7] = "Irontec hace posible el sistema de telemantenimiento";

TELE = {

	start : function() {
	
		var oUl = document.getElementById('listaFotos');
		for (var i = 0; (oLi = oUl.getElementsByTagName("li")[i]); i++) {
			if (oLi.firstChild.nodeType!="1") continue;
			oLi.firstChild.href="javascript:;";
			EXTRAS.addEvent(oLi.firstChild,'click',TELE.foto,true);
		}
	},
	foto : function(e) {
		var e = (e) ? e : window.event ;
		var target = (e.target) ? e.target : e.srcElement;
		var oUl = document.getElementById('listaFotos');
		
		for (var i = 0; (oLi = oUl.getElementsByTagName("li")[i]); i++) {
			if (oLi.firstChild.nodeType!="1") continue;
			oLi.firstChild.className="noselected";
		}
		target.className="selected";
		id = target.firstChild.nodeValue;
		document.getElementById('imagencatalogo').src = "/pics/telemantenimiento/"+id+".png";
		document.getElementById('imagencatalogo').alt = aFotos[id];
		document.getElementById('enlacecatalogo').href="/ampliar/"+id+".html";
		return false;	
	}


}

if(document.getElementsByTagName) EXTRAS.addEvent(window,'load',TELE.start,false);