📄 linb.js
字号:
undefined;_=function(){return +new Date()};_.merge=function(E,D,B){var A,C;if(typeof B=="function"){C=B;B="fun"}switch(B){case"fun":for(A in D){if(true===C(D[A],A)){E[A]=D[A]}}break;case"all":for(A in D){E[A]=D[A]}break;case"with":for(A in D){if(A in E){E[A]=D[A]}}break;default:for(A in D){if(!(A in E)){E[A]=D[A]}}}return E};_.merge(_,{fun:function(){return function(){}},exec:function(A){var D=this,E=document,C=D.h||(D.h=E.getElementsByTagName("head")[0]||E.documentElement),B=E.createElement("script");B.type="text/javascript";if(linb.browser.ie){B.text=A}else{B.appendChild(E.createTextNode(A))}C.insertBefore(B,C.firstChild);C.removeChild(B)},get:function(D,A){for(var C=0,B=A.length;C<B;){if(!D||(D=D[A[C++]])===undefined){return }}return D},set:function(H,B,G){var C,E=0,A,F=B.length-1,D=B[F];for(;E<F;){C=B[E++];if(H[C]&&((A=typeof H[C])=="object"||A=="function")){H=H[C]}else{H=H[C]={}}}if(G===undefined){delete H[D]}else{return H[D]=G}},tryF:function(A,B,C,D){return(A&&typeof A=="function")?A.apply(C||null,B||[]):D},asyRun:function(A,D,B,C){return setTimeout(typeof A=="string"?A:function(){A.apply(C,B||[]);A=B=null},D||0)},isEmpty:function(B){for(var A in B){return false}return true},resetRun:function(E,A,H,D,F){var G=arguments.callee,C=E,B=G.$cache||(G.$cache={});if(B[C]){clearTimeout(B[C])}if(typeof A=="function"){B[C]=setTimeout(function(){delete B[C];A.apply(F||null,D||[])},H||0)}else{delete B[C]}},observableRun:function(C,A,B){linb.Thread.observableRun(C,A,B)},breakO:function(H,E){var C=E||1,D=1+(arguments[2]||0),K=arguments.callee,J="___gc_",B=K._o||(K._o={}),F,I,A;if(H&&(typeof H=="object"||typeof H=="function")&&H!==window&&H!==Object&&H!==Date&&H!==Array&&H!==document){if(J in H){return }else{try{H[J]=1}catch(G){return }}A=(A=H.constructor)?A.prototype:B;for(F in H){if(F!=J){if(D<C&&H[F]&&(typeof H[F]=="object"||typeof H[F]=="function")){K(H[F],C,D)}if(!(A&&A[F])&&F!="prototype"&&F!="constructor"){try{delete H[F]}catch(G){}}}}try{delete H[J]}catch(G){}if(H.constructor==Array){H.length=0}}},each:function(D,A,C){C=C||D;for(var B in D){if(false===A.call(C,D[B],B,D)){break}}return D},copy:function(B,A){return _.clone(B,A,1)},clone:function(C,G,J){if(C&&typeof C=="object"){var E=C.constructor,H=E==Array;if(H||E==Object){var F=arguments.callee,D=H?[]:{},I,B=0,A;if(!J){if(J===0){return C}else{J=100}}if(H){A=C.length;for(;B<A;B++){if(G?G(C[B],B):1){D[D.length]=((I=C[B])&&J&&typeof I=="object")?F(I,G,J-1):I}}}else{for(B in C){if(G?G(C[B],B):1){D[B]=((I=C[B])&&J&&typeof I=="object")?F(I,G,J-1):I}}}return D}else{return C}}else{return C}},filter:function(D,F,I,A){if(!A&&D&&D.constructor==Array){var E,C,G=[],B;for(E=0,C=D.length;E<C;E++){G[G.length]=D[E]}D.length=0;I=I||G;for(E=0,C=G.length;E<C;E++){if(F.call(I,G[E],E,G)!==false){D[D.length]=G[E]}}}else{var E,H={};I=I||D;for(E in D){if(false===F.call(I,D[E],E,D)){H[E]=1}}for(E in H){delete D[E]}}return D},toArr:function(E,C){if(!E){return[]}var A=[];if(typeof C=="boolean"){for(var D in E){A[A.length]=C?D:E[D]}}else{if(typeof E=="string"){A=E.split(C||",")}else{for(var D=0,B=E.length;D<B;++D){A[D]=E[D]}}}return A},urlEncode:function(C){var A=[],B,D;for(B in C){D=C[B];A.push(encodeURIComponent(B)+"="+encodeURIComponent(typeof D=="string"?D:_.serialize(D)))}return A.join("&")},urlDecode:function(H,E){if(!H){return E?"":{}}var A,F={},C=H.split("&"),G;for(var D=0,B=C.length;D<B;D++){G=C[D];A=G.split("=");F[decodeURIComponent(A[0])]=decodeURIComponent(A[1])}return E?F[E]:F},exists:function(A){return A!==undefined},isNull:function(A){return(typeof A=="object")&&!A},isObj:function(A){return !!A&&(typeof A=="object"||typeof A=="function")},isBool:function(A){return typeof A=="boolean"},isNumb:function(A){return typeof A=="number"&&isFinite(A)},isDate:function(A){return !!A&&A.constructor==Date},isFun:function(A){return typeof A=="function"&&A.constructor!=RegExp},isArr:function(A){return !!A&&A.constructor==Array},isHash:function(A){return !!A&&typeof A=="object"&&A.constructor==Object},isReg:function(A){return !!A&&A.constructor==RegExp},isStr:function(A){return typeof A=="string"},isArguments:function(A){return !!(A&&A.callee&&A.callee.arguments===A)},str:{startWith:function(B,A){return B.indexOf(A)===0},endWith:function(B,C){var A=B.length-C.length;return A>=0&&B.lastIndexOf(C)===A},repeat:function(B,A){return new Array(A+1).join(B)},initial:function(A){return A.charAt(0).toUpperCase()+A.substring(1)},trim:function(A){return this.ltrim(this.rtrim(A))},ltrim:function(A){return A.replace(/^ */,"")},rtrim:function(A){return A.replace(/ *$/,"")},toDom:function(G,F){var H=arguments.callee,E=H._pool||(H._pool=[]),D=0,C=E.length,B,A=[];do{B=E[D++]}while(D<C&&(B&&B.firstChild));if(!B||B.firstChild){B=document.createElement("div");E.push(B)}B.innerHTML=G;for(var D=0,I=B.childNodes,C=I.length;D<C;D++){A[A.length]=I[D]}return linb(A)}},arr:{subIndexOf:function(A,D,E){if(E===undefined){return -1}for(var C=0,B=A.length;C<B;C++){if(A[C]&&A[C][D]===E){return C}}return -1},removeFrom:function(A,B,C){A.splice(B,C||1);return A},removeValue:function(A,D){for(var B=A.length,C=B-1;C>=0;C--){if(A[C]===D){A.splice(C,1)}}return A},insertAny:function(A,F,E,D){var C=A.length;D=F.constructor!=Array||D;if(E===0){if(D){A.unshift(F)}else{A.unshift.apply(A,F)}}else{var B;if(!E||E<0||E>C){E=C}if(E!=C){B=A.splice(E,C-E)}if(D){A[A.length]=F}else{A.push.apply(A,F)}if(B){A.push.apply(A,B)}}return E},indexOf:function(A,D){for(var C=0,B=A.length;C<B;C++){if(A[C]===D){return C}}return -1},each:function(A,D,F,G){var E,C,B=A;if(B.constructor!=Array){if((B=B._nodes)||B.constructor!=Array){throw new Error("errNotArray")}if(G===undefined){G=1}}C=B.length;F=F||A;if(!G){for(E=0;E<C;E++){if(D.call(F,B[E],E,B)===false){break}}}else{for(E=C-1;E>=0;E--){if(D.call(F,B[E],E,B)===false){break}}}return A}}});_.merge(_.fun,{body:function(fun){with(String(fun)){return slice(indexOf("{")+1,lastIndexOf("}"))}},args:function(fun){with(String(fun)){return slice(indexOf("(")+1,indexOf(")")).split(",")}},clone:function(A){return new Function(_.fun.args(A),_.fun.body(A))}});Namespace=function(C){var B=C.split("."),A=window;return _.get(A,B)||_.set(A,B,{})};Class=function(S,I,E){var A,O=[],G=Class,D=window,N=G._fun,B=G._reg,C,K,M,F,Q;E=E||{};if(F=_.get(D,S.split("."))){return F}I=(!I?[]:typeof I=="string"?[I]:I);for(M=0;F=I[M];M++){if(!(O[M]=(_.get(D,F.split("."))||(linb&&linb.SC&&linb.SC(F))))){throw new Error("errNoParent:"+F)}}if(E.Dependency){for(M=0;F=E.Dependency[M];M++){if(!(_.get(D,F.split("."))||(linb&&linb.SC&&linb.SC(F)))){throw new Error("errNoDependency:"+F)}}}C=O[0];A=E.Static||{};F={};for(M in A){if(B[M]){F[M]=1}}for(M in F){delete A[M]}A.Before=E.Before||(C&&C.Before);A.After=E.After||(C&&C.After);A.$End=E.$End||(C&&C.$End);A.__gc=E.__gc||A.__gc||function(){Class.__gc(this.$key)};if(typeof E.Constructor=="function"){K=N(E.Constructor,"Constructor",S,C||_.fun());K.Constructor=String(E.Constructor)}else{if(C){var P=_.fun(),H=C.Constructor;if(H){P=new Function(H.slice(H.indexOf("(")+1,H.indexOf(")")).split(","),H.slice(H.indexOf("{")+1,H.lastIndexOf("}")))}K=N(P,"Constructor",S,C.upper);K.Constructor=H}else{K=_.fun()}}Q=_.fun();for(M=O.length-1;F=O[M--];){_.merge(Q,F);_.merge(Q.prototype,F.prototype)}K.KEY=K.$key=K.prototype.KEY=K.prototype.$key=S;G._wrap(K,A,0,Q);if(F=E.Instance){G._wrap(K.prototype,F,1,Q.prototype)}G._inherit(K,Q);G._inherit(K.prototype,Q.prototype);Q=null;if(_.tryF(K.Before,arguments,K)===false){return false}for(M=0;F=O[M];M++){F=(F.$children||(F.$children=[]));for(var L=0,J=F.length,R;L<J;L++){if(F[J]==S){R=true;break}}if(!R){F[F.length]=S}}K.$linb$=1;K.$children=[];K.$parent=O;K.prototype.constructor=K;K[S]=K.prototype[S]=true;_.set(D,S.split("."),K);_.tryF(K.After,[],K);_.tryF(E.Initialize,[],K);_.tryF(K.$End,[],K);return K};_.merge(Class,{_reg:{$key:1,$parent:1,$children:1,KEY:1,Static:1,Instance:1,Constructor:1,Initialize:1},_reg2:{constructor:1,prototype:1,toString:1,valueOf:1},_fun:function(A,B,C,D){A.$name$=B;A.$original$=C;if(D){A.upper=D}return A},_other:["toString","valueOf"],_o:{},_inherit:function(D,F,A){var B,E,C=this._reg;for(B in F){if(B in D||(!A&&C[B])||B.charAt(0)=="$"){continue}E=F[B];if(E&&E.$linb$){continue}D[B]=E}},_wrap:function(J,B,L,K){var M=this,G,F,D,E=J.KEY,A=M._reg,C=M._reg2,I=M._fun,H=M._other;for(G in B){if(C[G]||(!L&&A[G])){continue}D=B[G];J[G]=(typeof D!="function")?D:I(D,G,E,typeof K[G]=="function"&&K[G])}for(F=0;G=H[F++];){D=B[G];if(D&&(D==M._o[G])){continue}J[G]=(typeof D!="function")?D:I(D,G,E,typeof K[G]=="function"&&K[G])}},__gc:function(C){if(typeof C=="object"){C=C.KEY||""}var B=_.get(window,C.split(".")),D;if(B){if(D=_.get(window,["linb","cache","SC"])){delete D[C]}for(var A=0,E;E=B.$children[A];A++){if(E=_.get(window,E.split("."))){CLASS.__gc(E)}}B.$parent.length=B.$children.length=0;_.set(window,C.split("."))}}});linb=function(B,A){return linb.Dom.pack(B,A)};_.merge(linb,{cache:{dom:{},domId:{},template:{},hookKey:{},thread:{},SC:{},text:{}},Locale:{en:{}},$lang:"en",$href:"javascript:;",$langId:"linblangkey",reLang:function(I,K){var B=linb.Locale,E=linb.getRes,L,J,D,C,F,A,G,H=[];linb.$lang=I;J=linb.browser.ie?document.all.tags("span"):document.getElementsByTagName("span");for(D=0;L=J[D];D++){if(L.id==linb.$langId){H[H.length]=L}}F=function(){(function(){C=H.splice(0,100);for(D=0;L=C[D];D++){if(typeof (J=E(L.className))=="string"){L.innerHTML=J}}if(H.length){setTimeout(arguments.callee,0)}_.tryF(K)}())},G="linb.Locale."+I,A=function(){linb.include(G+"."+linb.ini.appLangKey,linb.getPath("Locale."+I,".js"),F,F)};linb.include(G,linb.getPath(G,".js"),A,A)},_r:/\x24(\d+)/g,getRes:function(D){var B,A=D.indexOf("-")!=-1?((B=D.split("-"))&&(D=B[0])&&B):arguments,C=_.get(linb.Locale[linb.$lang],D.split("."));return(B=typeof C)=="string"?C.replace(linb._r,function(E,F){return A[parseInt(F)+1]||E}):B=="function"?C.apply(null,A):C?C:D.substr(D.lastIndexOf(".")+1)},wrapRes:function(D){var A=D,B,C;if(A.charAt(0)=="$"){arguments[0]=A.substr(1,A.length-1)}B=D;C=linb.getRes.apply(null,arguments);if(B==C){C=A}return'<span id="'+linb.$langId+'" class="'+B+'">'+C+"</span>"},request:function(B,C,E,F,D,A){if(!C){C=""+_()}return((A&&A.method.toLowerCase()=="post")?linb.IAjax:linb.absIO.isCrossDomain(B)?linb.SAjax:linb.Ajax).apply(null,arguments).start()},include:function(D,A,B,C){if(D&&linb.SC.get(D)){_.tryF(B)}else{linb.SAjax(A,"",B,C,0,{rspType:"script"}).start()}},_m:[],main:function(A){linb._m.push(A)},getPath:function(F,A,G){F=F.split(".");if(G){var C=[F[0],G];for(var E=1,B=F.length;E<B;E++){C.push(F[E])}F.length=0;F=C}var H,D=linb.ini;if(F[0]=="linb"){H=D.path;F.shift();if(F.length==(G?1:0)){F.push("linb")}}else{H=D.appPath;if(F.length==((G?1:0)+1)&&A==".js"){F.push("index")}if(D.verPath){H+=D.verPath+"/"}if(D.ver){H+=D.ver+"/"}}return H+F.join("/")+(A||"/")},log:_.fun(),message:_.fun(),_pool:[],getObject:function(A){return linb._pool["$"+A]},create:function(I,A){var F,B,H,G=arguments.callee,C=G.r1||(G.r1=/</);if(typeof I=="string"){if(A===true){B=linb([document.createTextNode(I)])}else{if(H=linb.absBox.$type[I]){F=[];for(var E=1,D=arguments.length;E<D;E++){F[E-1]=arguments[E]}B=new (linb.SC(H))(false);if(B._ini){B._ini.apply(B,F)}if(B.render){B.render()}}else{if(C.test(I)){B=_.str.toDom(I)}else{B=document.createElement(I);B.id=typeof A=="string"?A:_.id();B=linb([B])}}}}else{B=new (linb.SC(I.key))(I).render()}return B}});new function(){var H=window,J=navigator.userAgent.toLowerCase(),F=document,G=linb.browser={kde:/webkit/.test(J),opr:/opera/.test(J),ie:/msie/.test(J)&&!/opera/.test(J),gek:/mozilla/.test(J)&&!/(compatible|webkit)/.test(J),isWin:/(windows|win32)/.test(J),isMac:/(macintosh|mac os x)/.test(J),isAir:/adobeair/.test(J),isLinux:/linux/.test(J),isSecure:location.href.toLowerCase().indexOf("https")==0},I=function(M,N){return M+(G.ver=J.split(N)[1].split(".")[0])};_.filter(G,function(M){return !!M});if(G.ie){G[I("ie","msie ")]=true;if(G.ie6){try{document.execCommand("BackgroundImageCache",false,true)}catch(E){}H.XMLHttpRequest=function(){return new ActiveXObject("Msxml2.XMLHTTP")}}}else{if(G.gek){G[I("gek","firefox/")]=true}else{if(G.opr){G[I("opr","opera/")]=true}else{if(G.kde){G[I("kde","safari/")]=true}}}}G.contentBox=function(M){return(G.ie||G.opr)?!/BackCompat|QuirksMode/.test(F.compatMode):(M=(M=M||F.documentElement).style["-moz-box-sizing"]||M.style["box-sizing"])?(M=="content-box"):true}();var L=linb.ini={};if(window.linb_ini){_.merge(L,window.linb_ini)}if(!L.path){var K,C=document.getElementsByTagName("script"),A=/js\/linb(-[\w]+)?\.js$/,B=C.length;while(--B>=0){K=C[B].src;if(K.match(A)){L.path=K.replace(A,"");break}}}_.merge(L,{appPath:location.href.split("?")[0].replace(/[^\\\/]+$/,""),appLangKey:"app",file_bg:"bg.gif",dummy_tag:"$_dummy_$"});if(!L.path){L.path=L.appPath+"/jsLinb"}var D=function(){if(F.addEventListener&&!G.kde){F.removeEventListener("DOMContentLoaded",arguments.callee,false)}try{for(var N=0,M=linb._m.length;N<M;N++){_.tryF(linb._m[N])}linb._m.length=0;linb.isDomReady=true}catch(O){_.asyRun(function(){throw O})}};if(F.addEventListener&&!G.kde){F.addEventListener("DOMContentLoaded",D,false)}else{if(G.ie){(function(){try{F.activeElement.id;F.documentElement.doScroll("left");D()}catch(M){setTimeout(arguments.callee,1)}})()}else{(function(){/loaded|complete/.test(F.readyState)?D():setTimeout(arguments.callee,1)})()}}};Class("linb.Thread",null,{Constructor:function(B,C,E,G,H,A,D){var J=this,F=arguments.callee,I=linb.cache.thread;if(J.constructor!==F||!!J.id){return new F(B,C,E,G,H,A,D)}if(typeof B!="string"){B="$"+(J.constructor.$id++)}J.id=B;J.profile=I[B]||(I[B]={id:B,_start:false,time:0,_left:0,_asy:-1,index:0,tasks:C||[],delay:E||0,callback:G,onStart:H,onEnd:A,cache:{},status:"run",cycle:!!D})},Instance:{_fun:_.fun(),__gc:function(){var A=linb.cache.thread,C=A[this.id];if(C){delete A[this.id];C.tasks.length=0;for(var B in C){C[B]=null}}},_task:function(){var A=this,G=A.profile,C={args:[]},F=G.tasks[G.index],E,B,D=typeof F;G._asy=-1;if(!G.status){return }if(D=="function"){C.task=F}else{if(D=="object"){for(B in F){C[B]=F[B]}}}if(typeof C.task!="function"){C.task=A._fun}if(typeof C.callback!="function"){C.callback=G.callback}C.args.push(G.id);G.index++;G.time=_();E=_.tryF(C.task,C.args||[G.id],C.scope||A,null);if(!G.status){return }if(C.id){G.cache[C.id]=E}if(C.callback){if(false===_.tryF(C.callback,[G.id],A,true)){A.abort();return }}if(G.status!=="run"){return }if(!G||G.status!=="run"){return }A.start()},start:function(E){var B=this,D=B.profile,A,C;if(D._start===false){D._start=true;if(false===_.tryF(D.onStart,[D.id],B)){return B.abort()}}if(!D.tasks.length){return B.abort()}if(D.index>=D.tasks.length){if(D.cycle===true){B.profile.index=0}else{return B.abort()}}A=D.tasks[D.index];C=typeof A=="number"?A:typeof A.delay=="number"?A.delay:D.delay;D._left=(E||E===0)?E:C;if(D._asy!=-1){clearTimeout(D._asy)}D._asy=_.asyRun(B._task,D._left,[],B);D.time=_();return B},suspend:function(){var B,A=this.profile;if(A.status=="pause"){return }A.status="pause";if(A._asy!==-1){clearTimeout(A._asy);if(A.index>0){A.index--}}B=A._left-(_()-A.time);A._left=(B>=0?B:0);return this},resume:function(B){var A=this;if(A.profile.status=="run"){return }B=B===undefined?A.profile._left:B===true?A.profile.delay:B===false?0:(Number(B)||0);A.profile.status="run";A.start(B);return A},abort:function(){var A=this.profile;A.status="stop";clearTimeout(A._asy);_.tryF(A.onEnd,[A.id]);this.__gc()},links:function(A){var C=this.profile,B=C.onEnd,D=C.id;C.onEnd=function(){_.tryF(B,[D]);A.start()};return this},insert:function(A,E){var D=this,F=D.profile.tasks,C=F.length,B;if(A.constructor!=Array){A=[A]}E=E||D.profile.index;if(E<0||E>C){E=C}B=F.splice(E,C-E);F.push.apply(F,A);F.push.apply(F,B);return D},getCache:function(A){return this.profile.cache[A]},setCache:function(A,B){this.profile.cache[A]=B;return this}},After:function(){var C=this,E=function(F){C[F]=function(H){var G;if(linb.cache.thread[H]){(G=linb.Thread(H))[F].apply(G,Array.prototype.slice.call(arguments,1))}}},B="start,suspend,resume,abort".split(",");for(var D=0,A=B.length;D<A;D++){E(B[D])}},Static:{$id:1,__gc:function(){linb.cache.thread={}},isAlive:function(A){return !!linb.cache.thread[A]},observableRun:function(E,B,C){var A=linb.Thread,D=linb.Dom;if(!_.isArr(E)){E=[E]}if(linb.cache.thread[C]){if(typeof B=="function"){E.push(B)}A(C).insert(E)}else{A(C,E,0,null,function(F){if(D){D.busy(F)}},function(F){_.tryF(B,arguments,this);if(D){D.free(F)}}).start()}},group:function(B,F,G,H,A){var I={},E=linb.Thread,D=function(M,J,L){if(typeof M=="string"){M=E(M)}if(M){var K=function(){var N=arguments.callee;_.tryF(N.onEnd,arguments,this);N.onEnd=null;delete I[J];_.tryF(G,[J,L],this);if(_.isEmpty(I)){E.resume(L)}};K.onEnd=M.profile.onEnd;M.profile.onEnd=K;M.start()}};for(var C in F){I[C]=1}return E(B,[function(K){if(!_.isEmpty(F)){E.suspend(K);for(var J in F){D(F[J],J,K)}}}],0,null,H,A)}}});Class("linb.absIO",null,{Constructor:function(C,H,G,A,E,L){if(typeof C=="object"){L=C}else{L=L||{};_.merge(L,{uri:C,query:H,onSuccess:G,onFail:A,threadid:E})}var K=this,I=arguments.callee,B=K.constructor;if((B!==I)||K.id){return new I(L)}_.merge(L,{id:L.id||(_()+""+(B._id++)),uri:L.uri||"",query:L.query||"",asy:L.asy!==false,method:"POST"==(L.method||B.method).toUpperCase()?"POST":"GET"},"all");var J="retry,timeout,rspType,customQS".split(",");for(var F=0,D=J.length;F<D;F++){L[J[F]]=(J[F] in L)?L[J[F]]:B[J[F]]}_.merge(K,L,"all");if(B.events){_.merge(K,B.events)}K.query=K.customQS(K.query);if(!K._useForm&&typeof K.query!="string"){K.query=B._buildQS(K.query,K._single)}return K},Instance:{_fun:_.fun(),_flag:0,_response:"",_retryNo:0,_end:false,_time:function(){var A=this,B=A.constructor;A._clear();if(A._retryNo<A.retry){A._retryNo++;_.tryF(A.onRetry,[A._retryNo],A);A.start()}else{_.tryF(A.onTimeout,[],A);A._onError(new Error("errTimout"))}},_onEnd:function(){var A=this;A._end=true;if(A._flag>0){clearTimeout(A._flag);A._flag=0}linb.Thread.resume(A.threadid);_.tryF(A.onEnd,[],A);A._clear()},_onStart:function(){var A=this;linb.Thread.suspend(A.threadid);_.tryF(A.onStart,[],A)},_onResponse:function(){var A=this;if(false!==_.tryF(A.beforeSuccess,[A._response,A.rspType,A.threadid],A)){_.tryF(A.onSuccess,[A._response,A.rspType,A.threadid],A)}A._onEnd()},_onError:function(B){var A=this;if(false!==_.tryF(A.beforeFail,[B,A.threadid],A)){_.tryF(A.onFail,[String(B),A.rspType,A.threadid],A)}A._onEnd()},abort:function(){this._onEnd()}},Static:{$abstract:true,_id:1,method:"GET",retry:2,timeout:60000,rspType:"text",type:"type",randkey:"id",callback:"callback",_buildQS:function(B,A){return A?_.serialize(B):_.urlEncode(B)},customQS:function(A){return A},_if:function(D,F,B){var C=linb.browser.ie,E=D.createElement(C?"<iframe name='"+F+"' "+(B?"onload='linb.IAjax._o(\""+F+"\")'":"")+">":"iframe"),A;if(F){E.id=E.name=F}if(!C&&B){E.onload=B}E.style.display="none";D.body.appendChild(E);A=frames[frames.length-1];return[E,A,A.document]},isCrossDomain:function(D){D=D||"";var C=arguments.callee,B=C.r||(C.r=/(http(s)?\:\/\/)?([\w\.]+(:[\d]+)?)(.*)/),A;if((A=D.indexOf(":"))==-1||A>D.indexOf("/")){return false}if(D.indexOf("file:")===0){return !!location.host}return location.host!=D.replace(B,"$3")},groupCall:function(F,G,A,B,E){var C,D=function(J,H,I){I[H]=linb.Thread(null,[function(K){J.threadid=K;J.start()}])};for(C in F){D(F[C],C,F)}return linb.Thread.group(null,F,G,function(){linb.Thread(E).suspend();_.tryF(A,arguments,this)},function(){_.tryF(B,arguments,this);linb.Thread(E).resume()}).start()}}});Class("linb.Ajax","linb.absIO",{Instance:{_single:true,_XML:null,start:function(){var self=this;if(false===_.tryF(self.beforeStart,[],self)){self._onEnd();return }if(!self._retryNo){self._onStart()}try{with(self){var x=self._XML=new window.XMLHttpRequest();if(asy){x.onreadystatechange=function(){if(self&&x&&x.readyState==4){self._complete.apply(self);self._clear()}}}if(!_retryNo&&method!="POST"){if(query){uri=uri.split("?")[0]+"?"+query}query=null}if(x.overrideMimeType){x.overrideMimeType("text/xml")}x.open(method,uri,asy);if(method!="POST"){x.setRequestHeader("Content-type","application/x-www-form-urlencoded")}x.setRequestHeader("X-Requested-With","XMLHttpRequest");if(x.overrideMimeType){x.setRequestHeader("Connection","close")}try{x.send(query)}catch(e){}if(asy){if(x&&timeout>0){_flag=_.asyRun(function(){if(self&&!self._end){self._time()}},self.timeout)}}else{_complete()}}}catch(e){self._onError(e)}return self},abort:function(){var B=this,A=B._XML;if(A){A.onreadystatechange=B._fun;A.abort();B._XML=null}arguments.callee.upper.call(B)},_clear:function(){var B=this,A=B._XML;if(A){A.onreadystatechange=B._fun;B._XML=null}},_complete:function(){with(this){var x=this._XML,status=x.status;_response=rspType=="text"?x.responseText:x.responseXML;if(status===undefined||status===0||status==304||(status>=200&&status<300)){_onResponse()}else{_onError(new Error("errXMLHTTP:"+status))}}}}});Class("linb.SAjax","linb.absIO",{Instance:{start:function(){var B=this,G,F=B.constructor,D,E,C=false;if(false===_.tryF(B.beforeStart,[],B)){B._onEnd();return }if(!B._retryNo){B._onStart()}G=B.id;if(F._pool[G]){F._pool[G].push(B)}else{F._pool[G]=[B]}var A=F._n=document;E=B.node=A.createElement("script");E.src=B.uri+(B.query?"?"+B.query:"");E.type="text/javascript";E.charset="utf-8";E.id="linb:script:"+B.id;E.onload=E.onreadystatechange=function(){var H=this.readyState;if(!C&&(!H||H=="loaded"||H=="complete")){C=true;if(B.rspType=="script"){B._onResponse()}else{B._loaded()}}};E.onerror=function(){B._loaded()};A.body.appendChild(E);if(B.timeout>0){B._flag=_.asyRun(function(){if(B&&!B._end){B._time()}},B.timeout)}},_clear:function(){var B=this,E=B.node,D=B.constructor,C=D.div||(D.div=D._n.createElement("div")),A=B.constructor._pool;A.length=0;delete A[B.id];if(E){B.node=E.id=E.onload=E.onreadystatechange=E.onerror=null;if(B.rspType!="script"){C.appendChild(E.parentNode&&E.parentNode.removeChild(E)||E);if(linb.browser.ie){_.asyRun(function(){C.innerHTML="";E.removeNode()})}else{C.innerHTML=""}}}},_loaded:function(){var A=this;_.asyRun(function(){if(A.id&&A.constructor._pool[A.id]){A._onError(new Error("errInData"))}},500)}},Static:{_pool:{},$response:function(E){var B=this;try{if(E&&(o=B._pool[E[B.randkey]])){for(var C=0,A=o.length;C<A;C++){o[C]._response=E;o[C]._onResponse()}}else{B._onError(new Error("errInData:"+E))}}catch(D){linb.Debugger&&linb.Debugger.trace(D)}},customQS:function(F){var G=this.constructor,C=G.type,B=G.randkey,A=G.callback,E=(this.rspType!="script"),D=E?B+"="+this.id+"&type=script&":"";if(typeof F=="string"){return(F&&F+"&")+D+(E?A+"=linb.SAjax.$response":"")}else{if(E){F[C]="script";F[B]=this.id;F[A]="linb.SAjax.$response"}return F}}}});Class("linb.IAjax","linb.absIO",{Instance:{_useForm:true,$e:function(A){this._onError(new Error("errInData:"+A))},start:function(){var L=this,H=L.constructor,G,B,K,D,F,C,I,A,E;if(false===_.tryF(L.beforeStart,[],L)){L._onEnd();return }if(!L._retryNo){L._onStart()}B=L.id;if(H._pool[B]){H._pool[B].push(L)}else{H._pool[B]=[L]}L._onload=E=function(M){if(!L.node){return }var T=L.node.contentWindow,R=linb.IAjax,N,U;if(linb.browser.opr){try{if(T.location=="about:blank"){return }}catch(Q){}}try{T.location=R._getDummy()+"#"+linb.ini.dummy_tag;if(T.name==L.id){L.$e("no response")}else{try{N=_.unserialize(decodeURIComponent(T.name));if(N&&(U=R._pool[N[R.randkey]])){for(var P=0,O=U.length;P<O;P++){U[P]._response=N;U[P]._onResponse()}}else{L.$e(T.name)}}catch(S){L.$e(T.name)}}}catch(Q){}};var J=H._if(document,B,E);L.node=J[0];L.frm=J[1];A=L.form=document.createElement("form");A.style.display="none";A.action=L.uri;A.method=L.method;A.target=B;F=L.query||{};for(G in F){if(F[G]&&F[G].nodeName=="INPUT"){F[G].id=F[G].name=G;A.appendChild(F[G]);I=true}else{K=document.createElement("input");K.id=K.name=G;K.value=typeof F[G]=="string"?F[G]:_.serialize(F[G]);A.appendChild(K)}}if(L.method=="POST"&&I){A.enctype="multipart/form-data";if(A.encoding){A.encoding=A.enctype}}document.body.appendChild(A);A.submit();if(L.timeout>0){L._flag=_.asyRun(function(){if(L&&!L._end){L._time()}},L.timeout)}},_clear:function(){var A=this,G=A.node,B=A.form,F=A.constructor,E=F.div||(F.div=document.createElement("div"));if(linb.browser.gek&&G){try{G.onload=null;var D=G.contentWindow.document;D.write(" ");D.close()}catch(C){}}A.form=A.node=A.frm=null;clearTimeout(A._tf);if(G){E.appendChild(G.parentNode.removeChild(G))}if(B){E.appendChild(B.parentNode.removeChild(B))}E.innerHTML=""}},Static:{method:"POST",_pool:{},_o:function(D){var A=this,B=A._pool[D],C=B[B.length-1];_.tryF(C._onload)},_getDummy:function(E){E=E||window;var I=this,D,A,H=E.document,K=linb.ini,J=linb.browser,F=I.isCrossDomain;if(I.dummy){return I.dummy}if(K.dummy){return I.dummy=K.dummy}if(J.gek){D=H.getElementsByTagName("link");for(var C=0,B=D.length;C<B;C++){A=D[C];if(A.rel=="stylesheet"&&!F(A.href)){return I.dummy=A.href.split("#")[0]}}}if(!F(K.path)){if(!H.getElementById("linb:img:bg")){A=H.createElement("img");A.id="linb:img:bg";A.src=K.path+K.file_bg;A.style.display="none";H.body.appendChild(A)}}D=H.getElementsByTagName("img");for(var C=0,B=D.length;C<B;C++){A=D[C];if(!F(A.src)){return I.dummy=A.src.split("#")[0]}}try{if(E!=E.parent){if((E=E.parent)&&!F(""+E.document.location.href)){return I._getDummy(E)}}}catch(G){}return"/favicon.ico"},customQS:function(C){var B=this,D=B.constructor,A=D.type;C[A]="iframe";C[D.randkey]=B.id;return C}}});Class("linb.SC",null,{Constructor:function(F,G,A,E,B){var D=linb.cache.SC,C;if(C=D[F]||(D[F]=_.get(window,F.split(".")))){_.tryF(G,[F,null,E],C)}else{B=B||{};B.$cb=G;if(A){B.threadid=E}C=D[F]=linb.SC._call(F||"",B,A)}return C},Static:{__gc:function(A){linb.cache.SC={}},get:function(B,A){return _.get(A||window,(B||"").split("."))},_call:function(L,M,H){H=!!H;var D,J,A,C,G=[],K=linb.SC.get,E=linb.cache.text,F=function(Q,R,P){var N=this;if(Q){if(!K(L)){if(N.$p){(N.$cache||E)[N.$tag]=Q}else{try{_.exec(Q)}catch(O){throw new Error('errInEval:"'+O+N.$tag)}}}}_.tryF(N.$cb,[N.$tag,Q,P],K(L)||{})},B=function(O){var N=this;_.tryF(N.$cb,[null,null,N.threadid],N)};if(!(A=K(L))){if(J=E[L]){H=false;F.call({$cb:M.$cb},J);delete E[L]}if(!(A=K(L))){C=linb.getPath(L,".js","js");M=M||{};M.$tag=L;var I;if(H&&!M.$p){M.rspType="script";I=linb.SAjax}else{M.asy=H;I=linb.Ajax}I(C,"",F,B,null,M).start();if(!H){A=K(L)}}}else{if(M.$cb){F.call(M)}}return A},loadSnips:function(F,B,G,A,D){if(!F||!F.length){_.tryF(A,[D]);return }var H={},J={$p:1,$cache:B||linb.cache.text};for(var E=0,C=F.length;E<C;E++){H[F[E]]=1}if(G||A){J.$cb=function(K){if(G){_.tryF(G,arguments,this)}delete H[K||this.$tag];if(_.isEmpty(H)){_.tryF(A,[D]);A=null;linb.Thread.resume(D)}}}linb.Thread.suspend(D);for(var E=0,I;I=F[E++];){this._call(I,_.merge({$tag:I},J),true)}},runInBG:function(E,F,G,A){var C=0,B,H,I=this,D=function(J){while(E.length>C&&(H=I.get(B=E[C++]))){}if(!H){I._call(B,{threadid:J},true)}if(E.length<C){linb.Thread(J).abort()}if(E.length==C){C++}};linb.Thread(null,[D],1000,F,G,A,true).start()},execSnips:function(A){var B,C=A||linb.cache.text;for(B in C){try{_.exec(C[B])}catch(D){throw new Error('errInEval:"'+D)}}C={}},groupCall:function(C,E,B,D){if(C){var A=this;A.execSnips();linb.Thread.suspend(D);A.loadSnips(C,0,E,function(){A.execSnips();_.tryF(B,[D]);B=null;linb.Thread.resume(D)})}else{_.tryF(B,[D])}}}});new function(){var M={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"},H={"@window":"window","@this":"this"},A=/[\x00-\x1f\x7f-\x9f\\\"]/g,B=/[^\x00-\xff]/g,C=/^\s*\x7b/,D=/^(-\d+|\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})(?:\.(\d{1,3}))?((?:[+-](\d{2}):(\d{2}))|Z)?$/,E=function(t,i,a,v,m,n){for(i in t){if((a=typeof (v=t[i]))=="string"&&(v=D.exec(v))){m=v[8]&&v[8].charAt(0);if(m!="Z"){n=(m=="-"?-1:1)*((+v[9]||0)*60)+(+v[10]||0)}else{n=0}m=new Date(+v[1],+v[2]-1,+v[3],+v[4],+v[5],+v[6],+v[7]||0);n-=m.getTimezoneOffset();if(n){m.setTime(m.getTime()+n*60000)}t[i]=m}else{if(a=="object"&&a.constructor===Object){E(t[i])}}}return t},R=function(n){return n<10?"0"+n:n},F="function",N="number",L="boolean",S="string",O="object",T={},S16=function(b){return Math.floor(b/16).toString(16)+(b%16).toString(16)},MS=function(x,s){return"."+((s=x[s]())?s<10?"00"+s:s<100?"0"+s:s:"000")},Z=(function(a,b){a=-(new Date).getTimezoneOffset()/60;b=a>0?"+":"-";a=""+Math.abs(a);return b+a+(a.length==1?"0":"")+":00"})();T["undefined"]=function(){return"undefined"};T[L]=function(x){return String(x)};T[N]=function(x){return isFinite(x)?String(x):"null"};T[S]=function(x){return H[x]||'"'+(A.test(x)?x.replace(A,function(a,b){if(b=M[a]){return b}b=a.charCodeAt();return"\\u00"+S16(b)}):B.test(x)?x.replace(B,function(a,b){if(b=M[a]){return b}b=a.charCodeAt();return"\\u"+S16(b)}):x)+'"'};T[O]=function(x,dateformat,deep){var me=arguments.callee,map=me.map||(me.map={prototype:1,constructor:1,toString:1,valueOf:1});deep=deep||1;if(deep>99){return'"too much recursion!"'}if(x){var a=[],b=[],c=x.constructor,f,i,l,v;if(x===window){return"window"}if(x===document){return"document"}if((typeof x==O||typeof x==F)&&typeof c!=F){return x.nodeType?"document.getElementById('"+x.id+"')":"$alien"}else{if(c==Array){a[0]="[";l=x.length;for(i=0;i<l;++i){if(f=T[typeof (v=x[i])]){if(typeof (v=f(v,dateformat,deep+1))==S){b[b.length]=v}}}a[2]="]"}else{if(c==Date){if(dateformat=="utc"){return'"'+x.getUTCFullYear()+"-"+R(x.getUTCMonth()+1)+"-"+R(x.getUTCDate())+"T"+R(x.getUTCHours())+":"+R(x.getUTCMinutes())+":"+R(x.getUTCSeconds())+MS(x,"getUTCMilliseconds")+'Z"'}else{if(dateformat=="gmt"){return'"'+x.getFullYear()+"-"+R(x.getMonth()+1)+"-"+R(x.getDate())+"T"+R(x.getHours())+":"+R(x.getMinutes())+":"+R(x.getSeconds())+MS(x,"getMilliseconds")+Z+'"'}else{return"new Date("+[x.getFullYear(),x.getMonth(),x.getDate(),x.getHours(),x.getMinutes(),x.getSeconds(),x.getMilliseconds()].join(",")+")"}}}else{if(c==RegExp){return String(x)}else{if(typeof x.serialize==F){x=x.serialize()}if(typeof x==O){if(x.nodeType){return"document.getElementById('"+x.id+"')"}else{a[0]="{";for(i in x){if(!map[i]){if(f=T[typeof (v=x[i])]){if(typeof (v=f(v,dateformat,deep+1))==S){b[b.length]=T.string(i)+":"+v}}}}a[2]="}"}}else{return String(x)}}}}}a[1]=b.join(", ");return a[0]+a[1]+a[2]}return"null"};T[F]=function(x){return x.$path?x.$path:String(x)};_.serialize=function(obj,dateformat){return T[typeof obj](obj,dateformat)||""};_.unserialize=function(str,dateformat){try{str=eval(C.test(str)?"("+str+")":str);if(dateformat){if(typeof str==="object"){E(str)}else{if(typeof str==="string"){return E({a:str}).a}}}return str}catch(e){return false}}};_.id=function(){var A=this,B=arguments.callee;if(A.constructor!==B||A.a){return(B._||(B._=new B)).next()}A.a=[-1];A.b=[""];A.value=""};_.id.prototype={constructor:_.id,_chars:"abcdefghijklmnopqrstuvwxyz".split(""),next:function(i){with(this){var m,k,l,i=(i||i===0)?i:b.length-1;if((m=a[i])>=25){m=0;if(i===0){a.splice(0,0,1);b.splice(0,0,"a");l=a.length;for(k=1;k<l;++k){a[k]=0;b[k]="0"}++i}else{next(i-1)}}else{++m}a[i]=m;b[i]=_chars[m];return value=b.join("")}}};Class("linb.Event",null,{Constructor:function(M,K,A,O){var H=linb.Event,R=0,J,D=linb.DragDrop,C,B,I,F;if(!(M=M||window.event)||!(C=K)){return false}B=M.type;if(O){C._tid=O}if("mouseover"==B||"mouseout"==B){R=(D&&D._profile.isWorking)?1:2;if(R!=1&&A){return H.$FALSE}if(!H._handleMouseHover(M,C,H.getSrc(M),R==1)){return H.$FALSE}if(R==1){I=D&&D._dropElement}}if((F=H._tabHookStack).length&&H._kb[B]&&(M.$key||M.keyCode||M.charCode)==9&&false===H._handleTabHook(H.getSrc(M),F=F[F.length-1])){return }J=O||H.getId(C);if(F=H._getProfile(J)){if(B=="mousedown"){_.tryF(linb.Dom._blurTrigger,[F,M,C],C)}if(B=="resize"){B="size";if(linb.browser.ie&&window===C){var E=linb.browser.contentBox&&document.documentElement.clientWidth||document.body.clientWidth,N=linb.browser.contentBox&&document.documentElement.clientHeight||document.body.clientHeight;if(F._w==E&&F._h==N){return }F._w=E;F._h=N}}var L,P,S,G=true,Q=[];for(L=0;L<=2;++L){if(R==1&&L!==0&&!M.$force){break}if(R==2&&L===0){continue}S=H._type[B+L]||(H._type[B+L]=H._getEventName(B,H._eventtag[L]));if(!M.$e||M.$all||(S==M.$name)){Array.prototype.push.apply(Q,F._getEV(J,S,C))}}P=function(T){var W,V,U=arguments.callee.funs;for(W=0;V=U[W++];){if(false===V.call(C,F,T||M,C)){return false}}return true};P.funs=Q;G=P();if(D){if(B=="drag"){D._onDrag=P}else{if(B=="dragover"){D._onDragover=P}}}if(R==1){if("mouseover"==B&&D._dropElement==C&&I&&I!=C){H({type:"mouseout",target:I,$e:true,$name:"beforeMouseout",preventDefault:function(){this.returnValue=false},stopPropagation:function(){this.cancelBubble=true}},I);D.setDropElement(C)}if("mouseout"==B&&!D._dropElement&&I&&I==C){H._preDropable=J;_.asyRun(function(){delete linb.Event._preDropable})}if(C==D._dropElement){G=false}}if(G===false){H.stopBubble(M)}return G}},Static:{$FALSE:linb.browser.opr?undefined:false,_type:{},_kb:{keydown:1,keypress:1,keyup:1},_reg:/([\.\w]+)(-[\.\w]+)?(:[\.\w]+:)([\.\w]*)/,$eventhandler:function(){return linb.Event(arguments[0],this)},$eventhandler2:function(){return linb.Event(arguments[0],this,1)},_eventtag:"before,on,after".split(","),_events:("mouseover,mouseout,mousedown,mouseup,mousemove,click,dblclick,keydown,keypress,keyup,scroll,blur,focus,load,unload,change,select,submit,error,location,size,dragbegin,drag,dragstop,dragleave,dragenter,dragover,drop").split(","),_getEventName:function(A,D){var B=arguments.callee,C=B.map||(B.map={});return C[A+D]||(A=A.charAt(0).toUpperCase()+A.substring(1))&&(C[A+D]=D?(D+A.charAt(0).toUpperCase()+A.substring(1)):function(G){var H,F,E=[];for(H=0;F=linb.Event._eventtag[H];H++){E[H]=F+G}return E}(A))},_getEventType:function(A){var B=arguments.callee,C=B.map||(B.map={});return C[A]||(C[A]=A.replace(/^(on|before|after)/,"").toLowerCase())},_getProfile:function(A){return A&&linb.cache.dom[A.replace(this._reg,"$1$3")]},_handleTabHook:function(D,C){if(D===document){return true}var B=D,A;do{if(B==C[0]){return true}}while(B&&(B=B.parentNode)&&B!==document&&B!==window);A=_.tryF(C[1],[C[0]],D);return false},_handleMouseHover:function(B,F,A,I){if(F==document){return true}var D=(B.type=="mouseover"?B.fromElement:B.toElement)||B.relatedTarget;if(I&&B.type=="mouseover"&&this._preDropable){try{do{if(D&&D.id&&D.id==this._preDropable){return true}}while(D&&(D=D.parentNode)&&D!==document&&D!==window)}catch(H){}}if(linb.browser.gek){try{do{if(D==F){return false}}while(D&&(D=D.parentNode))}catch(H){var G=this.getPos(B),D=linb([F]),C=D.offset(),J=D.cssSize(),E=(G.left<C.left||G.left>C.left+J.width||G.top<C.top||G.top>C.top+J.height);return B.type=="mouseover"?!E:E}}else{do{if(D==F){return false}}while(D&&(D=D.parentNode))}return true},_tabHookStack:[],pushTabOutTrigger:function(B,A){this._tabHookStack.push([B,A]);return this},popTabOutTrigger:function(A){if(A){this._tabHookStack=[]}else{this._tabHookStack.pop()}return this},$EVENTHANDLER:"return linb.Event(arguments[0],this)",$EVENTHANDLER2:"return linb.Event(arguments[0],this,1)",getSrc:function(B){var A;return((A=B.target||B.srcElement||null)&&linb.browser.kde&&A.nodeType==3)?A.parentNode:A},getId:function(A){return window===A?"___window":document===A?"___document":A?A.id:""},getBtn:function(A){return linb.browser.ie?A.button==4?"middle":A.button==2?"right":"left":A.which==2?"middle":A.which==3?"right":"left"},getPos:function(B){B=B||window.event;if(typeof B.pageX=="number"){return{left:B.pageX,top:B.pageY}}else{var A=linb.browser.contentBox?document.documentElement:document.body;return{left:B.clientX+A.scrollLeft,top:B.clientY+A.scrollTop}}},getKey:function(A){A=A||window.event;var F=[],I,C=A.$key||A.keyCode||A.charCode||0;if(typeof C=="string"){F[0]=C}else{var H=String.fromCharCode(C),G=A.type;if((G=="keypress"&&C>=33&&C<=128)||((C>=48&&C<=57)||(C>=65&&C<=90))){F[0]=H}else{if(!(I=arguments.callee.map)){I=arguments.callee.map={};var C,E=("3,enter,8,backspace,9,tab,12,numlock,13,enter,19,pause,20,capslock,27,esc,32, ,33,pageup,34,pagedown,35,end,36,home,37,left,38,up,39,right,40,down,44,printscreen,45,insert,46,delete,50,down,52,left,54,right,56,up,91,win,92,win,93,apps,96,0,97,1,98,2,99,3,100,4,101,5,102,6,103,7,104,8,105,9,106,*,107,+,109,-,110,.,111,/,112,f1,113,f2,114,f3,115,f4,116,f5,117,f6,118,f7,119,f8,120,f9,121,f10,122,f11,123,f12,144,numlock,145,scroll,186,;,187,=,189,-,190,.,191,/,192,`,219,[,220,\\,221,],222,',224,meta,63289,numlock,63276,pageup,63277,pagedown,63275,end,63273,home,63234,left,63232,up,63235,right,63233,down,63272,delete,63302,insert,63236,f1,63237,f2,63238,f3,63239,f4,63240,f5,63241,f6,63242,f7,63243,f8,63244,f9,63245,f10,63246,f11,63247,f12,63248,print").split(",");for(var D=1,B=E.length;D<B;D=D+2){I[E[D-1]]=E[D]}E.length=0;I[188]=","}F[0]=I[C]||H}}if((A.modifiers)?(A.modifiers&Event.CONTROL_MASK):(A.ctrlKey||A.ctrlLeft||C==17||C==57391)){if(C==17||C==57391){F[0]=""}F.push("1")}else{F.push("")}if((A.modifiers)?(A.modifiers&Event.SHIFT_MASK):(A.shiftKey||A.shiftLeft||C==16||C==57390)){if(C==16||C==57390){F[0]=""}F.push("1")}else{F.push("")}if((A.modifiers)?false:(A.altKey||A.altLeft||C==18||C==57388)){if(C==18||C==57388){F[0]=""}F.push("1")}else{F.push("")}return F},getEventPara:function(D){var E=this.getPos(D),C=this.getKey(D),B={pageX:E.left,pageY:E.top,keyCode:C[0],ctrlKey:C[1],shiftKey:C[2],altKey:C[3]};for(var A in D){if(A.charAt(0)=="$"){B[A]=D[A]}}return B},stopBubble:function(A){A=A||window.event;if(A.stopPropagation){A.stopPropagation()}A.cancelBubble=true;this.stopDefault(A)},stopDefault:function(A){A=A||window.event;if(A.preventDefault){A.preventDefault()}A.returnValue=false},keyboardHook:function(H,A,C,E,G,F,I){if(H){var B=linb.cache.hookKey,D=(H||"").toLowerCase()+":"+(A?"1":"")+":"+(C?"1":"")+":"+(E?"1":"");if(typeof G!="function"){delete B[D]}else{B[D]=[G,F,I]}}return this}}});Class("linb.CSS",null,{Static:{_r:linb.browser.ie?"rules":"cssRules",_baseid:"linb:css:base",_firstid:"linb:css:first",_lastid:"linb:css:last",_createCss:function(H,D){var C=this,A=this._getHead(),F=C._firstid,E=C._lastid,B,G;B=document.createElement("style");B.type="text/css";B.id=H;if(!D){G=document.getElementById(F)||A.firstChild;while((G=G.nextSibling)&&!/^(script|link|style)$/i.test(""+G.tagName)){}if(G){A.insertBefore(B,G)}else{if(G=document.getElementById(E)){A.insertBefore(B,G)}else{A.appendChild(B)}}}else{A.appendChild(B)}return B},_getCss:function(B,A){return document.getElementById(B)||this._createCss(B,A)},_getBase:function(){return this._getCss(this._baseid)},_getFirst:function(){return this._getCss(this._firstid)},_getLast:function(){return this._getCss(this._lastid,true)},_getHead:function(){return this._head||(this._head=document.getElementsByTagName("head")[0]||document.documentElement)},_check:function(){if(!linb.browser.ie){return }var E=0;for(var D=this._getHead(),C=0,B=D.childNodes,A;A=B[C++];){if(A.type=="text/css"){E++}}return E>20},get:function(F,E){for(var D=this._getHead(),C=0,B=D.childNodes,A;A=B[C++];){if(A.type=="text/css"&&F in A&&A[F]==E){return A}}return false},addStyleSheet:function(A,H,B){var F,D=this,C=D._getHead(),E=function(I,M,J){var L=document.createElement("style");L.type="text/css";if(M){L.id=M}if(linb.browser.ie){L.styleSheet.cssText=I||""}else{try{L.appendChild(document.createTextNode(I||""))}catch(K){L.styleSheet.cssText=I||""}}C.insertBefore(L,J?D._getLast():D._getBase());L.disabled=true;L.disabled=false;return L},G=function(I,J){var K=J?D._getLast():D._getBase();K.styleSheet.cssText+=I;return K};if(H&&(H=H.replace(/[^\w\-\_\.\:]/g,"_"))&&(F=D.get("id",H))){return F}if(D._check()){return G(A,B)}else{return E(A,H,B)}},includeLink:function(B,G,E,A){var F,D=this,C=D._getHead();if(B&&(F=D.get("href",B))){}else{F=document.createElement("link");F.type="text/css";F.rel="stylesheet";F.href=B;if(G){F.id=G}F.media="all";_.each(A,function(I,H){F.setAttribute(H,I)})}C.insertBefore(F,E?D._getBase():D._getLast());F.disabled=true;F.disabled=false;return F},remove:function(C,B){var A=this._getHead();if(B=this.get(C,B)){B.disabled=true;A.removeChild(B)}},replaceLink:function(A,I,E,B){var F=this,G=F._getHead(),D={},C,H;D[I]=B;C=F.includeLink(A,null,false,D);if(H=F.get(I,E)){G.replaceChild(C,H)}C.disabled=true;C.disabled=false},_build:function(A,D,B){var C="";_.each(D,function(F,E){C+=E.replace(/([A-Z])/g,"-$1").toLowerCase()+":"+F+";"});return B?C:A+"{"+C+"}"},setStyleRules:function(D,J,B){var I=this,N=true,C=document.styleSheets,H,E,A,L,F,G,M,K;D=_.str.trim(D.replace(/\s+/g," "));if(!(J&&B)){L=D.toLowerCase();_.arr.each(_.toArr(C),function(P){try{P[I._r]}catch(O){return }_.arr.each(_.toArr(P[I._r]),function(Q,R){if(!Q.selectorText){return }A=Q.selectorText.replace(/\.(\w+)\[CLASS~="\1"\]/g,".$1").replace(/\[ID"([^"]+)"\]/g,"#$1").replace(/\*([.#])/g,"$1").replace(/\s+/g," ").replace(/\*\|/g,"").replace(/(\s*,\s*)/g,",").toLowerCase();K=_.toArr(A);if(!J){N=false;if(_.arr.indexOf(K,L)!=-1&&K.length>1){K=_.arr.removeFrom(K,_.arr.indexOf(K,L)).join(",");M=Q.cssText.slice(Q.cssText.indexOf("{")+1,Q.cssText.lastIndexOf("}"));if(P.insertRule){P.insertRule(K+"{"+M+"}",P[I._r].length)}else{if(P.addRule){P.addRule(K,M)}}if(P.deleteRule){P.deleteRule(R)}else{P.removeRule(R)}P.disabled=true;P.disabled=false}else{if(A==L){if(P.deleteRule){P.deleteRule(R)}else{P.removeRule(R)}P.disabled=true;P.disabled=false}}}else{if(A==L){H=Q;return false}if(_.arr.indexOf(K,L)!=-1){E=Q;return false}}},null,true);if(H){N=false;try{_.each(J,function(R,Q){Q=Q.replace(/(-[a-z])/gi,function(S,T){return T.charAt(1).toUpperCase()});H.style[Q]=typeof R=="function"?R(H.style[Q]):R})}catch(O){}P.disabled=true;P.disabled=false;return false}else{if(E){N=false;P.insertRule(I._build(D,J),P[I._r].length);P.disabled=true;P.disabled=false;return false}}},null,true)}if(B||N){I._addRules(D,J)}return I},_addRules:function(A,C){var B=this,D=B._getLast(),E=D.sheet||D.styleSheet;if(E.insertRule){E.insertRule(B._build(A,C),E[B._r].length)}else{if(E.addRule){E.addRule(A,B._build(A,C,true))}}D.disabled=true;D.disabled=false;return B}},Initialize:function(){var A=linb.browser;this.addStyleSheet("html{color:#000;background:#FFF;}body{cursor:default;font:13px/1.231 arial,helvetica,clean,sans-serif;}"+(linb.browser.ie?"body{font-size:small;font:x-small;}":"")+"body *{line-height:1.22em;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;empty-cells:show;font-size:inherit;font:100%;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}ol,ul,li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym {border:0;font-variant:normal;}sup {vertical-align:text-top;}sub {vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}"+(A.ie?"input,textarea,select{font-size:100%;}":"")+"legend{color:#000;}del,ins{text-decoration:none;}pre,code,kbd,samp,tt{font-family:monospace;"+(A.ie?"font-size:108%;":"")+"line-height:100%;}select,input,button,textarea{font:99% arial,helvetica,clean,sans-serif;border-width:1px;}a{text-decoration:none;"+(A.gek?"-moz-user-select:none;":"")+"}a:hover{color:red}"+(A.gek?"a:focus{-moz-outline-offset:-1px !important}":"")+"div{font-size:12px;}span{"+(A.gek?"display:-moz-inline-block;display:-moz-inline-box;display:inline-block;":A.ie6?"display:inline-box;display:inline;":"display:inline-block;")+(A.ie?"zoom:1;":"")+(A.gek3?"":"vertical-align:middle;")+"}h1{font-size:138.5%;}h2{font-size:123.1%;}h3{font-size:108%;}h1,h2,h3{margin:1em 0;}h1,h2,h3,h4,h5,h6,strong {font-weight:bold;}em{font-style:italic;}","linb.CSS")}});Class("linb.absProfile",null,{Constructor:function(){if(!this.$id){this.$id=linb.absProfile.$id.next()}},Instance:{getId:function(){return this.$id},link:function(D,E,C){var A=this,B="$"+A.$id;C=C||A;if(D[B]){A.unLink(E)}D[B]=C;if(D instanceof Array){D.push(C)}A._links[E]=D;return A},unLink:function(D){var A=this,C,B="$"+A.$id;if(!A._links){return }if(!(C=A._links[D])){return }if(C instanceof Array){_.arr.removeValue(C,C[B])}delete C[B];delete A._links[D];return A},unLinkAll:function(){var B=this,E="$"+B.$id,A=B._links,D,C;for(C in A){D=A[C];if(D instanceof Array){_.arr.removeValue(D,D[E])}delete D[E]}B._links={};return B}},Static:{$id:new _.id,$abstract:true}});Class("linb.DomProfile","linb.absProfile",{Constructor:function(C,B){arguments.callee.upper.call(this);var A=this;A.domNode=B;linb.cache.dom[A.domId=C]=A;A.nodeVars={}},Instance:{__gc:function(){var A=this,B;if(A.nodeVars&&(B=A.domNode)){_.each(A.nodeVars,function(D,C){B[C]=null})}delete linb.cache.dom[A.domId];_.breakO(A)},_getEV:function(F,C){var B=[],E=linb.cache.dom[F];if(E&&(E=E.events)&&(E=E[C])){for(var D=0,A=E.length;D<A;D++){if(typeof E[E[D]]=="function"){B[B.length]=E[E[D]]}}}return B}},Static:{get:function(A){return linb.cache.dom[A]},$abstract:true}});Class("linb.absBox",null,{Constructor:function(){this._nodes=[]},Before:function(B){var A=linb.absBox;if(A){(A=A.$type)[B.replace("linb.","")]=A[B]=B}},Instance:{get:function(A){var B=this._nodes;return B[A]||B},each:function(B){var C=this;for(var E=0,D=C._nodes,A=D.length;E<A;E++){if(false===B.call(C,D[E],E)){break}}return C},isEmpty:function(){return !this._nodes.length},merge:function(D){if(this==linb.win||this==linb.doc||this==linb("body")){return this}var A=this,F=A.constructor,D=D._nodes,C=0,B,E=A._nodes;if(D.length){for(;B=D[C++];){E[E.length]=B}A._nodes=F._unique(E)}return A},reBoxing:function(D,A){var B=this,C=linb.absBox.$type[D||"Dom"];if(C==B.KEY){return B}if(C=linb.SC(C)){return C.pack(B._nodes,A)}}},Static:{$abstract:true,$type:{},pack:function(A,B){var C=new this(false);C._nodes=A?B===false?A:typeof this._ensureValues=="function"?this._ensureValues(A):A:[];return C},_unique:function(B){var F={},C=[],E=0,D,A;for(;D=B[E++];){A=D.$id;if(!F[A]){F[A]=1;C[C.length]=D}}return C},plugIn:function(B,A){this.prototype[B]=A;return this}}});Class("linb.Dom","linb.absBox",{Instance:{serialize:function(){var A=[];this.each(function(B){A[A.length]=B.id});return"linb(['"+A.join("','")+"'])"},id:function(D,E){var C,B,A=linb.cache.dom;if(typeof D=="string"){return this.each(function(F){if((B=F.id)!==D){if(!E&&(C=A[B])){A[D]=C;delete A[B]}F.id=D}})}else{return this.get(0).id}},$sum:function(B,C){var A=[],E,D;this.each(function(F){E=B.apply(F,C||[]);if(E){if(E.constructor==Array){for(D=0;F=E[D];D++){A[A.length]=F}}else{A[A.length]=E}}});return linb(A)},children:function(){return this.$sum(function(){return _.toArr(this.childNodes)})},clone:function(A){return this.$sum(function(){return this.cloneNode(A?true:false)},arguments)},$iterator:function(C,B,E,A,D){return this.$sum(function(L,H,O,M,N){var Q=arguments.callee;if(typeof M!="function"){var I=M||0;M=function(S,R){return R==I}}var J=0,G,F=this,K=0,P;while(F){if(F.nodeType==1){if(M(F,J++)===true){break}}if(L=="x"){F=H?F.nextSibling:F.previousSibling}else{if(L=="y"){F=H?Q.call(H===1?F.lastChild:F.firstChild,"x",(H!==1),true,0,N):F.parentNode}else{O=_.isBool(O)?O:true;G=null;F=H?(P=O&&F.firstChild)?P:(P=F.nextSibling)?P:(G=F.parentNode):(P=O&&F.lastChild)?P:(P=F.previousSibling)?P:(G=F.parentNode);if(G){while(!(G=H?F.nextSibling:F.previousSibling)){F=F.parentNode;if(!F){if(K){return null}else{K=true;G=H?document.body.firstChild:document.body.lastChild;break}}}F=G}O=true}}}return F},arguments)},query:function(B,J,I){B=B||"*";var G="getElementsByTagName",H=arguments.callee,F=H.f1||(H.f1=function(M,L,P){var O=this[G](M),K=[];if(P.test(this[L])){K[K.length]=this}for(var Q,N=0;Q=O[N];N++){if(P.test(Q[L])){K[K.length]=Q}}return K}),E=H.f2||(H.f2=function(M,L,P){var O=this[G](M),K=[];if(this[L]==P){K[K.length]=this}for(var Q,N=0;Q=O[N];N++){if(Q[L]==P){K[K.length]=Q}}return K}),D=H.f3||(H.f3=function(M,L,P){var O=this[G](M),K=[];if(this[L]){K[K.length]=this}for(var Q,N=0;Q=O[N];N++){if(Q[L]){K[K.length]=Q}}return K}),C=H.f4||(H.f4=function(K){return _.toArr(this[G](K))}),A=H.f5||(H.f5=function(M,L){var O=this[G](M),K=[];if(L(this)){K[K.length]=this}for(var P,N=0;P=O[N];N++){if(L(P)){K[K.length]=P}}return K});return this.$sum(J?typeof J=="function"?A:I?I.constructor==RegExp?F:E:D:C,[B,J,I])},$add:function(A,F){F=linb(F);var C=this.get(0),G=linb.Dom,B=linb.cache.dom,D,E;F.each(function(J){D=(E=J.id)&&(E=B[E])&&E.LayoutTrigger&&G.getStyle(C,"display")!="none"&&E.LayoutTrigger;A.call(C,J);if(D){for(var I=0,H=D.length;I<H;I++){D[I].call(E)}}});return this},prepend:function(B){var A;return this.$add(function(D){var C=this;if(C.firstChild!=D){if(C.firstChild){C.insertBefore(D,A||(A=C.firstChild))}else{C.appendChild(D)}}},B)},append:function(A){return this.$add(function(B){if(this.lastChild!=B){this.appendChild(B)}},A)},addPrev:function(A){return this.$add(function(B){if(this.previousSibling!=B){this.parentNode.insertBefore(B,this)}},A)},addNext:function(B){var A;return this.$add(function(D){var C=this;if((A=C.nextSibling)!=D){if(A){C.parentNode.insertBefore(D,A)}else{C.parentNode.appendChild(D)}}},B)},replace:function(F,E){F=linb(F);var B,C,G=this.get(0),D=F.get(),A=D.length;if(A>0&&(B=D[A-1])){G.parentNode.replaceChild(B,G);for(C=0;C<A-1;C++){B.parentNode.insertBefore(D[C],B)}if(E){this.remove(E)}}return F},swap:function(C){var A=this,B=linb.Dom.getEmptyDiv().html("*",false);C=linb(C);A.replace(B,false);C.replace(A,false);B.replace(C,false);B.get(0).innerHTML="";document.body.insertBefore(B.get(0),document.body.firstChild);return A},remove:function(B){var A=arguments.callee,C=A._c||(A._c=document.createElement("div"));if(B===false){this.each(function(E,D){if(E.parentNode){E.parentNode.removeChild(E)}})}else{this.each(function(D){C.appendChild(D)});C.innerHTML="";_.resetRun("dom.__gc",linb.Dom.__gc,300)}return this},empty:function(A){return this.each(function(B){linb([B]).html("",A)})},html:function(E,D){var C="",B,A,F=this.get(0);D=D!==false;if(E!==undefined){if(F.nodeType==3){F.nodeValue=E}else{if(!(A=F.firstChild)&&E==""){return this}if(!D&&linb.browser.ie){while(B=F.firstChild){F.removeChild(B)}}if(D){F.innerHTML=""}F.innerHTML=E;if(D&&A){_.resetRun("dom.__gc",linb.Dom.__gc,300)}}return this}else{return(F.nodeType==3)?F.nodeValue:F.innerHTML}},outerHTML:function(I,B){var M=this,L,N="",E=M.get(0),D=E.id;if(I!==undefined){if(E.nodeVars&&(L=E.domNode)){_.each(E.nodeVars,function(P,O){L[O]=null})}if(linb.browser.gek){var F=M.replace(_.str.toDom(I),false);M._nodes[0]=F.get(0)}else{var J,A=(J=E.previousSibling)?E.previousSibling:E.parentNode;E.outerHTML=I;if(A){M._nodes[0]=J?A.nextSibling:A.firstChild}}linb([E]).remove(B);return M}else{if(linb.browser.gek){var H=linb.Dom,G=H.getEmptyDiv(),F=H.getEmptyDiv(2),K=F.parent(),C;if(C=E.parentNode){M.replace(F,false)}G.append(E);N=G.html();if(C){F.replace(E,false)}G.empty();K.prepend(F);return N}else{return E.outerHTML}}},text:function(C){if(C!==undefined){var B=this,A=[];B.each(function(E){var D=E.childNodes[0];if(D&&D.nodeType!=1){D.nodeValue=C}else{A[A.length]=E}});if(A.length){linb(A).empty().each(function(D){D.appendChild(document.createTextNode(C))})}return B}else{return(function(I){var F,E=I.childNodes,D=E.length,H="",G=arguments.callee;for(F=0;F<D;F++){if(E[F].nodeType!=8){H+=(E[F].nodeType!=1)?E[F].nodeValue:G(E[F])}}return H})(this.get(0))}},attr:function(A,H){var J=this,G=arguments.callee,E=G.map1||(G.map1={"class":"className",readonly:"readOnly",tabindex:"tabIndex","for":"htmlFor",maxlength:"maxLength",cellspacing:"cellSpacing",rowspan:"rowSpan",value:"value"}),D=G.map2||(G.map2={href:1,src:1,style:1});if(typeof A=="object"){for(var C in A){G.call(J,C,A[C])}return J}var I=linb.browser.ie&&A=="style",F=!D[A=E[A]||A];if(H!==undefined){return J.each(function(L){if(H===null){if(I){L.style.cssText=""}else{if(F){try{L[A]=null;if(L.nodeType==1){L.removeAttribute(A)}}catch(K){}}}}else{if(I){L.style.cssText=""+H}else{if(F){L[A]=H;if(L.nodeType==1&&typeof H=="string"){L.setAttribute(A,H)}}else{L.setAttribute(A,H)}}}})}else{var B=J.get(0);if(I){return B.style.cssText}if(A=="selected"&&linb.browser.kde){B.parentNode.selectedIndex}return((A in B)&&F)?B[A]:B.getAttribute(A,linb.browser.ie&&!F?2:undefined)}},css:function(A,B){return(typeof A=="object"||B!==undefined)?this.each(function(C){linb.Dom.setStyle(C,A,B)}):linb.Dom.getStyle(this.get(0),A)},caret:function(C,G){var M=this.get(0),O=M.tagName,K=typeof C,B=linb.browser.ie,L;if(!/^(input|textarea)$/i.test(O)){return this}M.focus();if(K=="number"){if(B){var A=M.createTextRange();A.collapse(true);A.moveEnd("character",G);A.moveStart("character",C);A.select()}else{M.setSelectionRange(C,G)}return this}else{if(K=="string"){var A=this.caret(),F=0,E=0,J,N=M.value,D=/\r/g;if(B){F=N.substr(0,A[0]).match(D);F=(F&&F.length)||0;E=C.match(D);E=(E&&E.length)||0}if(linb.browser.opr){F=C.match(/\n/g);F=(F&&F.length)||0;E=C.match(/\r\n/g);E=(E&&E.length)||0;E=F-E;F=0}M.value=N.substr(0,A[0])+C+N.substr(A[1],N.length);J=A[0]-F+E+C.length;this.caret(J,J);return J}else{if(B){var A=document.selection.createRange(),H=A.text,F=H.length,I,E;A.moveStart("character",-M.value.length);I=A.text.length;return[I-F,I]}else{return[M.selectionStart,M.selectionEnd]}}}},show:function(E,D){var C,B,F="auto",A=linb.Dom.HIDE_VALUE;return this.each(function(G){if(G.nodeType!=1){return }C=G.style;if(B=(D||(C.top==A&&(G._top||F)))){C.top=B}if(B=(E||(C.left==A&&(G._left||F)))){C.left=B}if(B=G._position){if(C.position!=B){C.position=B}}if(C.visibility!="visible"){C.visibility="visible"}})},hide:function(){var B,A;return this.each(function(C){if(C.nodeType!=1){return }B=C.style;A=linb([C]);C._position=B.position;C._top=B.top;C._left=B.left;if(B.position!="absolute"){B.position="absolute"}B.top=B.left=linb.Dom.HIDE_VALUE})},cssRegion:function(J,K){var N=this;if(typeof J=="object"){var F,M,B,A=N._nodes[0],E=linb.Dom,G=E._setPxStyle,B={};for(var D=0,H=E._boxArr;F=H[D++];){B[F]=((F in J)&&J[F]!==null)?G(A,F,J[F]):false}if(K){var G=E.$hasEventHandler;if(G(A,"onsize")&&(B.width||B.height)){N.onSize(true,{width:B.width,height:B.height})}if(G(A,"onlocation")&&(B.left||B.top)){N.onLocation(true,{left:B.left,top:B.top})}}return N}else{var C=J,L=K,I=C?N.offset(null,L):N.cssPos(),O=N.cssSize();return{left:I.left,top:I.top,width:O.width,height:O.height}}},cssSize:function(I,E){var H=this,A=H._nodes[0],B=linb.Dom,C=B._setPxStyle,F,D;if(I){var G;F=I.width!==null?C(A,"width",I.width):false;D=I.height!==null?C(A,"height",I.height):false;if(E&&(F||D)&&B.$hasEventHandler(A,"onsize")){H.onSize(true,{width:F,height:D})}return H}else{return{width:H._W(A,1)||0,height:H._H(A,1)}}},cssPos:function(H,F){var D=this._nodes[0],G=linb.Dom,E=G._setPxStyle,B,A;if(H){var C;B=H.left!=null?E(D,"left",H.left):false;A=H.top!==null?E(D,"top",H.top):false;if(F&&(B||A)&&G.$hasEventHandler(D,"onlocation")){this.onLocation(true,{left:B,top:A})}return this}else{E=G.getStyle;return{left:parseInt(E(D,"left"))||0,top:parseInt(E(D,"top"))||0}}},offset:function(E,N){var J,H,S=linb.browser,W=this,L=W.get(0),P=L,G=L.parentNode,F=L.offsetParent,V=L.ownerDocument,R=V.documentElement,T=V.body,B=/^inline|table.*$/i,D=linb.Dom.getStyle,C=D(L,"position")=="fixed",U=arguments.callee,I=U.add||(U.add=function(Z,X,Y){Z.left+=parseInt(X,10)||0;Z.top+=parseInt(Y,10)||0}),M=U.border||(U.border=function(X,Y){I(Y,D(X,"borderLeftWidth"),D(X,"borderTopWidth"))}),K=U.TTAG||(U.TTAG={TABLE:1,TD:1,TH:1}),O=U.HTAG||(U.HTAG={BODY:1,HTML:1}),A=U.posDiff||(U.posDiff=function(c,Z){var Y=c.cssPos(),X=c.offset(null,Z);return{left:X.left-Y.left,top:X.top-Y.top}});N=N?linb(N).get(0):V;if(E){if(E.left===null&&E.top===null){return W}var Q=A(W,N);W.cssPos({left:E.left===null?null:(E.left-Q.left),top:E.top===null?null:(E.top-Q.top)});J=W}else{if(!(linb.browser.gek&&L==document.body)&&L.getBoundingClientRect){H=L.getBoundingClientRect();E={left:H.left,top:H.top};if(N.nodeType==1){I(E,-(H=N.getBoundingClientRect()).left+N.scrollLeft,-H.top+N.scrollTop)}else{I(E,Math.max(R.scrollLeft,T.scrollLeft)-R.clientLeft,Math.max(R.scrollTop,T.scrollTop)-R.clientTop)}}else{E={left:0,top:0};I(E,L.offsetLeft,L.offsetTop);while(F&&F!=N&&F!=N.offsetParent){I(E,F.offsetLeft,F.offsetTop);if(S.kde||(S.gek&&!K[F.tagName])){M(F,E)}if(!C&&D(F,"position")=="fixed"){C=true}if(F.tagName!="BODY"){P=F.tagName=="BODY"?P:F}F=F.offsetParent}while(G&&G.tagName&&G!=N&&!O[G.tagName]){if(!B.test(D(G,"display"))){I(E,-G.scrollLeft,-G.scrollTop)}if(S.gek&&D(G,"overflow")!="visible"){M(G,E)}G=G.parentNode}if((S.gek&&D(P,"position")!="absolute")){I(E,-T.offsetLeft,-T.offsetTop)}if(C){I(E,Math.max(R.scrollLeft,T.scrollLeft),Math.max(R.scrollTop,T.scrollTop))}}J=E}return J},hasClass:function(B){var A=this.get(0).className.split(/\s+/);return _.arr.indexOf(A,B)!=-1},addClass:function(B){var A,C,E=arguments.callee,D=(E.reg||(E.reg=/\s+/));return this.each(function(F){A=(C=F.className).split(D);if(_.arr.indexOf(A,B)==-1){F.className=C+" "+B}})},removeClass:function(A){var E,D,C,G,I,H=typeof A=="string",F=arguments.callee,B=(F.reg||(F.reg=/\s+/));return this.each(function(J){E=J.className.split(B);C=E.length;G=[];for(D=0;I=E[D];D++){if(H?(I!=A):(!A.test(String(I)))){G[G.length]=I}}if(C!=G.length){J.className=G.join(" ")}})},replaceClass:function(C,A){var D,B;return this.each(function(E){B=(D=E.className).replace(C,A);if(D!=B){E.className=B}})},tagClass:function(A,E){var D=this,F=arguments.callee,C=F["_r1_"+A]||(F["_r1_"+A]=new RegExp("([-\\w]+"+A+"[-\\w]*)")),B=F._r2||(F._r2=/([-\w]+)/g);D.removeClass(C);return(false===E)?D:D.replaceClass(B,"$1 $1"+A)},_ajustType:function(B,A){return(window===B||document===B)&&A=="onsize"?"onresize":A},$addEventHandler:function(B,F){var C,G,A=linb.Event,H="on"+A._getEventType(B),E=A.$eventhandler,D=A.$EVENTHANDLER,J=A.getId,I=this._ajustType;return this.each(function(K){if(K.nodeType==3){return }C=J(K);if(!C){C=K.id=_.id()}H=I(K,H);if(F===false){if(K.setAttribute){K.setAttribute(H,D)}}else{if(K[H]){return }K[H]=E}if(!(G=linb.DomProfile.get(C))){G=new linb.DomProfile(C,K)}(G.nodeVars||(G.nodeVars={}))[H]=1})},$removeEventHandler:function(A){var C="on"+linb.Event._getEventType(A),B=this._ajustType;return this.each(function(D){C=B(D,C);if(D[C]){D[C]=null}if(D.getAttribute&&D.getAttribute(C)){D.removeAttribute(C)}})},$addEvent:function(B,I,J,F){var N=this,H,M,C,G,L=linb.Event.getId,E=linb.cache.dom,A=linb.Event,D=_.arr.removeValue,K=_.arr.insertAny;if(!(B instanceof Array)){B=[[B,I,J]]}if(!F&&F!==0){F=-1}_.arr.each(B,function(P,O){B=P[0];I=P[1];J=P[2];if(typeof J=="string"){J="$"+J}else{J=undefined}N.$addEventHandler(B).each(function(Q){if(Q.nodeType==3){return }C=L(Q);if(!C){C=Q.id=_.id()}H=E[C];M=H.events||(H.events={});H=M[B]||(M[B]=[]);if(J===undefined){H.length=0;H=M[B]=[];F=-1;J="_"}H[J]=I;D(H,J);if(F==-1){H[H.length]=J}else{K(H,J,F)}if(M=(H=E[C]).clearCache){M.call(H)}})});return N},$removeEvent:function(B,J,G){var M=this,I,L,D,C,F,H,K=linb.Event.getId,E=linb.cache.dom,A=linb.Event;if(!(B instanceof Array)){B=[[B,J]]}_.arr.each(B,function(O,N){B=O[0];J=O[1];H=A._getEventType(B);M.each(function(P){if(!(C=K(P))){return }if(!(I=E[C])){return }if(!(L=I.events)){return }if(G){_.arr.each(A._getEventName(H),function(Q){delete L[Q]})}else{if(typeof J=="string"){J="$"+J;if(D=L[B]){if(_.arr.indexOf(D,J)!=-1){_.arr.removeValue(D,J)}delete D[J]}}else{delete L[B]}}if(L=(I=E[C]).clearCache){L.call(I)}})});return M},$getEvent:function(C,B){var E;if(!(E=linb.Event.getId(this.get(0)))){return }if(B){return _.get(linb.cache.dom,[E,"events",C,"$"+B])}else{var D=[],A=_.get(linb.cache.dom,[E,"events",C]);_.arr.each(A,function(G,F){D[D.length]=[G,A[G]]});return D}},$clearEventHandler:function(){return this.each(function(A){_.arr.each(linb.Event._events,function(B){if(A[B="on"+B]){A[B]=null}if(A.getAttribute&&A.getAttribute(B)){A.removeAttribute(B)}})})},$clearEvent:function(){this.$clearEventHandler();return this.each(function(A){var C,B;if(!(C=linb.Event.getId(A))){return }if(!(B=linb.cache.dom[C])){return }_.filter(B.nodeVars,function(E,D){if(_.str.startWith(D,"on")){return false}});_.breakO(B.events,2);delete B.events})},$fireEvent:function(A,E){var G=linb.Event._getEventType(A),I,J="on"+G,F=arguments.callee,D=linb.Event.$eventhandler,C=F.f1||(F.f1=function(){this.returnValue=false}),B=F.f2||(F.f2=function(){this.cancelBubble=true}),H=this._ajustType;E=E||{};return this.each(function(K){J=H(K,J);if(typeof K[J]!="function"){if(!K[J]&&!(K.getAttribute&&K.getAttribute(J))){return }K[J]=D}_.merge(E,{type:G,target:K,button:1,$e:true,$name:A,preventDefault:C,stopPropagation:B},"all");if("blur"==G||"focus"==G){K[G].call(K,E)}else{K[J].call(K,E)}})},$canFocus:function(){var D=arguments.callee,A=linb.Dom.getStyle,E=D.map||(D.map={a:1,input:1,select:1,textarea:1,button:1}),B,C;return !!((C=this._nodes[0])&&C.focus&&(((B=E[C.tagName.toLowerCase()])&&!(parseInt(C.tabIndex)<=-1))||(!B&&parseInt(C.tabIndex)>=(linb.browser.ie?1:0)))&&A(C,"display")!="none"&&A(C,"visibility")!="hidden"&&C.offsetWidth>0&&C.offsetHeight>0)},focus:function(B){var A=this;if(B||A.$canFocus()){try{A.get(0).focus()}catch(C){}}return A},setSelectable:function(B){var A=arguments.callee,C=A._f||(A._f=function(){return false});return this.each(function(D){if(linb.browser.gek){D.style.MozUserSelect=B?"all":"none"}else{D.unselectable=B?"off":"on";D.onselectstart=B?null:C}})},setInlineBlock:function(){var A=this;if(linb.browser.gek){A.css("display","-moz-inline-block").css("display","-moz-inline-box").css("display","inline-block")}else{A.css("display","inline-block")}return A},topZindex:function(A){var E=1000,C=0,B,F=this.get(0),G=F.offsetParent,D,H;if(F.nodeType!=1||!G){return 1}D=G.childNodes;for(B=0;H=D[B];B++){if(H==F||H.nodeType!=1||H.style.display=="none"||H.style.visibility=="hidden"||H.zIndexIgnore){continue}C=parseInt(H.style&&H.style.zIndex)||0;E=E>C?E:C}E++;if(E>=linb.Dom.TOP_ZINDEX){linb.Dom.TOP_ZINDEX=E+1000}if(A){F.style.zIndex=E}else{C=parseInt(F.style.zIndex)||0;return E>C?E:C}return this},nextFocus:function(D,C,B){D=_.isBool(D)?D:true;var A=this.get(0),E=this.$iterator("",D,C,function(F){return F!==A&&linb([F]).$canFocus()});if(!E.isEmpty()&&B!==false){E.focus()}return E},animate:function(I,L,A,C,B,K,D){var J=arguments.callee,F=J.lib||(J.lib={line:function(N){return N},inexp:function(N){return(N==0)?0:Math.pow(2,10*(N-1))},outexp:function(N){return(N==1)?1:-Math.pow(2,-10*N)+1},insine:function(N){return -1*Math.cos(N*(Math.PI/2))+1},outsine:function(N){return Math.sin(N*(Math.PI/2))},inoutsine:function(N){return -1/2*(Math.cos(Math.PI*N)-1)}}),E=J.color||(J.color=function(R,Q,N,O){var P,S,V=0+(100-0)*F[R](O/N),U=Q[0],T=Q[1];if(typeof U!="string"||typeof T!="string"){return"#fff"}if(V<0){return U}else{if(V>100){return T}}P=function(W){return(W.charAt(0)!="#")?("#"+W):W};U=P(U);T=P(T);P=function(Y,X,W){return parseInt(Y.slice(X,W),16)||0};S=function(W){return{red:P(W,1,3),green:P(W,3,5),blue:P(W,5,7)}};U=S(U);T=S(T);P=function(d,Z,X,Y){var W=d[Y]+Math.round((X/100)*(Z[Y]-d[Y]));return(W<16?"0":"")+W.toString(16)};return"#"+P(U,T,V,"red")+P(U,T,V,"green")+P(U,T,V,"blue")});C=C||100;B=B||5;K=F[K]!==undefined?K:"inexp";var M=this,H=0,G=[function(N){if(++H>B){linb.Thread(N).abort();return false}_.each(I,function(Q,O){if(typeof Q=="function"){Q(F[K](H/B))}else{var P=String(_.str.endWith(O.toLowerCase(),"color")?E(K,Q,B,H):(Q[0]+(Q[1]-Q[0])*F[K](H/B)));(M[O])?(M[O](P)):(M.css(O,P))}})}];return linb.Thread(D||_.id(),G,Math.max(C/B-9,0),null,L,A,true)},popToTop:function(H,G,K){var I,F=this,L;K=linb(K);if(K.isEmpty()){K=linb("body")}F.css({position:"absolute",left:linb.Dom.HIDE_VALUE,top:linb.Dom.HIDE_VALUE,display:"block",zIndex:linb.Dom.TOP_ZINDEX});if(H["linb.Dom"]||H.nodeType){G=(G||1).toString();var C=linb(H),M=C.offset(null,K);I={left:M.left,top:M.top,width:C.offsetWidth(),height:C.offsetHeight()}}else{G=G?"3":"0";L=G=="0"?0:8;I=H.region||{left:H.left-L,top:H.top-L,width:L*2,height:L*2}}H={left:0,top:0};var L=linb.win,E={};E.left=L.scrollLeft();E.top=L.scrollTop();E.width=L.width()+E.left;E.height=L.height()+E.top;var J=F.offsetWidth(),D=F.offsetHeight(),B,A;switch(G){case"1":B=false;A=true;break;case"2":B=true;A=false;break;case"3":B=false;A=false;break;case"4":B=A=true;break}if(B){if(I.top+D<E.height){H.top=I.top}else{H.top=I.top+I.height-D}}else{if(I.top+I.height+D<E.height){H.top=I.top+I.height}else{H.top=I.top-D}}if(A){if(I.left+J<E.width){H.left=I.left}else{H.left=I.left+I.width-J}}else{if(I.left+I.width+J<E.width){H.left=I.left+I.width}else{H.left=I.left-J}}if(H.left+J>E.width){H.left=E.width-J}if(H.left<E.left){H.left=E.left}if(H.top+D>E.height){H.top=E.height-D}if(H.top<E.top){H.top=E.top}F.cssPos(H).css({visibility:"visible",display:"block"});K.get(0).appendChild(F.get(0));return this},setBlurTrigger:function(A,C,I){var G=this,H=document,B="$blur_triggers$",E=linb(I?I:G.get()),F=linb.Dom._blurTrigger||(linb.Dom._blurTrigger=function(J,M){var N=arguments.callee,J=linb.Event.getPos(M),L=N.arr,Q=_.copy(L),P,O,R,K,S;_.arr.each(Q,function(T){P=true;if(!(S=L[T].target)){P=false}else{S.each(function(U){if(!linb.Dom.byId(U.id)){return P=false}})}if(!P){_.arr.removeValue(L,T);delete L[T]}});Q=_.copy(L);_.arr.each(Q,function(T){S=L[T];P=true;S.target.each(function(U){if(U.parentNode&&(R=U.offsetWidth)&&(K=U.offsetHeight)){O=linb([U]).offset();if(J.left>=O.left&&J.top>=O.top&&J.left<=(O.left+R)&&J.top<=(O.top+K)){return P=false}}});if(P){_.tryF(S.trigger,[],S.target);_.arr.removeValue(L,T);delete L[T]}else{return false}},null,true);Q.length=0}),D=F.arr||(F.arr=[]);if(!H.onmousedown){H.onmousedown=linb.Event.$eventhandler}E.each(function(J){if(!J.id){J.id=_.id()}});if(!C){_.arr.removeValue(D,A);delete D[A]}else{if(D[A]){_.arr.remov
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -