function addEvent(obj, evType, fn){
 if (obj.addEventListener){
   obj.addEventListener(evType, fn, false);
   return true;
 } else if (obj.attachEvent){
   var r = obj.attachEvent("on"+evType, fn);
   return r;
 } else {
   return false;
 }
}


  function TxtAnim_NextStep() {
    var i;
    var txt;
    var diff;
    var color;
    
    if (this.HotChar == this.myText.length-1 || this.HotChar == 7)
      this.direction = !this.direction;

    if(this.direction) {
        this.HotChar++;
    } else {
        this.HotChar--;
    }


    txt="";
    for(i=0;i<this.myText.length;i++){
      if (this.HotChar == i) {
        txt=txt+"<span style='background: none; padding:0px; color:#ff2200'>"+this.myText.charAt(i)+"</span>";
      } else {
        txt=txt+this.myText.charAt(i);
      }

    }

    document.getElementById(this.id).innerHTML=txt;
    addEvent(this.id, 'click', function() { location.href='specials.php' })
    
  }

  function TxtAnim(Id)
  {
    this.myText = document.getElementById(Id).innerHTML;
    this.HotChar = 8;
    this.direction = true;
    this.NextStep = TxtAnim_NextStep;
    this.id = Id;
  }

  function RefreshAnim() {
    animtext.NextStep();
    setTimeout('RefreshAnim()', 250);
  }

/** /
addEvent(window, 'load', function() {
	animtext = new TxtAnim('speciIDcolor');
    setTimeout('RefreshAnim()', 250);
} );
/**/