	/* 
		Syntax: status_text('Text...', 100, 150, -99);
		The last number must be the 1-width
	*/
		
	function status_text(text, width, speed, position) {
		position++;
		if(position == text.length) {
			position = 1-width;
		}
		var padded_text = "";
		if(position < 0) {
		  for(var i = 1; i <= Math.abs(position); i++) {
		    padded_text = padded_text + " ";
		  }
		  padded_text = padded_text + text.substring(0, width, - i + 1);
		}
		else {
		  padded_text = padded_text + text.substring(position, width + position);
		}
		window.status = padded_text;
		setTimeout("status_text('" + text + "', " + width + ", " + speed + ", " + position + ")", speed);
	}
		    
		   
