function SetupAnimatedButton(imgId, imgSrc, moSrc, mdSrc, disSrc, disabled) {
  var img = document.getElementById(imgId);

  if (disabled == "true") {
    img.src = disSrc;
    a = img.parentNode;
    bm = "bm_" + imgId;
    a.href = "#"+ bm;
    a.bookmark = bm;
  } else {

    if (moSrc != '') {
      img.onmouseover = function() {this.src = moSrc;}
    }

    if (mdSrc != '') {
      img.onmousedown =  function() {this.src = mdSrc;}
    }

    if (moSrc != '')
      img.onmouseup  = function() {this.src = moSrc;}
    else
      img.onmouseup  = function() {this.src = imgSrc;}

    img.onmouseout = function() {this.src = imgSrc;}

  }
}