flashTimer1=null;
flashColorIndex1 = 0;

flashTimer2=null;
flashColorIndex2 = 0;
function textFlash(){
	var args = textFlash.arguments;
	if(args[0]=="yes"){
		startFlash();
	}
	else{
		endFlash();
	}
}
function startFlash(){
	var colorArr=["red","yellow","blue","green"]
	if(flashColorIndex1>=colorArr.length){flashColorIndex1=0;}
	document.getElementById("flashTextLayer1").style.color=colorArr[flashColorIndex1]
	flashColorIndex1++;
	flashTimer = setTimeout("startFlash()",100);
}
function endFlash(){
	if(window.flashTimer){
		clearTimeout(flashTimer);
	}
}
// JavaScript Document