/* Coypright (C) 2006 go2map.com Inc.All rights reserved. */
/*
*/
/*@cc_on @*/
/*@if (!@loader_lsp) @*/
var Global={};Global.logEngineUrl="http://log2.lsp.go2map.com/unknow.gif";Global.expireFlag="Tue Jan 06 06:23:12 CST 2009";Global.styleLibHome="http://lib.go2map.com/sl";Global.symbolRoot="http://tag.go2map.com/stylemanager/styleimage/";Global.engineURL="http://lspengine.go2map.com/WebSite/Engine";Global.rmpHome="http://pics.go2map.com/lsp/";Global.resourceHome="http://key.go2map.com/lib";Global.vmpHome="http://pics.go2map.com/lsp/";Global.cssHome="http://tag.go2map.com/stylelib/labellib";Global.hyBirdRmpId="173";Global.baseModules="common=3.0,kernel=3.01,kernel=3.02,kernel=3.03,kernel=3.04";Global.expireFlags={"common3.0":"TueMay30142436CST2006","kernel3.01":"TueAug29113353CST2006","kernel3.02":"TueAug29113401CST2006","kernel3.03":"TueAug29113408CST2006","kernel3.04":"ThuApr03103926CST2008"};
window._LSP_CLASSLIB_Namespace = new function (){this.runtimeEnvironment = new function (){this.currentVersion = "3.0";this.navigator = "unknow";this.libHome = ".";this.classHome = "";this.debug = false;this.window = window;this.element = null;this.logs = [];this.resources = {};this.baseModules = [];this.extModules = [];this.codePool = [];this.expireFlag="";this.log = function (log){this.logs[this.logs.length] = log;};this.getResource = function (name){return ((res = this.resources[name]) != null) ?res : _LSP_CLASSLIB_Namespace.plugIn.localCache.get(name);};this.setResource = function (name, obj, fname){_LSP_CLASSLIB_Namespace.plugIn.localCache.put(name,(this.resources[name] = String(obj)),fname);};};this.plugIn = {localCache : {get : function(){},put : function(){} },systemResloader : {}};};
try{var lspre=_LSP_CLASSLIB_Namespace.runtimeEnvironment;lspre.log("Class Lib Initialize...");var scripts = document.getElementsByTagName("SCRIPT");var element = lspre.element = scripts[scripts.length - 1];lspre.log("Get system properties...");lspre.libHome = ((jh = element.getAttribute("libhome")) != null) ?jh : ((index = (src = element.src).replace(/\\/g,"/").lastIndexOf("/")) == -1) ? "." : src.substring(0, index);lspre.debug = ((debug = element.getAttribute("debug")) != null&& (debug.toLowerCase()== "true")) ? true : false;lspre.navigator = (/msie/i.test(ua = navigator.userAgent)) ?"ie" : ((/gecko/i.test(ua)) ? "moz" :((/opera/i.test(ua)) ? "opera" : "other"));lspre.extModules = lspre.extModules.concat(((et = element.getAttribute("modules")) == null ||et == "") ? [] : et.replace(/,$/, "").split(","));lspre.log("init html head...");if (lspre.navigator == "ie"){try{document.namespaces.add("v");}catch(ex){if(document.body==null)document.write("");}document.createStyleSheet().addRule("v\\:*","{behavior=url(#default#VML)}");document.write("");document.write("");}lspre.log("init plugIn...");if (!lspre.debug){if (lspre.navigator == "ie"){lspre.log("ie navigator...");_LSP_CLASSLIB_Namespace.plugIn.localCache = new function(){var preName = "lib_cache"+ lspre.currentVersion.replace(/\./g, "_");var elmt = document.createElement("meta");elmt.addBehavior("#default#userdata");document.getElementsByTagName("head")[0].appendChild(elmt);var udIsOk = true;this.get = function(name){if (!udIsOk){return null;}try{elmt.load(preName+"_"+name.replace(/\$|\{|\}|(\.+)|\/+|\\+/g, "_"));lspre.expireFlag=elmt.getAttribute("expires");return elmt.getAttribute("code");}catch (ex){udIsOk = false;return null;}};var expireFlag=Global.expireFlag;this.put = function(name, value, fname){if (!udIsOk){return;}try{name = preName+"_"+name.replace(/\$|\{|\}|(\.+)|\/+|\\+/g, "_");elmt.load(name);elmt.setAttribute("code", value);elmt.setAttribute("expires",Global.expireFlags[fname]||expireFlag.replace(/[:\+ ]/g,""));var oNow=new Date();oNow.setDate(oNow.getDate()+10);elmt.expires=oNow.toUTCString();elmt.save(name);}catch (ex){udIsOk = false;}};};}else{}}lspre.log("define loadModule...");var _loadModule = function (name,url){name=name.replace(/=/g,"");var code = lspre.getResource("$code{" + name + "}");if (!lspre.debug && code != null && lspre.expireFlag==(Global.expireFlags[name]||Global.expireFlag.replace(/[:\+ ]/g,""))){try{lspre.codePool[lspre.codePool.length]=code;lspre.log("Load core function '" + name + "' succ.");}catch (ex){lspre.log(ex);lspre.log("Load core function '" + name + "' fail.");}}else{document.write('');}};lspre.classHome = ((ch = element.getAttribute("classhome"))!= null)?ch:(lspre.libHome+"/lcl");lspre.log("Load core functions...");var tmp;lspre.baseModules = lspre.baseModules.concat((tmp = Global.baseModules) == null ||tmp == "" ? [] : tmp.replace(/,$/, "").split(","));for (var i = 0; i < lspre.baseModules.length; i++){var m = lspre.baseModules[i];_loadModule(m,(/http:\/\//.test(m))? m:(lspre.classHome+"/"+m+".htm"));}for (var i = 0; i < lspre.extModules.length; i++){var m = lspre.extModules[i];_loadModule(m,(/http:\/\//.test(m))? m : (lspre.classHome+"/"+m+".htm"));}for (var i = 0; i < lspre.codePool.length; i++){eval(lspre.codePool[i]);}}catch(ex){lspre.log((!ex.description) ? ex.toString(): ("Error: " + ex.description));lspre.log("load classlib.js error!");alert("Class Lib Load Error , logs: \n ---------\n"+ "URL: " + document.URL + "\n ---------\n"+ lspre.logs.join("\n"));}finally{if(lspre.debug) alert(lspre.logs.join("\n"));lspre = scripts = element = void(0);}
/*@set @loader_lsp = true; @*/
/*@else @*/
/*@end @*/