/* Mover tickes de noticias*/
	var pos =650;
	var size = 0;
	//alert(document.getElementById("noticias"));
	//var numeroNoticias = document.getElementById("noticias");
	//var cant = numeroNoticias.item(0).value; //

	
	var longitudDiv =  550;
	var numeroNoticias = 0;
	var cant = 0;
	var tol;
	var velocidad = 60;
	function moverBanner(mover) {
		try{
			numeroNoticias = document.getElementById("numeroNoticias");
			cant = numeroNoticias.value;
			if(cant == 1){
				longitudDiv =  651;
			}else{
				longitudDiv =  cant * 400;
			}
			var valor = longitudDiv + "px";
			document.getElementById("listaNoticias").style.width = longitudDiv + "px";
			size =0;
			for ( i=1; i<cant ;i++){	
				size=size+document.getElementById("img"+i).width;
			}
			
			size = longitudDiv;
			if(Math.abs(pos) < size){
				document.getElementById("listaNoticias").style.left = pos +"px";
				pos = pos - 5;
			} else {
				document.getElementById("listaNoticias").style.left = 650 +"px";
				pos = parseInt("650");
			}
			
		}catch(e){
		}
		if(mover){
			to1 = setTimeout("moverBanner(true)", velocidad);
		}
	}
	
	function pararBanner(){
		try{
			if(velocidad != 1000){
				velocidad = 1000;
			}
			//clearTimeout(tol);
		}catch(e){
		}
		//to1 = setTimeout("moverBanner()", 60);
	}
	
	function startMarquesina(){
		velocidad = 60;
		/*try{
			if(velocidad != 60){
				velocidad = 60;
				to1 = setTimeout("moverBanner(true)", velocidad);
			}
		}catch(e){
		}*/
	}
