// YFT - IMP. MESSAGES. //

function YFT() {
	var FadeInterval = 150;
	var StartFadeAt = 7;
	DoFade(StartFadeAt, 'message', FadeInterval);
}

function DoFade(colorId, targetId, FadeInterval) {
	var FadeSteps = new Array();
		FadeSteps[1] = "ff";
		FadeSteps[2] = "ee";
		FadeSteps[3] = "dd";
		FadeSteps[4] = "cc";
		FadeSteps[5] = "bb";
		FadeSteps[6] = "aa";
		FadeSteps[7] = "99";
		
	if (colorId >= 1) {
		if (document.getElementById(targetId)) {
			document.getElementById(targetId).style.backgroundColor = "#ffff" + FadeSteps[colorId];

			colorId--;
			setTimeout("DoFade("+colorId+",'"+targetId+"',"+FadeInterval+")", FadeInterval);
	 }
	}
}