var txtDiv;
var textColor;
var countingUp;

function launch() {
	pic1= new Image(434,327); 
	pic1.src="/engine/command/home/img/arbutusBW.jpg"; 
	pic2= new Image(434,327); 
	pic2.src="/engine/command/home/img/arbutus.jpg"; 
	
	txtDiv = document.getElementById('enterText');
	
	textColor = 0;
	countingUp = true;
	
	setColor(textColor);
	
	setTimeout('fadein()',3500);

}

function fadein() {
	if (countingUp) {
		textColor = textColor + 2;
		if (textColor >= 255) {
			countingUp = false;
		}
	} else {
		textColor = textColor - 2;
		if (textColor <= 64) {
			countingUp = true;
		}
	}
	setColor(textColor);
	setTimeout('fadein()',15);
}

function setColor(c) {
	d = c.toString(16);
	if (c < 16) {
		d = '0' + d;
	} 
	txtDiv.style.color='#' + d + d + d;
}