try {
  LRE;
} catch(ex) {
  LRE = {};
}

LRE.Currencies = {

  convert : function(uuid, dom_id) {
    var converter = new LRE.Currencies.Converter(uuid, dom_id);
    converter.convert_currencies();
  },

  Converter : function(uuid, dom_id) {
    this.uuid = uuid;
    this.dom_id = dom_id;
  }

};

LRE.Currencies.Converter.prototype.convert_currencies = function() {
  var amount = document.getElementById(this.dom_id).innerHTML;
  document.write('<script type="text/javascript" src="http://currency.luxuryrealestate.com/convert/' + this.uuid + '/' + amount + '/' + this.dom_id + '.js"></script>');
  //document.write('<script type="text/javascript" src="http://localhost:3000/convert/' + this.uuid + '/' + amount + '/' + this.dom_id + '.js"></script>');
}

