var js = {
	version:"1.1.7_als",
    relativeUrl: "admin/scripts/",
	rootUrl:baseUrl + "admin/scripts/",
    oldRelativeUrl: "scripts/",
	oldRootUrl:baseUrl + "scripts/",
    useOldFolder:false,
	context:this,
	versioninig:false
};
if(typeof($) === 'undefined')  {
	function $(id) {
		if(arguments.length > 1) {
			for(var i = 0,elements = [],length = arguments.length; i < length; i++) {
				elements.push($(arguments[i]));
			}
			return elements;
		}
		if (typeof(id)=="object") return id;
		else {
			var _id=id.toString();
			id=document.getElementById(_id);
		}
		return id;
	}
}
if(!Function.prototype.bind) {
	Function.prototype.bind = function() {
		var method = this;
		var object = arguments[0];
		return function() {
			return method.apply(object);
		};
	};
}
if(!Object.extend) {
	Object.extend = function(_5, _6) {
		for(var _7 in _6) {
			_5[_7] = _6[_7];
		}
		return _5;
	};
}
js.getXHTTPTransport = function() {
  var _8 = false;
  var _9 = [function() {
    return new XMLHttpRequest();
  },function() {
    return new ActiveXObject("Msxml2.XMLHTTP");
  },function() {
    return new ActiveXObject("Microsoft.XMLHTTP");
  }];
  for(var i = 0; i < _9.length; i++) {
    try {
      _8 = _9[i]();
      break;
    } catch(e) {
    }
  }
  return _8;
};

js.evalProperty = function(_b, _c, _d, _e) {
  if(_b) {
    if(!_b[_c] || _e) {
      _b[_c] = _d || true;
    }
    return _b[_c];
  }
  return null;
};

js.evalPath = function(_f, _10, _11, _12) {
  _10 = _10 || js.context;
  var pos = _f.indexOf(".");
  if(pos == -1) {
    return js.evalProperty(_10, _f, _11, _12);
  } else {
    var _14 = _f.substring(0, pos);
    var _15 = _f.substring(pos + 1);
    var obj = js.evalProperty(_10, _14, _11);
    return js.evalPath(_15, obj, _11, _12);
  }
};

js.pathToUrl = function(_17, _18) {
  return ((js.useOldFolder)?js.oldRootUrl:js.rootUrl) + _17.replace(/\./g, "/") + (js.versioninig ? ".v" + _18 : "") + ".js";
};

js.loadedModules = {};

js.module = function(_19, _1a) {
  _1a = _1a || 1;
  js.loadedModules[_19] = js.loadedModules[_19] ? Math.max(js.loadedModules[_19], _1a) : _1a;
//  return js.evalPath(_19, null, {});
};
js.include = function(_1b, _1c) {
  _1c = _1c || 1;
  if(js.loadedModules[_1b] && js.loadedModules[_1b] >= _1c) {
    return false;
  }
  var _1d = js.getXHTTPTransport();
  _1d.open("GET", js.pathToUrl(_1b, _1c), false);
  _1d.send(null);
  var _1e = _1d.responseText;
  var resp = null;
  try {
    resp = (typeof execScript != "undefined") ? execScript(_1e) : (js.context.eval ? js.context.eval(_1e) : eval(_1e));
  } catch(e) {
    js.error(e);
    return false;
  }
  js.module(_1b, _1c);
  return resp;
};
js.load = js.include;
js.extend = function(_1f, _20, _21) {
  var _22 = [];
  if(_20 instanceof Array || typeof _20 == "array") {
    _22 = _20;
    _20 = _22.shift();
  }
  if(typeof _1f == "string") {
    _1f = js.evalPath(_1f, null, js.createClass(), 1);
  } else {
    return;
  }
  if(_20) {
    var _23 = function() {
    };
    _23.prototype = _20.prototype;
    _1f.prototype = new _23();
    _1f.superClass = _20.prototype;
  }
  for(var i = 0; i < _22.length; i++) {
    Object.extend(_1f.prototype, _22[i].prototype);
  }
  _1f.mixins = _22;
  Object.extend(_1f.prototype, _21 || {});
  _1f.prototype.constructor = _1f;
};
js.define = js.extend;
js.createClass = function() {
  return function() {
    var _25 = arguments.callee.prototype;
    _25.init.apply(this, arguments);
    for(var i = 0,mixins = _25.constructor.mixins,length = mixins.length; i < length; i++) {
      mixins[i].init.apply(this);
    }
  };
};
js.hasOwnProperty = function(obj, _28) {
  if(Object.prototype.hasOwnProperty) {
    return obj.hasOwnProperty(_28);
  }
  return typeof obj[_28] != "undefined" && obj.constructor.prototype[_28] !== obj[_28];
};
js.dump = function(_29) {
  //alert(_29);
};
js.error = function(_2a) {
  //alert(_2a);
};
restorejs = function(obj) {
  return function() {
    window.js = obj;
  };
}(js);
