    hex=200; // Initial color value.
    
 function fadetext(id){ 
    if(hex>0) { //If color is not black yet
    hex-=11; // increase color darkness
    document.getElementById(id).style.color="rgb("+hex+","+hex+","+hex+")";
    setTimeout("fadetext('"+id+"')",20); 
    }
    else
    hex=255; //reset hex value
    }
