
// Three places to customize --

// Place One:
// Between the quotes, specify the id value of the div
//   or other container with text to fade in/out.
var ContainerID = "attentionid";

// Place Two:
// In the color mask, put an 0 for the color digits that will
//   change and otherwise for digits that will remain static.
var ColorMask = "#FF0000";

// Place Three:
// Specify the number of milliseconds to wait between each
//  fade in/out step.
var FadePause = 225;

/*************************************/
// No further customizations required.
var numlist = "0123456789ABCDD".split("");
var pointer = 14;
var direction = 'up';
var counter = 0;
var MaxChanges = 0;
if( FadePause < 1 ) { FadePause = 1; }
function FadeColorInOut() {
    if( pointer == 14 ) { direction = 'down'; }
    else if( pointer == 0 ) { direction = 'up'; }
    if( direction == 'up' ) { pointer++; }
    else { pointer--; }
    counter++;
    if( MaxChanges > 0 && counter > MaxChanges ) { clearInterval(Changing); }
    re = /0/g;
    var thiscolor = ColorMask.replace(re,numlist[pointer]);
    //console.info('color:'+thiscolor);
    var e=document.getElementById(ContainerID);
    if(e){
        e.style.color = thiscolor;
    }
    e=document.getElementById(ContainerID+"2");
    if(e){
        e.style.color = thiscolor;
    }

    document.getElementById(ContainerID).style.color = thiscolor;
}
setInterval("FadeColorInOut()",FadePause);
//--></script>
