Namespace=new Object();Namespace.register=function(namespace){var nsArray=namespace.split(".");var sEval="";var sNS="";for(var i=0;i<nsArray.length;i++){if(i!=0){sNS+="."}sNS+=nsArray[i];sEval+="if (typeof("+sNS+") == 'undefined') "+sNS+" = new Object();"}if(sEval!=""){eval(sEval)}};$=function(A){return document.getElementById(A)}
if(typeof YAHOO=="undefined"){var YAHOO={}}YAHOO.namespace=function(){var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1){D=A[C].split(".");E=YAHOO;for(B=(D[0]=="YAHOO")?1:0;B<D.length;B=B+1){E[D[B]]=E[D[B]]||{};E=E[D[B]]}}return E};YAHOO.log=function(D,A,C){var B=YAHOO.widget.Logger;if(B&&B.log){return B.log(D,A,C)}else{return false}};YAHOO.register=function(A,E,D){var I=YAHOO.env.modules;if(!I[A]){I[A]={versions:[],builds:[]}}var B=I[A],H=D.version,G=D.build,F=YAHOO.env.listeners;B.name=A;B.version=H;B.build=G;B.versions.push(H);B.builds.push(G);B.mainClass=E;for(var C=0;C<F.length;C=C+1){F[C](B)}if(E){E.VERSION=H;E.BUILD=G}else{YAHOO.log("mainClass is undefined for module "+A,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(A){return YAHOO.env.modules[A]||null};YAHOO.env.ua=function(){var C={ie:0,opera:0,gecko:0,webkit:0};var B=navigator.userAgent,A;if((/KHTML/).test(B)){C.webkit=1}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1])}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1])}else{A=B.match(/MSIE\s([^;]*)/);if(A&&A[1]){C.ie=parseFloat(A[1])}else{A=B.match(/Gecko\/([^\s]*)/);if(A){C.gecko=1;A=B.match(/rv:([^\s\)]*)/);if(A&&A[1]){C.gecko=parseFloat(A[1])}}}}}return C}();(function(){YAHOO.namespace("util","widget","example");if(typeof YAHOO_config!="undefined"){var B=YAHOO_config.listener,A=YAHOO.env.listeners,D=true,C;if(B){for(C=0;C<A.length;C=C+1){if(A[C]==B){D=false;break}}if(D){A.push(B)}}}})();YAHOO.lang={isArray:function(B){if(B){var A=YAHOO.lang;return A.isNumber(B.length)&&A.isFunction(B.splice)&&!A.hasOwnProperty(B.length)}return false},isBoolean:function(A){return typeof A==="boolean"},isFunction:function(A){return typeof A==="function"},isNull:function(A){return A===null},isNumber:function(A){return typeof A==="number"&&isFinite(A)},isObject:function(A){return(A&&(typeof A==="object"||YAHOO.lang.isFunction(A)))||false},isString:function(A){return typeof A==="string"},isUndefined:function(A){return typeof A==="undefined"},hasOwnProperty:function(A,B){if(Object.prototype.hasOwnProperty){return A.hasOwnProperty(B)}return !YAHOO.lang.isUndefined(A[B])&&A.constructor.prototype[B]!==A[B]},_IEEnumFix:function(B,A){if(YAHOO.env.ua.ie){var D=["toString","valueOf"];for(i=0;i<D.length;i=i+1){var E=D[i],C=A[E];if(YAHOO.lang.isFunction(C)&&C!=Object.prototype[E]){B[E]=C}}}},extend:function(D,E,C){if(!E||!D){throw new Error("YAHOO.lang.extend failed, please check that all dependencies are included.")}var B=function(){};B.prototype=E.prototype;D.prototype=new B();D.prototype.constructor=D;D.superclass=E.prototype;if(E.prototype.constructor==Object.prototype.constructor){E.prototype.constructor=E}if(C){for(var A in C){D.prototype[A]=C[A]}YAHOO.lang._IEEnumFix(D.prototype,C)}},augmentObject:function(E,D){if(!D||!E){throw new Error("Absorb failed, verify dependencies.")}var A=arguments,C,F,B=A[2];if(B&&B!==true){for(C=2;C<A.length;C=C+1){E[A[C]]=D[A[C]]}}else{for(F in D){if(B||!E[F]){E[F]=D[F]}}YAHOO.lang._IEEnumFix(E,D)}},augmentProto:function(D,C){if(!C||!D){throw new Error("Augment failed, verify dependencies.")}var A=[D.prototype,C.prototype];for(var B=2;B<arguments.length;B=B+1){A.push(arguments[B])}YAHOO.lang.augmentObject.apply(this,A)},dump:function(A,G){var C=YAHOO.lang,D,F,I=[],J="{...}",B="f(){...}",H=", ",E=" => ";if(!C.isObject(A)||A instanceof Date||("nodeType" in A&&"tagName" in A)){return A}else{if(C.isFunction(A)){return B}}G=(C.isNumber(G))?G:3;if(C.isArray(A)){I.push("[");for(D=0,F=A.length;D<F;D=D+1){if(C.isObject(A[D])){I.push((G>0)?C.dump(A[D],G-1):J)}else{I.push(A[D])}I.push(H)}if(I.length>1){I.pop()}I.push("]")}else{I.push("{");for(D in A){if(C.hasOwnProperty(A,D)){I.push(D+E);if(C.isObject(A[D])){I.push((G>0)?C.dump(A[D],G-1):J)}else{I.push(A[D])}I.push(H)}}if(I.length>1){I.pop()}I.push("}")}return I.join("")},substitute:function(Q,B,J){var G,F,E,M,N,P,D=YAHOO.lang,L=[],C,H="dump",K=" ",A="{",O="}";for(;;){G=Q.lastIndexOf(A);if(G<0){break}F=Q.indexOf(O,G);if(G+1>=F){break}C=Q.substring(G+1,F);M=C;P=null;E=M.indexOf(K);if(E>-1){P=M.substring(E+1);M=M.substring(0,E)}N=B[M];if(J){N=J(M,N,P)}if(D.isObject(N)){if(D.isArray(N)){N=D.dump(N,parseInt(P,10))}else{P=P||"";var I=P.indexOf(H);if(I>-1){P=P.substring(4)}if(N.toString===Object.prototype.toString||I>-1){N=D.dump(N,parseInt(P,10))}else{N=N.toString()}}}else{if(!D.isString(N)&&!D.isNumber(N)){N="~-"+L.length+"-~";L[L.length]=C}}Q=Q.substring(0,G)+N+Q.substring(F+1)}for(G=L.length-1;G>=0;G=G-1){Q=Q.replace(new RegExp("~-"+G+"-~"),"{"+L[G]+"}","g")}return Q},trim:function(A){try{return A.replace(/^\s+|\s+$/g,"")}catch(B){return A}},merge:function(){var C={},A=arguments,B;for(B=0;B<A.length;B=B+1){YAHOO.lang.augmentObject(C,A[B],true)}return C},isValue:function(B){var A=YAHOO.lang;return(A.isObject(B)||A.isString(B)||A.isNumber(B)||A.isBoolean(B))}};YAHOO.util.Lang=YAHOO.lang;YAHOO.lang.augment=YAHOO.lang.augmentProto;YAHOO.augment=YAHOO.lang.augmentProto;YAHOO.extend=YAHOO.lang.extend;YAHOO.register("yahoo",YAHOO,{version:"2.3.0",build:"442"})
YAHOO.util.CustomEvent=function(D,B,C,A){this.type=D;this.scope=B||window;this.silent=C;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var E="_YUICEOnSubscribe";if(D!==E){this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true)}};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(B,C,A){if(!B){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(B,C,A)}this.subscribers.push(new YAHOO.util.Subscriber(B,C,A))},unsubscribe:function(D,F){if(!D){return this.unsubscribeAll()}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B){var C=this.subscribers[B];if(C&&C.contains(D,F)){this._delete(B);E=true}}return E},fire:function(){var E=this.subscribers.length;if(!E&&this.silent){return true}var G=[],F=true,D,H=false;for(D=0;D<arguments.length;++D){G.push(arguments[D])}var A=G.length;if(!this.silent){}for(D=0;D<E;++D){var K=this.subscribers[D];if(!K){H=true}else{if(!this.silent){}var J=K.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var B=null;if(G.length>0){B=G[0]}F=K.fn.call(J,B,K.obj)}else{F=K.fn.call(J,this.type,G,K.obj)}if(false===F){if(!this.silent){}return false}}}if(H){var I=[],C=this.subscribers;for(D=0,E=C.length;D<E;++D){K=C[D];I.push(C[D])}this.subscribers=I}return true},unsubscribeAll:function(){for(var B=0,A=this.subscribers.length;B<A;++B){this._delete(A-1-B)}this.subscribers=[];return B},_delete:function(A){var B=this.subscribers[A];if(B){delete B.fn;delete B.obj}this.subscribers[A]=null},toString:function(){return"CustomEvent: '"+this.type+"', scope: "+this.scope}};YAHOO.util.Subscriber=function(B,C,A){this.fn=B;this.obj=YAHOO.lang.isUndefined(C)?null:C;this.override=A};YAHOO.util.Subscriber.prototype.getScope=function(A){if(this.override){if(this.override===true){return this.obj}else{return this.override}}return A};YAHOO.util.Subscriber.prototype.contains=function(A,B){if(B){return(this.fn==A&&this.obj==B)}else{return(this.fn==A)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", override: "+(this.override||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var H=false;var J=false;var I=[];var K=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D={63232:38,63233:40,63234:37,63235:39};return{POLL_RETRYS:4000,POLL_INTERVAL:10,EL:0,TYPE:1,FN:2,WFN:3,OBJ:3,ADJ_SCOPE:4,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,startInterval:function(){if(!this._interval){var L=this;var M=function(){L._tryPreloadAttach()};this._interval=setInterval(M,this.POLL_INTERVAL)}},onAvailable:function(N,L,O,M){F.push({id:N,fn:L,obj:O,override:M,checkReady:false});C=this.POLL_RETRYS;this.startInterval()},onDOMReady:function(L,N,M){if(J){setTimeout(function(){var O=window;if(M){if(M===true){O=N}else{O=M}}L.call(O,"DOMReady",[],N)},0)}else{this.DOMReadyEvent.subscribe(L,N,M)}},onContentReady:function(N,L,O,M){F.push({id:N,fn:L,obj:O,override:M,checkReady:true});C=this.POLL_RETRYS;this.startInterval()},addListener:function(N,L,W,R,M){if(!W||!W.call){return false}if(this._isValidCollection(N)){var X=true;for(var S=0,U=N.length;S<U;++S){X=this.on(N[S],L,W,R,M)&&X}return X}else{if(YAHOO.lang.isString(N)){var Q=this.getEl(N);if(Q){N=Q}else{this.onAvailable(N,function(){YAHOO.util.Event.on(N,L,W,R,M)});return true}}}if(!N){return false}if("unload"==L&&R!==this){K[K.length]=[N,L,W,R,M];return true}var Z=N;if(M){if(M===true){Z=R}else{Z=M}}var O=function(a){return W.call(Z,YAHOO.util.Event.getEvent(a),R)};var Y=[N,L,W,O,Z];var T=I.length;I[T]=Y;if(this.useLegacyEvent(N,L)){var P=this.getLegacyIndex(N,L);if(P==-1||N!=G[P][0]){P=G.length;B[N.id+L]=P;G[P]=[N,L,N["on"+L]];E[P]=[];N["on"+L]=function(a){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(a),P)}}E[P].push(Y)}else{try{this._simpleAdd(N,L,O,false)}catch(V){this.lastError=V;this.removeListener(N,L,W);return false}}return true},fireLegacyEvent:function(P,N){var R=true,L,T,S,U,Q;T=E[N];for(var M=0,O=T.length;M<O;++M){S=T[M];if(S&&S[this.WFN]){U=S[this.ADJ_SCOPE];Q=S[this.WFN].call(U,P);R=(R&&Q)}}L=G[N];if(L&&L[2]){L[2](P)}return R},getLegacyIndex:function(M,N){var L=this.generateId(M)+N;if(typeof B[L]=="undefined"){return -1}else{return B[L]}},useLegacyEvent:function(M,N){if(this.webkit&&("click"==N||"dblclick"==N)){var L=parseInt(this.webkit,10);if(!isNaN(L)&&L<418){return true}}return false},removeListener:function(M,L,U){var P,S;if(typeof M=="string"){M=this.getEl(M)}else{if(this._isValidCollection(M)){var V=true;for(P=0,S=M.length;P<S;++P){V=(this.removeListener(M[P],L,U)&&V)}return V}}if(!U||!U.call){return this.purgeElement(M,false,L)}if("unload"==L){for(P=0,S=K.length;P<S;P++){var W=K[P];if(W&&W[0]==M&&W[1]==L&&W[2]==U){K[P]=null;return true}}return false}var Q=null;var R=arguments[3];if("undefined"==typeof R){R=this._getCacheIndex(M,L,U)}if(R>=0){Q=I[R]}if(!M||!Q){return false}if(this.useLegacyEvent(M,L)){var O=this.getLegacyIndex(M,L);var N=E[O];if(N){for(P=0,S=N.length;P<S;++P){W=N[P];if(W&&W[this.EL]==M&&W[this.TYPE]==L&&W[this.FN]==U){N[P]=null;break}}}}else{try{this._simpleRemove(M,L,Q[this.WFN],false)}catch(T){this.lastError=T;return false}}delete I[R][this.WFN];delete I[R][this.FN];I[R]=null;return true},getTarget:function(N,M){var L=N.target||N.srcElement;return this.resolveTextNode(L)},resolveTextNode:function(L){if(L&&3==L.nodeType){return L.parentNode}else{return L}},getPageX:function(M){var L=M.pageX;if(!L&&0!==L){L=M.clientX||0;if(this.isIE){L+=this._getScrollLeft()}}return L},getPageY:function(L){var M=L.pageY;if(!M&&0!==M){M=L.clientY||0;if(this.isIE){M+=this._getScrollTop()}}return M},getXY:function(L){return[this.getPageX(L),this.getPageY(L)]},getRelatedTarget:function(M){var L=M.relatedTarget;if(!L){if(M.type=="mouseout"){L=M.toElement}else{if(M.type=="mouseover"){L=M.fromElement}}}return this.resolveTextNode(L)},getTime:function(N){if(!N.time){var M=new Date().getTime();try{N.time=M}catch(L){this.lastError=L;return M}}return N.time},stopEvent:function(L){this.stopPropagation(L);this.preventDefault(L)},stopPropagation:function(L){if(L.stopPropagation){L.stopPropagation()}else{L.cancelBubble=true}},preventDefault:function(L){if(L.preventDefault){L.preventDefault()}else{L.returnValue=false}},getEvent:function(M){var L=M||window.event;if(!L){var N=this.getEvent.caller;while(N){L=N.arguments[0];if(L&&Event==L.constructor){break}N=N.caller}}return L},getCharCode:function(M){var L=M.keyCode||M.charCode||0;if(YAHOO.env.ua.webkit&&(L in D)){L=D[L]}return L},_getCacheIndex:function(P,Q,O){for(var N=0,M=I.length;N<M;++N){var L=I[N];if(L&&L[this.FN]==O&&L[this.EL]==P&&L[this.TYPE]==Q){return N}}return -1},generateId:function(L){var M=L.id;if(!M){M="yuievtautoid-"+A;++A;L.id=M}return M},_isValidCollection:function(M){try{return(M&&M.length&&typeof M!="string"&&!M.tagName&&!M.alert&&typeof M[0]!="undefined")}catch(L){return false}},elCache:{},getEl:function(L){return document.getElementById(L)},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(M){if(!H){H=true;var L=YAHOO.util.Event;L._ready();L._tryPreloadAttach()}},_ready:function(M){if(!J){J=true;var L=YAHOO.util.Event;L.DOMReadyEvent.fire();L._simpleRemove(document,"DOMContentLoaded",L._ready)}},_tryPreloadAttach:function(){if(this.locked){return false}if(this.isIE){if(!J){this.startInterval();return false}}this.locked=true;var Q=!H;if(!Q){Q=(C>0)}var P=[];var R=function(T,U){var S=T;if(U.override){if(U.override===true){S=U.obj}else{S=U.override}}U.fn.call(S,U.obj)};var M,L,O,N;for(M=0,L=F.length;M<L;++M){O=F[M];if(O&&!O.checkReady){N=this.getEl(O.id);if(N){R(N,O);F[M]=null}else{P.push(O)}}}for(M=0,L=F.length;M<L;++M){O=F[M];if(O&&O.checkReady){N=this.getEl(O.id);if(N){if(H||N.nextSibling){R(N,O);F[M]=null}}else{P.push(O)}}}C=(P.length===0)?0:C-1;if(Q){this.startInterval()}else{clearInterval(this._interval);this._interval=null}this.locked=false;return true},purgeElement:function(O,P,R){var Q=this.getListeners(O,R);if(Q){for(var N=0,L=Q.length;N<L;++N){var M=Q[N];this.removeListener(O,M.type,M.fn,M.index)}}if(P&&O&&O.childNodes){for(N=0,L=O.childNodes.length;N<L;++N){this.purgeElement(O.childNodes[N],P,R)}}},getListeners:function(N,L){var Q=[],M;if(!L){M=[I,K]}else{if(L=="unload"){M=[K]}else{M=[I]}}for(var P=0;P<M.length;++P){var T=M[P];if(T&&T.length>0){for(var R=0,S=T.length;R<S;++R){var O=T[R];if(O&&O[this.EL]===N&&(!L||L===O[this.TYPE])){Q.push({type:O[this.TYPE],fn:O[this.FN],obj:O[this.OBJ],adjust:O[this.ADJ_SCOPE],index:R})}}}}return(Q.length)?Q:null},_unload:function(S){var R=YAHOO.util.Event,P,O,M,L,N;for(P=0,L=K.length;P<L;++P){M=K[P];if(M){var Q=window;if(M[R.ADJ_SCOPE]){if(M[R.ADJ_SCOPE]===true){Q=M[R.OBJ]}else{Q=M[R.ADJ_SCOPE]}}M[R.FN].call(Q,R.getEvent(S),M[R.OBJ]);K[P]=null;M=null;Q=null}}K=null;if(I&&I.length>0){O=I.length;while(O){N=O-1;M=I[N];if(M){R.removeListener(M[R.EL],M[R.TYPE],M[R.FN],N)}O=O-1}M=null;R.clearCache()}for(P=0,L=G.length;P<L;++P){G[P][0]=null;G[P]=null}G=null;R._simpleRemove(window,"unload",R._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var L=document.documentElement,M=document.body;if(L&&(L.scrollTop||L.scrollLeft)){return[L.scrollTop,L.scrollLeft]}else{if(M){return[M.scrollTop,M.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(N,O,M,L){N.addEventListener(O,M,(L))}}else{if(window.attachEvent){return function(N,O,M,L){N.attachEvent("on"+O,M)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(N,O,M,L){N.removeEventListener(O,M,(L))}}else{if(window.detachEvent){return function(M,N,L){M.detachEvent("on"+N,L)}}else{return function(){}}}}()}}();(function(){var D=YAHOO.util.Event;D.on=D.addListener;if(D.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var B,E=document,A=E.body;if(("undefined"!==typeof YAHOO_config)&&YAHOO_config.injecting){B=document.createElement("script");var C=E.getElementsByTagName("head")[0]||A;C.insertBefore(B,C.firstChild)}else{E.write("<script id=\"_yui_eu_dr\" defer=\"true\" src=\"//:\"></script>");B=document.getElementById("_yui_eu_dr")}if(B){B.onreadystatechange=function(){if("complete"===this.readyState){this.parentNode.removeChild(this);YAHOO.util.Event._ready()}}}else{}B=null}else{if(D.webkit){D._drwatch=setInterval(function(){var F=document.readyState;if("loaded"==F||"complete"==F){clearInterval(D._drwatch);D._drwatch=null;D._ready()}},D.POLL_INTERVAL)}else{D._simpleAdd(document,"DOMContentLoaded",D._ready)}}D._simpleAdd(window,"load",D._load);D._simpleAdd(window,"unload",D._unload);D._tryPreloadAttach()})()}YAHOO.util.EventProvider=function(){};YAHOO.util.EventProvider.prototype={__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E){this.__yui_events=this.__yui_events||{};var D=this.__yui_events[A];if(D){D.subscribe(C,F,E)}else{this.__yui_subscribers=this.__yui_subscribers||{};var B=this.__yui_subscribers;if(!B[A]){B[A]=[]}B[A].push({fn:C,obj:F,override:E})}},unsubscribe:function(C,E,G){this.__yui_events=this.__yui_events||{};var A=this.__yui_events;if(C){var F=A[C];if(F){return F.unsubscribe(E,G)}}else{for(var D in A){var B=true;if(YAHOO.lang.hasOwnProperty(A,D)){B=B&&A[D].unsubscribe(E,G)}}return B}return false},unsubscribeAll:function(A){return this.unsubscribe(A)},createEvent:function(G,D){this.__yui_events=this.__yui_events||{};var A=D||{};var I=this.__yui_events;if(I[G]){}else{var H=A.scope||this;var E=(A.silent);var B=new YAHOO.util.CustomEvent(G,H,E,YAHOO.util.CustomEvent.FLAT);I[G]=B;if(A.onSubscribeCallback){B.subscribeEvent.subscribe(A.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var F=this.__yui_subscribers[G];if(F){for(var C=0;C<F.length;++C){B.subscribe(F[C].fn,F[C].obj,F[C].override)}}}return I[G]},fireEvent:function(E,D,A,C){this.__yui_events=this.__yui_events||{};var G=this.__yui_events[E];if(!G){return null}var B=[];for(var F=1;F<arguments.length;++F){B.push(arguments[F])}return G.fire.apply(G,B)},hasEvent:function(A){if(this.__yui_events){if(this.__yui_events[A]){return true}}return false}};YAHOO.util.KeyListener=function(A,F,B,C){if(!A){}else{if(!F){}else{if(!B){}}}if(!C){C=YAHOO.util.KeyListener.KEYDOWN}var D=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(typeof A=="string"){A=document.getElementById(A)}if(typeof B=="function"){D.subscribe(B)}else{D.subscribe(B.fn,B.scope,B.correctScope)}function E(K,J){if(!F.shift){F.shift=false}if(!F.alt){F.alt=false}if(!F.ctrl){F.ctrl=false}if(K.shiftKey==F.shift&&K.altKey==F.alt&&K.ctrlKey==F.ctrl){var H;var G;if(F.keys instanceof Array){for(var I=0;I<F.keys.length;I++){H=F.keys[I];if(H==K.charCode){D.fire(K.charCode,K);break}else{if(H==K.keyCode){D.fire(K.keyCode,K);break}}}}else{H=F.keys;if(H==K.charCode){D.fire(K.charCode,K)}else{if(H==K.keyCode){D.fire(K.keyCode,K)}}}}}this.enable=function(){if(!this.enabled){YAHOO.util.Event.addListener(A,C,E);this.enabledEvent.fire(F)}this.enabled=true};this.disable=function(){if(this.enabled){YAHOO.util.Event.removeListener(A,C,E);this.disabledEvent.fire(F)}this.enabled=false};this.toString=function(){return"KeyListener ["+F.keys+"] "+A.tagName+(A.id?"["+A.id+"]":"")}};YAHOO.util.KeyListener.KEYDOWN="keydown";YAHOO.util.KeyListener.KEYUP="keyup";YAHOO.register("event",YAHOO.util.Event,{version:"2.3.0",build:"442"})
Array.prototype.add=function(C){var B=true;for(var A=0;A<this.length;A++){if(this[A]==C){B=false;break}}if(B==true){this[this.length]=C}};Namespace.register("Ali.widget.node");Namespace.register("Ali.widget.tree");Namespace.register("Ali.widget.trees");Namespace.register("Ali.widget.navigation");function isComprise(A,B){if(A.indexOf(B)!=-1){return true}else{return false}}function getObjsByTNandCN(F,E,A){var D=new Array();var C=F.getElementsByTagName(E);for(var B=0;B<C.length;B++){if(C[B].className==A){D.add(C[B])}}return D}function getObjsByTNandCN2(F,E,A){var D=new Array();var C=F.getElementsByTagName(E);for(var B=0;B<C.length;B++){if(C[B].className.indexOf(A)!=-1){D.add(C[B])}}return D}function isFullObj(A){if(A.innerHTML!=null&&A.innerHTML!=""){return true}else{return false}}(function(){var B=new Array();var A=new Array();Ali.widget.navigation={init:function(E,C,D){B=getObjsByTNandCN2(D,"div","menu");A=getObjsByTNandCN2(D,"div","menutitleischeck")},closeAll:function(){for(var C=0;C<B.length;C++){if(getObjsByTNandCN2(B[C],"div","firstroot")[0]!=null){getObjsByTNandCN2(B[C],"div","firstroot")[0].style.display="none"}}for(var C=0;C<A.length;C++){A[C].className="menutitle_uncheck  menutitleischeck"}},open:function(E,C,D){this.init(E,C,D);this.closeAll();E.className="menutitle_check  menutitleischeck";if(getObjsByTNandCN2(C,"div","firstroot")[0]!=null){getObjsByTNandCN2(C,"div","firstroot")[0].style.display="block"}},comprise:function(C,D){if(C.indexOf(D)!=-1){return true}else{return false}}}})();(function(){Ali.widget.trees={load:function(E){var D=document.getElementById(E);var C=getObjsByTNandCN2(D,"div","firstroot");for(var B=0;B<C.length;B++){var A=new Ali.widget.tree(C[B]);A.init()}},closeOrOpen:function(A,B){if(A.style.display=="none"||A.style.display==""){A.style.display="block";B.getElementsByTagName("img")[0].src="http://img.china.alibaba.com/images/cn/market/myalibaba/levelup/jian.gif"}else{A.style.display="none";B.getElementsByTagName("img")[0].src="http://img.china.alibaba.com/images/cn/market/myalibaba/levelup/jia.gif"}},closeOrOpen2:function(A){},event:function(A){var B=YAHOO.util.Event.getTarget(A);while(B.id!="erectNav"){if(B.nodeName.toUpperCase()=="DIV"){if(isComprise(B.className,"closeoropen1")){Ali.widget.trees.closeOrOpen(getObjsByTNandCN(B.parentNode,"div","frlist")[0],B)}else{if(isComprise(B.className,"closeoropen2")){Ali.widget.trees.closeOrOpen(getObjsByTNandCN(B.parentNode,"div","list")[0],B)}}break}else{B=B.parentNode}}}}})();Ali.widget.node=function(A){this.obj=A;this.title=null;this.content=null;this.isopen=false;this.list=new Array()};Ali.widget.node.prototype={init:function(A){this.content=getObjsByTNandCN(this.obj,"div","list")[0];if(A=="open"){this.content.style.display="block"}else{this.content.style.display="none"}if(getObjsByTNandCN2(this.obj,"div","title").length>0){this.initTitle(getObjsByTNandCN2(this.obj,"div","title")[0])}},initTitle:function(A){if(isFullObj(A)){this.title=A;YAHOO.util.Event.on(this.title,"click",Ali.widget.trees.event)}}};Ali.widget.tree=function(A){this.obj=A;this.title=null;this.content=null;this.list=new Array();this.isopen=false};Ali.widget.tree.prototype={init:function(){if(getObjsByTNandCN2(this.obj,"div","frtitle").length>0){this.initTitle(getObjsByTNandCN2(this.obj,"div","frtitle")[0])}if(getObjsByTNandCN(this.obj,"div","frlist").length>0){this.initList(getObjsByTNandCN(this.obj,"div","frlist")[0])}},initTitle:function(A){if(isFullObj(A)){this.title=A;if(this.isopen){YAHOO.util.Event.on(this.title,"click",this.close)}else{YAHOO.util.Event.on(this.title,"click",this.open)}}},initList:function(C){if(isFullObj(C)){this.content=C;var B=getObjsByTNandCN(C,"div","root");for(var A=0;A<B.length;A++){var D=new Ali.widget.node(B[A]);if(A==0){D.init("open")}else{D.init("close")}}}}}
$=function(A){return document.getElementById(A)};Array.prototype.add=function(C){var B=true;for(var A=0;A<this.length;A++){if(this[A]==C){B=false;break}}if(B==true){this[this.length]=C}};if(typeof AliEvent=="undefined"){var AliEvent={}}(function(){AliEvent={addListener:function(C,A,B){if(C.addEventListener){C.addEventListener(A,B,false)}else{if(C.attachEvent){C.attachEvent("on"+A,B)}else{C["on"+A]=B}}}}})();function Alitalkparam(){this.online=0;this.size=16;this.uid=null;this.imgObj=null;this.eventObjs=new Array();this.docObj=null;this.onlineDoc="\u6211\u6b63\u5728\u7f51\u4e0a,\u9a6c\u4e0a\u548c\u6211\u6d3d\u8c08!";this.offlineDoc="\u6211\u73b0\u5728\u4e0d\u5728\u7f51\u4e0a,\u7ed9\u6211\u7559\u4e2a\u6d88\u606f\u5427!";this.telonlineDoc="\u6211\u624b\u673a\u5728\u7ebf,\u9a6c\u4e0a\u548c\u6211\u6d3d\u8c08!";this.notInstalledDoc="\u672a\u5b89\u88c5\u8d38\u6613\u901a";this.onlineAlt="\u6211\u6b63\u5728\u7f51\u4e0a,\u9a6c\u4e0a\u548c\u6211\u6d3d\u8c08!";this.offlineAlt="\u6211\u73b0\u5728\u4e0d\u5728\u7f51\u4e0a,\u7ed9\u6211\u7559\u4e2a\u6d88\u606f\u5427!";this.telonlineAlt="\u6211\u624b\u673a\u5728\u7ebf,\u9a6c\u4e0a\u548c\u6211\u6d3d\u8c08!";this.notInstalledAlt="\u672a\u5b89\u88c5\u8d38\u6613\u901a";this.moreProperties="";this.siteid="cnalichn";this.isencrypt=false}var OnLine=0;var online=new Array();if(typeof Alitalk=="undefined"){var Alitalk={}}(function(){Alitalk={arrToString:function(A){var B="";var D=false;for(var C=0;C<A.length;C++){if(A[C].isencrypt==true){D=true}B=B+A[C].uid+";"}if(B.length>0){B=B.substring(0,B.length-1)}if(D==true){B=B+"&encrypt=1"}return B},initSingleStat:function(A){if(A.uid!=null){if(A.isencrypt){document.write("<script src='http://amos.im.alisoft.com/userstatus3.aw?uid="+A.uid+"&encrypt=1&site=cnalichn'></script>")}else{document.write("<script src='http://amos.im.alisoft.com/userstatus3.aw?uid="+A.uid+"&site=cnalichn'></script>")}}},initMultStat:function(A){document.write("<script src='http://amos.im.alisoft.com/muliuserstatus.aw?uids="+this.arrToString(A)+"&site=cnalichn'></script>")},getAlitalkImgSrc:function(A){if(A.online==0||A.online==6){if(A.size==16){return"http://img.china.alibaba.com/others/images/myt_offline.gif"}else{if(A.size==32){return"http://img.china.alibaba.com/images/buyer/list/list_mytlogo_offline.gif"}else{return"http://img.china.alibaba.com/others/images/myt_offline.gif"}}}else{if(A.online==1){if(A.size==16){return"http://img.china.alibaba.com/others/images/myt_online.gif"}else{if(A.size==32){return"http://img.china.alibaba.com/images/buyer/list/list_mytlogo_online.gif"}else{return"http://img.china.alibaba.com/others/images/myt_online.gif"}}}else{if(A.online==4||A.online==5){if(A.size==16){return"http://img.china.alibaba.com/others/images/myt_online_mobile.gif"}else{if(A.size==26){return"http://img.china.alibaba.com/images/buyer/list/myt_26_sms.gif"}else{if(A.size==32){return"http://img.china.alibaba.com/images/buyer/list/myt_32_sms.gif"}else{return"http://img.china.alibaba.com/others/images/myt_online_mobile.gif"}}}}else{return"http://img.china.alibaba.com/others/images/myt_offline.gif"}}}},getAlt:function(A){if(A.online==0||A.online==6){return A.offlineAlt}else{if(A.online==1){return A.onlineAlt}else{if(A.online==4||A.online==5){return A.telonlineAlt}else{return""}}}},getDoc:function(A){if(A.online==0||A.online==6){return A.offlineDoc}else{if(A.online==1){return A.onlineDoc}else{if(A.online==2){A.imgObj.removeNode(true);return A.notInstalledDoc}else{if(A.online==4||A.online==5){return A.telonlineDoc}else{return""}}}}},setImgSrc:function(A){if(A.imgObj!=null){A.imgObj.src=this.getAlitalkImgSrc(A);A.imgObj.alt=this.getAlt(A)}},setDoc:function(A){if(A.docObj!=null){A.docObj.innerHTML=this.getDoc(A)}},setEvent:function(B){for(var A=0;A<B.eventObjs.length;A++){if(!B.isencrypt){if(B.online==2){AliEvent.addListener(B.eventObjs[A],"click",function(){alert("\u8be5\u7528\u6237\u5c1a\u672a\u5b89\u88c5\u8d38\u6613\u901a\uff0c\u60a8\u6682\u65f6\u4e0d\u80fd\u901a\u8fc7\u8d38\u6613\u901a\u548c\u4ed6\u8054\u7cfb\uff01\u60a8\u53ef\u4ee5\u901a\u8fc7\u7559\u8a00\u3001\u7535\u5b50\u90ae\u4ef6\u6216\u7535\u8bdd\u65b9\u5f0f\u4e0e\u5bf9\u65b9\u8054\u7cfb.")})}else{AliEvent.addListener(B.eventObjs[A],"click",function(){Alitalk.openAliwangwang(B)})}}}},setImg:function(A){if(A.online!=2){this.setImgSrc(A)}},setAlitalk:function(A){this.setDoc(A);this.setEvent(A);this.setImg(A)},addListener:function(A){A.online=OnLine;this.setAlitalk(A)},addListenerMult:function(A){for(var B=0;B<online.length;B++){if(A[B]){A[B].online=online[B];this.setAlitalk(A[B])}}},openAliwangwang:function(A){if(A.siteid=="cnalichn"){this.openAlitalk(A)}else{this.openWangwang(A)}},isInstallAltalk:function(){var B;try{B=new ActiveXObject("AlitalkSetup.Install")}catch(A){}if(null!=B){return true}else{return false}},isInstallWangwang:function(){var B;try{B=new ActiveXObject("angWangX.WangWangObj")}catch(A){}if(null!=B){return true}else{return false}},openAlitalk:function(A){if(this.isInstallAltalk()){if(A.online==4){window.location="Alitalk:SendSms?"+A.uid+"&siteid=cnalichn&status="+A.online+A.moreProperties}else{window.location="Alitalk:SendIM?"+A.uid+"&siteid=cnalichn&status="+A.online+A.moreProperties}}else{this.downloadAlitalk()}},openWangwang:function(A){if(this.isInstallWangwang()){window.location="wangwang:SendIM?"+A.uid+"&siteid=cnalichn&status="+A.online+A.moreProperties}else{this.downloadWangwang()}},downloadAlitalk:function(){window.target="_blank";window.open("http://china.alibaba.com/community/turbine/template/community%2CATCPromotionDown")},downloadWangwang:function(){window.target="_blank";window.open("http://www.taobao.com/wangwang/index.php")},run:function(A){if(this.isInstallAltalk()){window.location="Alitalk:"+A}}}})()
function aliclick(A,B){d=new Date();if(document.images){(new Image()).src="http://page.china.alibaba.com/stat/stat.html"+B+"&time="+d.getTime()}return true}
var historyDrop=null;function getEvent(B){var A=B||window.event;if(!A){var C=this.getEvent.caller;while(C){A=C.arguments[0];if(A&&Event==A.constructor){break}C=C.caller}}return A}var XDragDrop=function(C,D,B){if(!C){return }var E=document.getElementById(C);if(!E){return }this.oDrag=E;this.cont=null;var A=document.getElementById(D);if(!A){this.oDragCtrl=this.oDrag}else{this.oDragCtrl=A}this.oDragCtrl.style.cursor="move";this._init(E,A,B)};XDragDrop.prototype={_init:function(C,B,A){this.oDrag.style.position="absolute";if(A){this.cont=document.getElementById(A)}this.oDragCtrl.onmousedown=function(G){if(objTimer){clearInterval(objTimer)}if(historyDrop&&historyDrop!=C){historyDrop.style.zIndex=998}C.style.zIndex=999;historyDrop=C;if(B.setCapture){B.setCapture()}else{window.captureEvents(Event.MOUSEMOVE)}getEvent(G).cancelBubble=true;var F=getEvent(G).clientX;var E=getEvent(G).clientY;var D=parseInt(C.offsetLeft);var H=parseInt(C.offsetTop);if(!C.offsetLeft){D=parseInt(C.currentStyle.left);H=parseInt(C.currentStyle.top)}B.onmousemove=function(K){var J=getEvent(K).clientX;var I=getEvent(K).clientY;this.parentNode.style.left=D+J-F+"px";this.parentNode.style.top=H+I-E+"px"};B.onmouseup=function(){if(B.releaseCapture){B.releaseCapture()}else{window.releaseEvents(Event.MOUSEMOVE)}B.onmousemove=null;B.onmouseup=null}}},onDrag:function(A){if(typeof A=="function"&&this.oDrag){this.oDrag.attachEvent("onmousedown",A)}},endDrag:function(A){if(typeof A=="function"&&this.oDrag){this.oDrag.attachEvent("onmouseup",A)}},minDrag:function(){if(this.cont){this.cont.style.display="none"}}};(function(){var B=null;var A=null;XDragDropCtrl={toMin:function(D,C){B=D;A=C;if(D.cont){B.cont.style.display="none";A.src="http://img.china.alibaba.com/images/cn/market/myalibaba/levelup/to_max.gif";A.title="\u6700\u5927\u5316\u4f01\u4e1a\u5728\u7ebf";A.onclick=function(){XDragDropCtrl.toMax(B,A)}}},toMax:function(D,C){B=D;A=C;if(B.cont){B.cont.style.display="block";A.src="http://img.china.alibaba.com/images/cn/market/myalibaba/levelup/to_min.gif";A.title="\u6700\u5c0f\u5316\u4f01\u4e1a\u5728\u7ebf";A.onclick=function(){XDragDropCtrl.toMin(B,A)}}},close:function(C){C.oDrag.style.display="none"}}})();var objTimer,i=0;var divLinkDiv;function getMsg(A){divLinkDiv=document.getElementById(A);getLinkMsg();moveDiv()}function getLinkMsg(){try{divLinkDiv.style.top=parseInt(document.documentElement.scrollTop+50,10)}catch(A){}}function moveDiv(){try{objTimer=window.setInterval("resizeLinkDiv()",1)}catch(A){}}function resizeLinkDiv(){try{divLinkDiv.style.top=parseInt(document.documentElement.scrollTop+50,10)}catch(A){}}onscroll=function(){if(objTimer){clearInterval(objTimer)}moveDiv()};function getContactParam(A,C,B){var D=new Alitalkparam();D.uid=B;D.imgObj=document.getElementById(A);D.eventObjs.add(document.getElementById(C));D.docObj=null;D.size=16;return D}

