// JavaScript Document

function inicio() {
	imagenes();
	//animaLogos();
}

function inicio2() {
	ocultarSecciones();
	/*animaLogos();*/
}

function inicio3() {
	/*animaLogos();*/
}

function animaLogos() {
	var pasos=1;
	var frecuencia=30;
	var uno=document.getElementById('uno');
	var dos=document.getElementById('dos');
	var container = document.getElementById('logos');
	var pos1=(document.defaultView && document.defaultView.getComputedStyle) ? document.defaultView.getComputedStyle(uno,'').getPropertyValue("left") : uno.currentStyle ? uno.currentStyle.left : "";
	var pos2=(document.defaultView && document.defaultView.getComputedStyle) ? document.defaultView.getComputedStyle(dos,'').getPropertyValue("left") : dos.currentStyle ? dos.currentStyle.left : "";
	var tamanyo=(document.defaultView && document.defaultView.getComputedStyle) ? document.defaultView.getComputedStyle(container,'').getPropertyValue("width") : container.currentStyle ? container.currentStyle.width : "";
	//alert('posicion1: ' + pos1 + ' posicion2: ' + pos2);
	uno.style.left=parseInt(pos1) + pasos + 'px';
	dos.style.left=parseInt(pos2) + pasos + 'px';
	//alert('pos1: ' + parseInt(pos1) + ' pos2: ' + parseInt(pos2) + ' tamanyo: ' + parseInt(tamanyo));
	if (parseInt(pos1)>=parseInt(tamanyo)) { uno.style.left='-940px'; }
	if (parseInt(pos2)>=parseInt(tamanyo)) { dos.style.left='-940px'; }
	intervalo = setTimeout('animaLogos()',frecuencia);
}
