$debug=function(){};$import=function(){var compressFlag=document.getElementById("compressFlag").value;var _SYS_TAG=/\/system\.js/;var _MOZ_TAG="characterSet" in document;var _CHARSET=document[_MOZ_TAG?"characterSet":(document.charset=="_autodetect_all"?"defaultCharset":"charset")];var toCurrentCharset=_MOZ_TAG?undefined:function(){window.execScript("Function Asc2Unicode(n) \n Asc2Unicode = Chr(n) \nEnd Function \nFunction SafeArray2Str(body) \n SafeArray2Str = CStr(body)\nEnd Function","VBScript");switch(_CHARSET){case"gb2312":var r1=/%u(..)(..)/g,r2=/%([8,9,A-F].)%(..)/g;var toUnicode=function($0,$1,$2){return Asc2Unicode(parseInt($1+$2,16))};return function(body){return unescape(escape(SafeArray2Str(body)).replace(r1,"%$2%$1").replace(r2,toUnicode))};default:return function(body){return body}}}();var _uu=_CHARSET in {"utf-8":null,unicode:null,"utf-16":null,UnicodeFFFE:null,"utf-32":null,"utf-32BE":null};var getHttpConnect=_MOZ_TAG?function(){return new window.XMLHttpRequest}:function(){var PROGIDS=new Array("MSXML2.XMLHTTP.4.0","MSXML2.XMLHTTP.3.0","MSXML2.XMLHTTP","MSXML3.XMLHTTP","Microsoft.XMLHTTP");for(var i=0;i<PROGIDS.length;i++){try{return new ActiveXObject(PROGIDS[i])}catch(e){}}throw new Error([0,"Can't Find XMLHTTP Object!"])};var _http=function(conn){try{conn=getHttpConnect()}catch(e){}return conn}();var _xml=!!_http;function httpGet(src){_http.open("GET",src,false);_http.setRequestHeader("Content-Type",_CHARSET);_http.send(null);if(_http.status!=200&&_http.status!=0){throw new Error([1,"HttpGet Error Status: ",_http.status])}return((_uu||_MOZ_TAG)?_http.responseText:toCurrentCharset(_http.responseBody))}function activeJS(){for(var all=document.getElementsByTagName("script"),i=all.length-1;i>=0;i--){if(_MOZ_TAG?_SYS_TAG.test(all[i].src):all[i].readyState=="interactive"){return all[i].src}}return""}var _sys={scripts:{},curScript:"",transitionUrl:function(url){if(compressFlag&&compressFlag!="false"){var location=window.location;var path=location.pathname.substr(0,location.pathname.lastIndexOf("/")+1);return location.protocol+"//"+location.host+"/"+url}else{var langPath="js/";if(document.all){langPath="js/lang/"}return(url.charAt(0)=="/"?url:document.getElementById("currentServerPath").value+langPath+url)}},srcBase:function(){with(activeJS()){return substr(0,lastIndexOf("/")+1)}}(),httpGet:httpGet,httpConn:getHttpConnect,bodyDecode:toCurrentCharset,activeJS:activeJS};var _stack=[];var _load_and_exec=function(frame,src){src=_sys.transitionUrl(src);if(!(src in _sys.scripts)){try{_sys.scripts[src]=null;if(_xml){var script=httpGet(src);_stack.push(_sys.curScript);_sys.curScript=src;try{frame.window[_MOZ_TAG?"eval":"execScript"](script,"JavaScript")}finally{_sys.curScript=_stack.pop()}}else{frame.document.writeln('<script src="'+src+'"><\/script>')}}catch(e){$debug(e.name,":",src,e.message)}}};function _import(frame,targetUrl){_load_and_exec(frame,targetUrl)}_import.get=function(n){return eval("_sys[n]")};_import.set=function(n,v){return eval("_sys[n] = v")};_import.OnSysInitialized=function(){delete _import.set;delete _import.get;delete _import.OnSysInitialized};return _import};
