  Effect.CashRegister = Class.create();
  Object.extend(Object.extend(Effect.CashRegister.prototype, Effect.Base.prototype), {
    initialize: function(element, price) {
      var options = arguments[2] || {};
      this.element = $(element);
      this.startPrice = parseFloat(this.element.innerHTML);
      //console.log(this.element.innerHTML);
      this.finishPrice = price;
      this.delta = (this.finishPrice-this.startPrice);
      this.start(options);
    },
    update: function(position) {
      var value = (this.startPrice + (this.delta*position)).toString().split('.');
      //var cent  = value.length==1 ? '00' : (
       // value[1].length == 1 ? value[1]+"0" : value[1].substring(0,2));
      Element.update(this.element, value[0]);
    }
  });


