var Green = 128;
var Modifier = 2;
var tanRed = 245;
var tanBlue = 220;
var margin = 0;
var pauseCycle = 0;

function colorNotice()
{
    if(Modifier > 0 && Green < 255) {
       Green = Green + 2*Modifier;
    }
    else {
       Modifier = -1;
    }
    
    if(Green > 255)
       Green=255;
    
    if(Modifier < 0 && Green > 128) {
       Green = Green + 2*Modifier;
    }
    else {
       Modifier = 1;
    }    
    
    if(Green < 0)
       Green=0;
       
    tanRed = tanRed + 0.15*Modifier;
    tanBlue = tanBlue + 0.5*Modifier;
    if(tanRed > 255) {
       tanRed = 255;
       tanBlue = 255;
    }
    margin = margin - 1;
    if(margin <= -25)
       margin = 20;
              
    if(pauseCycle > 0)
    {
       margin = 0;
       pauseCycle = pauseCycle - 1;
    }
    else if(margin == 0)
    {
       pauseCycle = 200;
    }
       
    //document.getElementById("NoticeText").style.marginTop = margin.toString() + "px";
    //document.getElementById("NeedText").style.marginTop = (margin*(-1)).toString() + "px";
    //document.getElementById("NoticeLink").style.color = parseInt(tanRed).toString(16) + parseInt(tanRed).toString(16) + parseInt(tanBlue).toString(16);
    //document.getElementById("NeedLink").style.color = parseInt(tanRed).toString(16) + parseInt(tanRed).toString(16) + parseInt(tanBlue).toString(16);
    //document.getElementById("Notice").style.backgroundColor = Green.toString(16) + "00" + Green.toString(16);
    //document.getElementById("Notice").style.borderColor = "00" + Green.toString(16) + "00";
    
    //document.getElementById("Need").style.backgroundColor = Green.toString(16) + "00" + Green.toString(16);
    //document.getElementById("Need").style.borderColor = "00" + Green.toString(16) + "00";
    
    //setTimeout("colorNotice()",10);    
}