hex=255 // Initial color value.

function fadesub_message1(){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById("sub_message1").style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadesub_message1()",100); 
}
else
    hex=255 //reset hex value
}
function fadesub_message2(){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById("sub_message2").style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadesub_message2()",100); 
}
else
    hex=255 //reset hex value
}
function fadesub_message3(){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById("sub_message3").style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadesub_message3()",100); 
}
else
    hex=255 //reset hex value
}
function fadesub_message4(){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById("sub_message4").style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadesub_message4()",100); 
}
else
    hex=255 //reset hex value
}
function fadesub_message5(){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById("sub_message5").style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadesub_message5()",100); 
}
else
    hex=255 //reset hex value
}
function fadesub_message6(){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById("sub_message6").style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadesub_message6()",100); 
}
else
    hex=255 //reset hex value
}
function fadesub_message7(){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById("sub_message7").style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadesub_message7()",100); 
}
else
    hex=255 //reset hex value
}
function fadesub_message8(){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById("sub_message8").style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadesub_message8()",100); 
}
else
    hex=255 //reset hex value
}


