//////////////// Inicio Barra de estado ////////////////

	var current = 0
	var x = 0
	var speed = 60
	var speed2 = 2000
	var cont = 0

	function initArray(n) {
	  this.length = n;
	  for (var i =1; i <= n; i++) {
		this[i] = ' '
	  }
	}

	typ = new initArray(5)

	typ[0]="*      .::   FOREM   OVIEDO   ::.           .::   FOREM   OVIEDO   ::.           .::   FOREM   OVIEDO   ::.       ";
	typ[1]="*      .::   Página del aula de informática de FOREM Asturias en Oviedo   ::.      ";
	typ[2]="*      .::   Cursos gratuitos para desemplead@s y trabajador@s en activo   ::.      ";
	typ[3]="*      .::   Información sobre sus actividades formativas   ::.      ";
	typ[4]="*  .::   Enlaces a otras webs de interés tanto para parad@s como para trabajador@s en activo   ::.  ";

	function typewrite() {
		var m = typ[current]

		window.status = m.substring(0, x++) + "*"

		if (x >= m.length + 1 && cont>(speed2/speed)) {
			cont = 0
			x = 0
			current++

			if (current > typ.length - 1) {
				current = 0
			}

			setTimeout("typewrite()", speed)
		}
		else if(x >= m.length + 1 && cont<=(speed2/speed)) {
			cont++
			setTimeout("typewrite()", speed)
		}
		else {
			setTimeout("typewrite()", speed)
		}
	}

	typewrite()

//////////////// Fin Barra de Estado ////////////////


