if (!this.Rf) this.Rf = {};
(function(ns, $) {

/**
 * Requires that a class/object/function exists, or an error is thrown
 * @param {String} name The namespace of the object, from window.
 * @param {Object} current (Optional) The root object for namespace lookups, or window if this argument is omitted
 */
ns.Require = function(name, current) {
	var namespaces = name.split('.'),
		currentNs = current ? current : window;
	for (var i = 0, j = namespaces.length; i < j; i++) {
		if (!(currentNs = currentNs[namespaces[i]])) throw ('Missing required name ' + name);
	}
	return currentNs;
};

})(Rf, jQuery);

