/*------------------------------------------------------------------\
 |	功能：主要是引用本站的各类脚本，通过引用区分各类型的脚本。
 |	实例：
 |		tgLib.Using("Tgnet.UI.prototype");
 |		Tgnet => 代表网站的根目录
 |		UI => 代表网站通用频道（资料区、圈吧、招聘，分站点后直接跟JS的目录。）
 |		prototype => 代表prototype脚本的名称
 |	Version：1.0.0
\------------------------------------------------------------------*/
//定义网站各频道的路径
var strPath = [
	{UI : "Lib/", Info : "", Group : "", Job : ""}
];
function Base() {}
Base.prototype = {
	//获取原脚本路径
	Using : function (NameSpace) {
		var temSpace = NameSpace.split(".");
		this.Include("/" + strPath[0][temSpace[1]] + "Js/" + temSpace[2]);
		temSpace = null;
	},
	//加载脚本文件
	Include : function (Path) {
	    //本来用创建DOM对象的方法加载，但经过测试发现，DOM对象加载速度太慢，会影响到页面加载。（页面出错或导致IE崩溃）
	    //因此使用document.write的方法输出JS文件的内容。
		document.write("<script type=\"text\/javascript\" src=\"" + Path + ".js\"><\/script>");
	}
}
var tgLib = new Base();
if (typeof($) != "function") {
	tgLib.Using("Tgnet.UI.tgBase");
}




