{

/* A status bar-on kiírt szöveg megjelenítése. */

function initArray() {
	this.length = initArray.arguments.length;
	for (var i = 0; i < this.length; i++) {
		this[i] = initArray.arguments[i];
  	}
}

var text = new initArray(	"Üdvözöljük honlapunkon!",
			 				"ENDORPHIN PRODUKCIÓ - fotó, ruhakészítés, kölcsönzés, táncoktatás, rendezvények."
						);

var SPEED = 50;
var SPEED2 = 1000;
var whereAt = 0;
var whichOne = 0;

function waveb() {
	var before = text[whichOne].substring(0,whereAt);
	var wave = text[whichOne].substring(whereAt,whereAt+1).toUpperCase();

	window.status = before + wave;

	if (whereAt == text[whichOne].length) {
		whereAt = 0;
		++whichOne;
		if (whichOne == text.length) whichOne = 0;
	  	setTimeout("waveb()",SPEED2);
	}
 	else {
		whereAt++;
		setTimeout("waveb()",SPEED);
	}
}

waveb();

}