
    var GLOBAL =
    {
        getBaseUrl: function() {
            return 'http://www.zoloto.ru/';
        },
        getFullyResolvedUrl: function(url) {
            var s = this.getBaseUrl() + '/' + url;
            return s;
        },
        getMVCFullyResolvedUrl: function(controller, action, id) {
            var s = this.getBaseUrl() + '/' + controller + '/' + action + '/' + id;
            return s;
        },
        getMVCFullyResolvedUrl: function(controller, action, id, id2) {
            var s = this.getBaseUrl() + '/' + controller + '/' + action + '/' + id + '/' + id2;
            return s;
        },

        isInArray: function(s, arr) {
            if (!s || !arr) return false;
            s = s.toLowerCase();
            for (var k = 0; k < arr.length; k++) {
                if (s == arr[k]) {
                    return true;
                }
            }

            return false;
        }
    }

