function bite(id, btnEl, displayEl, session_uid, lang)
{  
  if(session_uid == '') {
    location.href='/index.php?ai=bite&id='+id;
    return;
  }
  
  var sUrl = '/index.php?ai=bite&id='+id+'&async=1';
  
  var handleSuccess = function(o) {
   
   if(o.responseText.indexOf('ALREADY_BITTEN') == -1) {
      var displayEl = YAHOO.util.Dom.get(o.argument.displayEl);
      var newBites = parseInt(o.responseText);
      //
      // Bite counted
      // Show new bite count
      //
      var biteText = newBites + " Bite"
      if(newBites > 1) {
        biteText += "s";
      }
      displayEl.innerHTML = biteText;
      
      var attributes = {
          color: { from:'#ffffff' , to: '#ff0000' }
      };
      var anim = new YAHOO.util.ColorAnim(displayEl, attributes, 2);
      anim.animate();
      
    } else {
      //
      // Zombie has already been bitten
      //
      ZSDialog('dialog-bite','Message')
    }
  }
  var handleFailure = function(o) {
    //
    // Do nothing
  }
  var callback =
  {
    success:handleSuccess,
    failure:handleFailure,
    argument:{displayEl:displayEl, btnEl:btnEl}
  };
  var request = YAHOO.util.Connect.asyncRequest('GET', sUrl, callback);
  var attributes = {
      opacity: { to: 0 }
  };
  var anim = new YAHOO.util.Anim(btnEl, attributes, 0.5);
  anim.animate();
  
  
  anim.onComplete.subscribe(function(s, o) {
    
    if(lang == "es") {
        text = "Mordido"
    } else if(lang == "en") {
        text = "Bitten"
    }
    btnEl.outerHTML = '<span class="bitten">' + text + '</span>'
  });  
  
  
}
