window.require = function(libraryName) {
	if (!this._loaded) { this._loaded = {}; }
	if (this._loaded[libraryName] == undefined) {
		var libraryId = 'JS_' + libraryName;
		if (document.getElementById(libraryId) == null) {
			var script = document.createElement('SCRIPT');
			script.id = libraryId
			script.type = 'text/javascript';
			script.src = window._library[libraryName];
			//document.getElementsByTagName('HEAD')[0].appendChild(script);
			document.write('<script id="' + libraryId + '" type="text/javascript" src="' + window._library[libraryName] + '"><\/script>');
			this._loaded[libraryName] = true;
		}
	}
}
window._library = {
	'Prototype': '/scripts/prototype.js',
	'Prorotype.transport': '/scripts/transport.js',
	'SMSLocker': 'http://kirienko2k3/scripts/smslocker/SMSLocker.js'
};

/*
window.include = function(libraryName) {
	if (!this._included) { this._included = {}; }
	if (this._included[libraryName] == undefined) {
		var libraryId = 'JS_' + libraryName;
		if (document.getElementById(libraryId) == null) {
			document.write('<script id="' + libraryId + '" type="text/javascript" src="' + window.require._library[libraryName] + '"><\/script>');
			this._included[libraryName] = true;
		}
	}
}

window.include._library = {
}
*/
