// Generated by CoffeeScript 1.6.3
(function() {
  window.fvSite = (function() {
    var Config, Dictionary;

    function _Class() {}

    Config = (function() {
      var data, isReady;

      data = {};

      isReady = false;

      function Config(data) {
        this.data = data;
      }

      Config.prototype.get = function(cPath) {
        var deep, it, path, response, _i, _len;
        path = cPath.split(".");
        response = this.data;
        deep = function(level) {
          if (response && (response[level] != null)) {
            return response = response[level];
          }
          return response = null;
        };
        for (_i = 0, _len = path.length; _i < _len; _i++) {
          it = path[_i];
          deep(it);
        }
        return response;
      };

      return Config;

    })();

    Dictionary = (function() {
      function Dictionary(data) {
        this.data = data;
      }

      Dictionary.prototype.get = function(key) {
        if (this.data.hasOwnProperty(key)) {
          return this.data[key];
        }
        if (jQuery && fvSite.config.get('debug')) {
          jQuery.ajax({
            url: '/tools/add-dictionary-key',
            data: {
              key: key
            }
          });
          this.data[key] = null;
        }
        return key;
      };

      return Dictionary;

    })();

    _Class.config = new Config({"social":{"facebook":{"applicationId":"570389999801437"},"vkontakte":{"applicationId":"5622159"}},"recaptcha.key":"6LdA9B8TAAAAAG4VJ3hkp93StSLWz3Zx6RgWvVe6","debug":true});

    _Class.dictionary = new Dictionary({"yes":"\u0422\u0430\u043a","no":"\u041di","ok":"OK"});

    return _Class;

  })();

}).call(this);
