
var	dotware							= new	Object();
dotware.path						= '/Common/Jscripts/dotware/';

dotware.imports						= function( script_id )
{

	if(!!script_id && this._script[script_id])
		document.write('<script	type = "' + this._script[script_id].type + '"	src = "' + this.path + this._script[script_id].file + '"><\/script>');
	else
		this._loadScript();

}


dotware._loadScript					= function()
{
	for (var l_script in this._script)
	{

		document.write('<script	type = "' + this._script[l_script].type
			+ '"	src = "' + this.path + this._script[l_script].file + '"><\/script>');
	}
}

dotware._loadSystem					= function()
{
	for (var l_system in this._system)
	{

		document.write('<script	type = "' + this._system[l_system].type
			+ '"	src = "' + this.path + this._system[l_system].file + '"><\/script>');
	}
}

dotware._script						= {
	network : {type : 'text/javascript',file : 'dotware.network.js'},
	dialog : {type : 'text/javascript',file : 'dotware.dialog.js'},
	form : {type : 'text/javascript',file : 'dotware.form.js'},
	article : {type : 'text/javascript',file : 'dotware.article.js'}
}

dotware._system						= {
	extras : {type : 'text/javascript',file : 'dotware.extras.js'},
	dom : {type : 'text/javascript',file : 'dotware.dom.js'},
	browser : {type : 'text/javascript',file : 'dotware.browser.js'},
	link : {type : 'text/javascript',file : 'dotware.link.js'}
}


dotware._loadSystem();
