flashBaseColor = "#0000FF"; 
flashColor = "#00FFFF"; 
num = 0; 
num2 = 0; 
num3 = 0; 
num4 = flashColor; 
function startflash() { 
message = flash.innerText; 
flash.innerText = ""; 
for(i = 0; i != message.length; i++) { 
flash.innerHTML += "<span id=\"flashd\" style=\"color:"+flashBaseColor+"\">"+message.charAt(i)+"<\/span>"}; 
flash2(); 
} 
function flash2() { 
if(num != message.length) { 
document.all.flashd[num].style.color = flashColor; 
num++; 
setTimeout("flash2()", 100); 
} 
else { 
num = 0; 
num2 = message.length; 
setTimeout("flash4onev()", 2000); 
} 
} 
function flash4onev() { 
document.all.flashd[num].style.color = flashBaseColor; 
document.all.flashd[num2-1].style.color = flashBaseColor; 
if(Math.floor(message.length / 2) + 1 != num2) { 
num++; 
num2--; 
setTimeout("flash4onev()", 50); 
} 
else { 
setTimeout("flash5()", 50); 
} 
} 
function flash5() { 
if(num3 != message.length && num3 != message.length+1) { 
document.all.flashd[num3].style.color = flashColor; 
num3 = num3 + 2; 
setTimeout("flash5()",100); 
} 
else { 
setTimeout("flash52()", 50); 
} 
} 
function flash52() { 
if(num3 == message.length) { 
num3++; 
flash52a(); 
} 
else { 
num3--; 
flash52a(); 
} 
} 
function flash52a() { 
if(num3 != 1) { 
num3 = num3 - 2; 
document.all.flashd[num3].style.color = flashColor; 
setTimeout("flash52a()", 100); 
} 
else { 
if(num4 == flashColor) { 
num3 = 0; 
flashColor = flashBaseColor; 
setTimeout("flash5()", 2000); 
} 
else { 
flashColor = num4; 
num3 = 0; 
setTimeout("flash4onev2()", 50); 
} 
} 
} 
function flash4onev2() { 
document.all.flashd[num].style.color = flashColor; 
document.all.flashd[num2 - 1].style.color = flashColor; 
if(message.length != num2) { 
num--; 
num2++; 
setTimeout("flash4onev2()", 50); 
} 
else { 
num = 0; 
num2 = 0; 
setTimeout("flash3()", 2000); 
} 
} 
function flash3() { 
if(num != message.length) { 
document.all.flashd[num].style.color = flashBaseColor; 
num++; 
setTimeout("flash3()", 100); 
} 
else { 
num = 0; 
flash2(); 
} 
}