var loadScript = function( basepath, AdminURL )
{
	
	this.basepath = basepath;
	this.AdminURL = AdminURL;
	
	loadScript.prototype.custom = function( customs )
	{
		for ( i = 0; i < customs.length; i++ ) {
			document.write( '<script type="text/javascript" src="' +  this.basepath + customs[i] + '.js"></script>' );
		}
	};
	
	loadScript.prototype.loading = function()
	{
		var div = document.createElement('div');
			div.id = 'custom_loading';
			div.style.display = 'none';
			div.innerHTML = '<img src="'+this.AdminURL+'core/images/loading.gif" alt="" />Loading...';
			alert(div);
		$$('body').first().appendChild(div);
		delete div;
	};
	
}
