
var actual_texto=1;
var tiempo_texto=1500;
var actual_imagen=1;
var tiempo_imagen=10000;


function Iniciar_texto()
{
	
	var N_ele="linea"+actual_texto.toString();
	
	var obj=obtener_objeto(N_ele);
	
	var ant=actual_texto-1;
	
	var N_ant= "linea"+ant.toString();
	
	if (obj==null)
	{
		
		actual_texto=1;
		
		
	}
	if (obtener_objeto(N_ant)!=null)
	{
		
		Esconder_Elemento(N_ant);	
		
	}

	
	Mostrar_Elemento("linea"+actual_texto.toString());
	
	actual_texto= actual_texto+1;

	setTimeout("Iniciar_texto()",tiempo_texto);
	

	
}

		
function Iniciar_imagenes()
{
	var N_ele="img"+actual_imagen.toString();
	var obj=obtener_objeto(N_ele);
	var ant=actual_imagen-1;
	var N_ant= "img"+ant.toString();
	
	if (obj==null)
	{
		actual_imagen=1;
		
	}
	if (obtener_objeto(N_ant)!=null)
	{
		Esconder_Elemento(N_ant);	
	}

	
	Mostrar_Elemento("img"+actual_imagen.toString());
	
	actual_imagen= actual_imagen+1;

	setTimeout("Iniciar_imagenes()",tiempo_imagen);


}
