/*=======Ver:1.0.60607Beta========*/
/*TreeMenu, (c) 2006, SourceTec Software Co.,LTD  -  www.sothink.com*/
function stGetNavigatorInfor()
{
	var n=navigator,a=n.appName,u=n.userAgent,v=n.appVersion,nn,nv,ke,kv,inf;
	if(/Opera[ \/]([\d\.]+)/.test(u))
	{
		nn="opera";
		nv=RegExp.$1;
		switch(a)
		{
			case "Opera":
				ke="opera";
				kv=nv;
				break;
			case "Microsoft Internet Explorer":
				ke="msie";
				kv="6.0";
				break;
			case "Netscape":
				ke="mozilla";
				kv="5.0";
				break;
			default:
				ke="unknow";
				kv=0;
		}
	}
	else if(/Netscape\d?\/([\d\.]+)/.test(u))
	{
		nn="netscape";
		nv=RegExp.$1;
		switch(a)
		{
			case "Netscape":
				ke="gecko";
				kv=n.productSub;
				break;
			case "Microsoft Internet Explorer":
				ke="msie";
				kv="6.0";
				break;
			default:
				ke="unknow";
				kv=0;
		}
	}
	else if(/MSIE ([\d\.]+)/.test(u))
	{
		nn=ke="msie";
		nv=kv=RegExp.$1;
	}
	else if(/Gecko\/(\d+)/.test(u))
	{
		ke="gecko";
		kv=RegExp.$1;
		if(/Firefox\/([\d\.]+)/.test(u))
		{
			nn="firefox";
			nv=RegExp.$1;
		}
		else if(/Camino\/([\d\.]+)/.test(u))
		{
			nn="camino";
			nv=RegExp.$1;
		}
		else 
		{
			nn="mozilla";
			if(/rv:([\d\.]+)/.test(u))
				nv=RegExp.$1;
			else
				nv=0;
		}
	}
	else if(/Safari/.test(u))
	{
		nn=ke="safari";
		nv=kv=v;
	}
	else if(/Konqueror/.test(u))
	{
		nn=ke="konqueror";
		nv=kv=v;
	}
	else if(a=="Netscape")
	{
		nn=ke="netscape";
		nv=kv=parseFloat(v);
	}
	return {
		appName:nn,
		appVersion:nv,
		platform:n.platform,
		kernel:ke,
		kernelVersion:kv,
		cookieEnabled:n.cookieEnabled
	};
}

function stGetElementById(id)
{
	if(ST_NAVIGATOR.appName=="msie")
	{
		var es=document.all(id);
		if(es&&es.length)
			return es[0];
		else
			return es;
	}
	else
		return document.getElementById(id);
}

function stGetElementsByTagName(tagName)
{
	if(ST_NAVIGATOR.appName=="msie")
		return document.all.tags(tagName);
	else
		return document.getElementsByTagName(tagName);
}

function stGetElementsByName(name)
{
	if(ST_NAVIGATOR.appName=="msie")
	{
		var es=document.all(name);
		if(es.length)
			return es;
		else
			return [es];
	}
	else
		return document.getElementsByName(name);
}

function stGetFolder(s)
{
	return s.substr(0,s.lastIndexOf("/")+1);
}

function stIsAbsolutePath(s)
{
	var t=s.toLowerCase(),re=/^(#|\?|\/|[a-z]:|http:|https:|file:|ftp:|javascript:|mailto:|about:|gopher:|news:|res:|telnet:|view-source|wais:|rtsp:|mms:)/;
	return re.test(t);
}

function stTrim(s)
{
	var re=/^\s*/;
	s=s.replace(re,"");
	re=/\s*$/,a;
	s=s.replace(re,"");
	return s;
}

function stLoadLibs()
{
	var i,s="";
	for(i in ST_LIBS)
		if(ST_LIBS[i]!=2)
		{
			s+="<script type='text/javascript' language='javascript1.2' src='"+ST_SCRIPTPATH+i+".js'></script>";
			ST_LIBS[i]=1;
		}
	document.write(s);
}

function stInclude(s)
{
	if(ST_LIBS[s]==null)	ST_LIBS[s]=0;
}

function stUIObject()
{
	this.className="UIObject";
	this.attachEvent=stAttachEvent;
	this.detachEvent=stDetachEvent;
	this.fire=stFireEvent;
	this.getMsg=stGetMessage;
	this.getHTML=stGetHTML;
	this.create=stCreateX;
}

function stCreateX()
{
	return true;
}

function stGetHTML()
{
	return "";
}

function stGetMessage(e,id)
{
	return true;
}

function stAttachEvent(e,f)
{
		if(typeof f!="string") alert("Attach function error!");
		if(!this[e])this[e]=[f];
		else this[e].push(f);
}

function stDetachEvent(e,f)
{
	if(typeof f!="string") alert("detach function error!");
	if(this[e])this[e].stPop(f);
}

function stFireEvent(e)
{
	if(!this[e]||!this[e].length) return true;
	var r=false;
	for(var i=0;i<this[e].length;i++)
		if(!window[this[e][i]])
			r=-1;
		else if(!eval(this[e][i]+"(this)"))
			r=true;
	return r;
}

function  stBufferImg(s)
{
	if(ST_IMGS.index.indexOf(s)!=-1)
	{
		var i=new Image;
		i.src=s;
		ST_IMGS.index+=s;
		ST_IMGS.imgs.push(i);
	}
}

function stGetImgTag(s,w,h,b,id)
{
	if(!w||!h)return "";
	return "<img class='stcimg' src='"+s+"'"+(w==-1?"":" width="+w)+(h==-1?"":" height="+h)+(b==-1?"":" border='"+b+"'")+(id?" id='"+id+"'":"")+">";
}

function stDOMEvent(e,o)
{
	var id=oid=o.id;
	if(!id)return true;
	var ob,ids=id.split("_"),i,j;
	
	for(i=ids.length-1;i>=0;i--)
	{
		if(ob=ST_STRUCTONS[oid])
		{
			switch(e.type)
			{		
				case "mouseover":
					if(o._ov==null)o._ov=0;
					if(ST_NAVIGATOR.appName=="msie")
					{
						if(!o._ov&&e.toElement&&o.contains(e.toElement))
						{
							o._ov=1;
							return ob.getMsg("mouseover",id);
						}
					}
					else
					{
						if(!o._ov&&!stIsParent(o,e.relatedTarget))
						{
							o._ov=1;
							return ob.getMsg("mouseover",id);
						}
					}				
					return true;
				case "mouseout":
					if(o._ov==null)o._ov=1;
					if(ST_NAVIGATOR.appName=="msie")
					{
						if(o._ov&&(!e.toElement||!o.contains(e.toElement)))
						{
							o._ov=0;
							return ob.getMsg("mouseout",id);
						}
					}
					else
					{
						if(!e.relatedTarget||!stIsParent(o,e.relatedTarget))
						{
							o._ov=0;
							return ob.getMsg("mouseout",id);
						}
					}
					return true;
				default:
					return ob.getMsg(e,id);
			}
		}
		else
		{
			oid="";
			for(j=0;j<i;j++)
				oid+=ids[j]+(j==(i-1)?"":"_");
		}
	}
	return true;
}

if(typeof ST_JS=="undefined")
{
	if(!Array.prototype.push)Array.prototype.push=function(){for(var i=0;i<arguments.length;i++)this[this.length]=arguments[i]}
	if(!Array.prototype.pop)Array.prototype.pop=function(){if(this.length){var o=this[this.length-1];this.length--;return o}}
	if(!Array.prototype.stJoin)Array.prototype.stJoin=function(a){for(var i=0;i<a.length;i++)if(this[i]==null)this[i]=a[i];}
	if(!Array.prototype.stContain)Array.prototype.stContain=function(a){for(var i=0;i<this.length;i++)if(this[i]==a) return 1;return 0}
	if(!Array.prototype.stPop)Array.prototype.stPop=function(o){var f=-1;for(var i=0;i<this.length;i++)if(f!=-1) this[i-1]=this[i];else if(this[i]==o)f=i;if(f!=-1) this.length--;return f}
	ST_LIBS={};
	ST_IMGS={
		index:"",
		imgs:[]
	};
	ST_VERSION="1.0";	
	ST_NAVIGATOR=stGetNavigatorInfor();	
	ST_SCRIPTS=stGetElementsByTagName("script");
	ST_SCRIPTPATH=stGetFolder(ST_SCRIPTS[ST_SCRIPTS.length-1].src);
	ST_SCRIPTS=null;
	ST_STRUCTONS=[];
	ST_ARGS=[];		
	ST_FUNS=[];
	ST_LD=[];
	ST_LDED=0;
	ST_CSS=
	{
		tb:"border-style:none;background-color:transparent;background-image:none;",
		tr:"margin:0px;padding:0px;border-style:none;background-color:transparent;background-image:none;",
		td:"border-style:none;background-color:transparent;background-image:none;",
		dv:"margin:0px;padding:0px;width:auto;height:auto;border-style:none;background-color:transparent;background-image:none;font-size:1px;",
		a:"margin:0px;padding:0px;width:auto;height:auto;border-style:none;background-color:transparent;background-image:none;text-decoration:none;",
		img:"margin:0px;padding:0px;",
		span:"margin:0px;padding:0px;border-style:none;background-color:transparent;background-image:none;"
	}
	document.write(stStyleShield());
	ST_JS=1;
}

function stBM(type,id,attribute)
{
	var lib=type?"sttree":"stmenu";
	stInclude(lib);
	stSetOnload();
	ST_ARGS.type=type;
	ST_ARGS.push([0,id,attribute]);
	ST_ARGS[id]=ST_ARGS[ST_ARGS.length-1];
}

function stEM()
{
	ST_ARGS.push([1]);
	stLoadLibs();
	document.write("<script type='text/javascript' language='javascript1.2' src='"+ST_SCRIPTPATH+"stapp"+".js'></script>");
}

function stBS(id,attribute,aid)
{
	if(aid&&ST_ARGS[aid])attribute.stJoin(ST_ARGS[aid][2]);
	ST_ARGS.push([2,id,attribute]);
	ST_ARGS[id]=ST_ARGS[ST_ARGS.length-1];
}

function stES()
{
	ST_ARGS.push([3]);
}

function stIT(id,attribute,aid)
{
	if(aid&&ST_ARGS[aid])attribute.stJoin(ST_ARGS[aid][2]);
	ST_ARGS.push([4,id,attribute]);
	ST_ARGS[id]=ST_ARGS[ST_ARGS.length-1];
}

function stEvalArgs()
{
	var r=new stUIObject;
	if(ST_ARGS.length)
	{
		if(ST_FUNS[ST_ARGS.type]==null) return r;
		for(var i=0;i<ST_ARGS.length;i++)
		{
			var f=window[ST_FUNS[ST_ARGS.type][ST_ARGS[i][0]]];
			if(f)r=f(ST_ARGS[i][1],ST_ARGS[i][2]);
		}
	}
	return r;
}

function stHTMLCode(s,f)
{
	if(typeof s=="undefined") return null;
	else if(!s) return "";
	var re;
	re=/&/g;
	s=s.replace(re,"&amp;");
	if(!f)
	{	
		re=/ /g;
		s=s.replace(re,"&nbsp;");
	}
	re=/</g;
	s=s.replace(re,"&lt;");
	re=/>/g;
	s=s.replace(re,"&gt;");
	re=/\r\n/g;
	s=s.replace(re,"<br>");
	re=/\"/g;
	s=s.replace(re,"&quot;");
	return s;
}

function stIsParent(p,c)
{
	if(!p||!c) return false;
	if(p==c) return true;
	do
	{
		if(c.parentNode)
			c=c.parentNode;
		else return false;
		if(p==c) return true;
	}while(c);
	return false
}

function stGetObjectBydomId(id)
{
	var ids=id.split("_"),tr;
	if(tr=ST_STRUCTONS[ids[0]])
	{
		if(ids[2]&&!isNaN(ids[2])) 
			return tr.subTrees[ids[1]].leaves[ids[2]];
		else if(ids[1]&&!isNaN(ids[1]))
			return tr.subTrees[ids[1]];
		else tr;
	}
	else return 0
}

function stStyleShield()
{
	var s="<style>",t;
	for (t in ST_CSS )	s+=".stc"+t+"{"+ST_CSS[t]+"}\n";
	return s+="</style>";
}

function stIsFile(s)
{
	var re=/\.\w+$/;
	return re.test(s);
}

function stGetCssWH(wh,b,m,p)
{
	var r;
	if(ST_NAVIGATOR.appName=="msie"||ST_NAVIGATOR.appName=="opera")
		r=wh;
	else
		r=Math.max(1,wh-2*b-2*m-2*p);
	return r;
}

function stSetOnload()
{
	if(!window.onload||onload.toString()!=stOnload.toString())
	{
		if(typeof window.onload=="function")
			ST_LD.push(window.onload);
		window.onload=stOnload;
	}
}

function stOnload()
{
	if(ST_LDED) return;
	for(var j=0;j<ST_LD.length;j++)
		ST_LD[j]();
	ST_LDED=1;
}

function stFalse()
{
	return false;
}