/**
 * Documentacion de MenuButton
 *
 * @class MenuButton
 * @author Lucio
 * @param {jQuery} element objeto jQuery del elemento del menu ej: <a href=""><img src="" /></a> 
 **/
var MenuButton = function (element)
{
  this._a = $(element);
  this._img = $(element.children(0));
  
  var tmp = this._img.attr('src');
  
  this._imgFile = tmp.substr(tmp.lastIndexOf('/')+1);
  this._path = tmp.substr(0, tmp.lastIndexOf('/')+1);  
  //var overname = "over_"+filename;
}
MenuButton.prototype =
{
  mouseOver: function()
  {    
    this._img.attr('src', this._path+'../over/'+this._imgFile);    
  },
  mouseOut: function()
  {
    this._img.attr('src', this._path+''+this._imgFile);
  }
}


