yahoo-dom-event.js code:

 

  1XML 1
  2XML 2<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
  3XML 3
  4XML 4<html xmlns=”http://www.w3.org/1999/xhtml” xml:lang=”en” lang=”en”>
  5XML 5
  6XML 6<head>
  7XML 7
  8XML 8<title>yui cookie Dynamically Change Text Size Using Javascript 动态设置字体大小,写入Cookie</title>
  9XML 9
 10XML 10<meta http-equiv=”Content-Type” content=”text/html; charset=utf-8″ />
 11XML 11<meta name=”description” content=”涂聚文,缔友统计机新闻技术有限集团,经营新闻流,物流,人力能源流,资本流的连串缓解方案的开支与规划和劳动,geoVI studio.Geovin Du. Systems Solution to Fund flow,and Information flow,and Material flow,and Control flow,and Human Resource.Applied software development,design and service。.”>
 12XML 12<meta name=”description” content=”Study,Communicate。 “>
 13XML 13<meta name=”Robots” content=”all index follow “>
 14XML 14<meta name=”Author” content=”涂聚文” />
 15XML 15<meta name=”keywords” content=”Chinea,Guangdong Province,Shenzhen city,Nanshan District,Hi-teach industry Park, geoVI studio,Geovin Du,Systems Solution.勝利は仕事部屋である貴方にご光来を賜ることを歓迎,the original affiliation, Jiangxi Province, the  Ji’an city, YongFeng coutry, Ouyang’s hometown.  Discussion forum, friend reason person, English, Japanese language, Korean languageXML 16  The music appreciation, Wan Nian calendar, the English  salon, the trade market, the information, the telecommunication  electron, the electric appliance, the currency foreign exchange, the  news, the book, by talk, the fable, the fairy tale, the novel, the  sketch philosophy, the philosophy, the national studies, the poem, the word, the prose, the tune, manages the creativity, the software  technology, sound, the picture, the image data warehouse, C++, C.NET,  WEB,JAVA, J2EE XML, the HTML, software engineering, the physiological,  keeping in good health, the traveling, lives,geocVi のスタジオはgeovindu, 中国のGuangdong の地 域,Shenzhen のNanShan 地区すなわち高く新しい技術的な企業の 開発の地帯すなわち元の加入すなわちJiangxi の地域すなわち Ji’an 都市, 故郷coutry YongFeng Ouyang’s のへ, あな たを歓迎する。議論のフォーラムすなわち友人の理由人,  英語す なわち日本語の言語すなわち韓国語の言語はXML 17 音楽感謝すなわ ちNian の弱々しいカレンダーすなわち大不列颠及英格兰联合王国の大広間すなわち貿易 市場すなわち情報すなわちテレコミュニケーションの電子すなわ ち電気電気器具すなわち通貨の海外為替すなわちニュースすなわ ち本, 話によって, fable のおとぎ話すなわち小説すなわちスケ ッチの理学すなわち法学は, 国民調査する, 詩すなわち単語すな わち散文すなわち調子, 管理する創造性すなわちソフトウェア技 術すなわち音すなわち映像すなわちイメージ・データの倉庫 , C++, C.NET  の網, ジャワ, J2EE XML, html のよい健康すなわ ち移動, 生命で保つソフトウエア文学すなわち生农学を,®geoVI 일 방 ™고향 geocVi 스튜디오는 geovindu, 중국 의  Guangdong 지방, Shenzhen 의 NanShan 지역, 높은 새로운 기술 적인 공업 발달 지역, 원래 affiliation, Jiangxi 지방 , Ji’an 도시, coutry  YongFeng, Ouyang’s에, 너를 환 영한다.  면담 공개토론, 친구 이유 사람, 영어, 일본 언어, 한 국 언어는XML 18  음악 감사, Nian 병약한 달력, 영국 살롱, 무역  시장, 정보, 원거리 통신 전자, 전기기구, 통화 외국 교환, 뉴 스, 책, 이야기의옆에,fable 의 요전같은 총계, 소설, 밑그림  철학,  철학은, 동포 공부한다, 시, 낱말, 산문, 곡,  처리한다  독창성, 소프트웨어 기술, 소리, 그림,심상 자료 창고 , C++, C.NET 의 웨브, 자바, J2EE  XML, HTML 의 건강, 여행,  일생안에 지키는 소프트웨어 기술설계, 생리를”>
 16XML 19        <link rel=”stylesheet” href=”css/style.css” type=”text/css”>
 17XML 20        <link rel=”stylesheet” href=”css/shadow.css” type=”text/css”>
 18XML 21<link rel=”shortcut icon” href=”http://www.dupcit.com/favicon.ico” type=”image/x-icon” />
 19XML 22<link rel=”icon” href=”http://www.dupcit.com/favicon.ico” type=”image/ico” />
 20XML 23<link rel=”Bookmark” href=”http://www.dupcit.com/favicon.ico"&gt
 21XML 24</head>
 22XML 25
 23XML 26<body>
 24XML 27
 25XML 28<div><img src=”A+.gif” alt=”increase font size” id=”increaseFont” /></div>
 26XML 29
 27XML 30<div><img src=”A-.gif” alt=”decrease font size” id=”decreaseFont” /></div>
 28XML 31
 29XML 32<div id=”news-main”>
 30XML 33
 31XML 34Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas sit amet metus.
 32XML 35
 33XML 36Nunc quam elit, posuere nec, auctor in, rhoncus quis, dui. Aliquam erat volutpat. Ut dignissim, massa
 34XML 37
 35XML 38</div>
 36XML 39
 37XML 40 
 38XML 41
 39XML 42<!– js –>
 40XML 43
 41XML 44<script type=”text/javascript” src=”yahoo-dom-event/yahoo-dom-event.js”></script>
 42XML 45
 43XML 46<script type=”text/javascript” src=”cookie/cookie-beta-min.js”></script>
 44XML 47
 45XML 48<!– /js –>
 46XML 49
 47XML 50 
 48XML 51
 49XML 52<script type=”text/javascript”>
 50XML 53// 涂聚文 缔友总结机新闻技术有限集团 版权拥有
 51XML 54XML 55var updateFontSize = function(o, params)XML 56{
 52XML 57
 53XML 58XML 59tryXML 60{
 54XML 61
 55XML 62XML 63if(params.type == ‘increase’)XML 64{
 56XML 65
 57XML 66newSize = parseInt(YAHOO.util.Dom.getStyle(params.id, ‘font-size’), 10) + 1;
 58XML 67
 59XML 68}
 60XML 69
 61XML 70XML 71elseXML 72{
 62XML 73
 63XML 74newSize = parseInt(YAHOO.util.Dom.getStyle(params.id, ‘font-size’), 10) – 1;
 64XML 75
 65XML 76}
 66XML 77
 67XML 78 
 68XML 79
 69XML 80YAHOO.util.Dom.setStyle(params.id, ‘font-size’, newSize + ‘px’);
 70XML 81
 71XML 82XML 83YAHOO.util.Cookie.set(“news-size”, newSize, XML 84{ path: “/”, expires: new Date(“December 22, 2010”) });
 72XML 85
 73XML 86}
 74XML 87
 75XML 88XML 89catch(e)XML 90{}
 76XML 91
 77XML 92};
 78XML 93
 79XML 94 
 80XML 95
 81XML 96XML 97YAHOO.util.Event.addListener(‘increaseFont’, ‘click’, updateFontSize, XML 98{“id” : ‘news-main’, “type” : ‘increase’});
 82XML 99
 83XML 100XML 101YAHOO.util.Event.addListener(‘decreaseFont’, ‘click’, updateFontSize, XML 102{“id” : ‘news-main’, “type” : ‘decrease’});
 84XML 103
 85XML 104XML 105YAHOO.util.Event.addListener(window, ‘load’, function()XML 106{
 86XML 107
 87XML 108XML 109tryXML 110{
 88XML 111
 89XML 112XML 113var newsSize = YAHOO.util.Cookie.get(“news-size”, function(value)XML 114{
 90XML 115
 91XML 116YAHOO.util.Dom.setStyle(‘news-main’, ‘font-size’, value + ‘px’);
 92XML 117
 93XML 118});
 94XML 119
 95XML 120}
 96XML 121
 97XML 122XML 123catch(e)XML 124{}
 98XML 125
 99XML 126});
100XML 127
101XML 128</script>
102XML 129
103XML 130</body>
104XML 131
105XML 132</html>

 

1XML 133XML 134/**//*
2XML 135Copyright (c) 2008, Yahoo! Inc. All rights reserved.
3XML 136Code licensed under the BSD License:
4XML 137http://developer.yahoo.net/yui/license.txt
5XML 138version: 2.5.2
6XML 139*/
7XML 140XML 141YAHOO.namespace(“util”);YAHOO.util.Cookie=XML 142{_createCookieString:function(B,D,C,A)XML 143{var F=YAHOO.lang;var E=encodeURIComponent(B)+”=”+(C?encodeURIComponent(D):D);if(F.isObject(A))XML 144{if(A.expires instanceof Date)XML 145{E+=”; expires=”+A.expires.toGMTString();}if(F.isString(A.path)&&A.path!=””)XML 146{E+=”; path=”+A.path;}if(F.isString(A.domain)&&A.domain!=””)XML 147{E+=”; domain=”+A.domain;}if(A.secure===true)XML 148{E+=”; secure”;}}return E;},_createCookieHashString:function(B)XML 149{var D=YAHOO.lang;if(!D.isObject(B))XML 150{throw new TypeError(“Cookie._createCookieHashString(): Argument must be an object.”);}var C=new Array();for(var A in B)XML 151{if(D.hasOwnProperty(B,A)&&!D.isFunction(B[A])&&!D.isUndefined(B[A]))XML 152{C.push(encodeURIComponent(A)+”=”+encodeURIComponent(String(B[A])));}}return C.join(“&”);},_parseCookieHash:function(E)XML 153{var D=E.split(“&”);var F=null;var C=new Object();for(var B=0,A=D.length;B<A;B++)XML 154{F=D[B].split(“=”);C[decodeURIComponent(F[0])]=decodeURIComponent(F[1]);}return C;},_parseCookieString:function(I,A)XML 155{var J=new Object();if(YAHOO.lang.isString(I)&&I.length>0)XML 156{var B=(A===false?function(K)XML 157{return K;}:decodeURIComponent);if(/[^=]+=[^=;]?(?:; [^=]+=[^=]?)?/.test(I))XML 158{var G=I.split(/;\s/g);var H=null;var C=null;var E=null;for(var D=0,F=G.length;D<F;D++)XML 159{E=G[D].match(/([^=]+)=/i);if(E instanceof Array)XML 160{H=decodeURIComponent(E[1]);C=B(G[D].substring(H.length+1));}elseXML 161{H=decodeURIComponent(G[D]);C=H;}J[H]=C;}}}return J;},get:function(A,B)XML 162{var D=YAHOO.lang;var C=this._parseCookieString(document.cookie);if(!D.isString(A)||A===””)XML 163{throw new TypeError(“Cookie.get(): Cookie name must be a non-empty string.”);}if(D.isUndefined(C[A]))XML 164{return null;}if(!D.isFunction(B))XML 165{return C[A];}elseXML 166{return B(C[A]);}},getSub:function(A,C,B)XML 167{var E=YAHOO.lang;var D=this.getSubs(A);if(D!==null)XML 168{if(!E.isString(C)||C===””)XML 169{throw new TypeError(“Cookie.getSub(): Subcookie name must be a non-empty string.”);}if(E.isUndefined(D[C]))XML 170{return null;}if(!E.isFunction(B))XML 171{return D[C];}elseXML 172{return B(D[C]);}}elseXML 173{return null;}},getSubs:function(A)XML 174{if(!YAHOO.lang.isString(A)||A===””)XML 175{throw new TypeError(“Cookie.getSubs(): Cookie name must be a non-empty string.”);}var B=this._parseCookieString(document.cookie,false);if(YAHOO.lang.isString(B[A]))XML 176{return this._parseCookieHash(B[A]);}return null;},remove:function(B,A)XML 177{if(!YAHOO.lang.isString(B)||B===””)XML 178{throw new TypeError(“Cookie.remove(): Cookie name must be a non-empty string.”);}A=A||XML 179{};A.expires=new Date(0);return this.set(B,””,A);},set:function(B,C,A)XML 180{var E=YAHOO.lang;if(!E.isString(B))XML 181{throw new TypeError(“Cookie.set(): Cookie name must be a string.”);}if(E.isUndefined(C))XML 182{throw new TypeError(“Cookie.set(): Value cannot be undefined.”);}var D=this._createCookieString(B,C,true,A);document.cookie=D;return D;},setSub:function(B,D,C,A)XML 183{var F=YAHOO.lang;if(!F.isString(B)||B===””)XML 184{throw new TypeError(“Cookie.setSub(): Cookie name must be a non-empty string.”);}if(!F.isString(D)||D===””)XML 185{throw new TypeError(“Cookie.setSub(): Subcookie name must be a non-empty string.”);}if(F.isUndefined(C))XML 186{throw new TypeError(“Cookie.setSub(): Subcookie value cannot be undefined.”);}var E=this.getSubs(B);if(!F.isObject(E))XML 187{E=new Object();}E[D]=C;return this.setSubs(B,E,A);},setSubs:function(B,C,A)XML 188{var E=YAHOO.lang;if(!E.isString(B))XML 189{throw new TypeError(“Cookie.setSubs(): Cookie name must be a string.”);}if(!E.isObject(C))XML 190{throw new TypeError(“Cookie.setSubs(): Cookie value must be an object.”);}var D=this._createCookieString(B,this._createCookieHashString(C),false,A);document.cookie=D;return D;}};YAHOO.register(“cookie”,YAHOO.util.Cookie,XML 191{version:”2.5.2″,build:”1076″});

 

 

 1XML 192XML 193/**//*
 2XML 194Copyright (c) 2008, Yahoo! Inc. All rights reserved.
 3XML 195Code licensed under the BSD License:
 4XML 196http://developer.yahoo.net/yui/license.txt
 5XML 197version: 2.5.2
 6XML 198*/
 7XML 199XML 200if(typeof YAHOO==”undefined”||!YAHOO)XML 201{var YAHOO=XML 202{};}YAHOO.namespace=function()XML 203{var A=arguments,E=null,C,B,D;for(C=0;C<A.length;C=C+1)XML 204{D=A[C].split(“.”);E=YAHOO;for(B=(D[0]==”YAHOO”)?1:0;B<D.length;B=B+1)XML 205{E[D[B]]=E[D[B]]||XML 206{};E=E[D[B]];}}return E;};YAHOO.log=function(D,A,C)XML 207{var B=YAHOO.widget.Logger;if(B&&B.log)XML 208{return B.log(D,A,C);}elseXML 209{return false;}};YAHOO.register=function(A,E,D)XML 210{var I=YAHOO.env.modules;if(!I[A])XML 211{I[A]=XML 212{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)XML 213{F[C](B);}if(E)XML 214{E.VERSION=H;E.BUILD=G;}elseXML 215{YAHOO.log(“mainClass is undefined for module “+A,”warn”);}};YAHOO.env=YAHOO.env||XML 216{modules:[],listeners:[]};YAHOO.env.getVersion=function(A)XML 217{return YAHOO.env.modules[A]||null;};YAHOO.env.ua=function()XML 218{var C=XML 219{ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0};var B=navigator.userAgent,A;if((/KHTML/).test(B))XML 220{C.webkit=1;}A=B.match(/AppleWebKit\/([^\s]*)/);if(A&&A[1]){C.webkit=parseFloat(A[1]);if(/ Mobile\//.test(B)){C.mobile=”Apple”;}else{A=B.match(/NokiaN[^\/]*/);if(A){C.mobile=A[0];}}A=B.match(/AdobeAIR\/([^\s]*)/);if(A){C.air=A[0];}}if(!C.webkit){A=B.match(/Opera[\s\/]([^\s]*)/);if(A&&A[1]){C.opera=parseFloat(A[1]);A=B.match(/Opera Mini[^;]*/);if(A){C.mobile=A[0];}}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(“undefined”!==typeof YAHOO_config){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=YAHOO.lang||{};(function(){var A=YAHOO.lang,C=[“toString”,”valueOf”],B={isArray:function(D){if(D){return A.isNumber(D.length)&&A.isFunction(D.splice);}return false;},isBoolean:function(D){return typeof D===”boolean”;},isFunction:function(D){return typeof D===”function”;},isNull:function(D){return D===null;},isNumber:function(D){return typeof D===”number”&&isFinite(D);},isObject:function(D){return(D&&(typeof D===”object”||A.isFunction(D)))||false;},isString:function(D){return typeof D===”string”;},isUndefined:function(D){return typeof D===”undefined”;},_IEEnumFix:(YAHOO.env.ua.ie)?function(F,E){for(var D=0;D<C.length;D=D+1){var H=C[D],G=E[H];if(A.isFunction(G)&&G!=Object.prototype[H]){F[H]=G;}}}:function(){},extend:function(H,I,G){if(!I||!H){throw new Error(“extend failed, please check that “+”all dependencies are included.”);}var E=function(){};E.prototype=I.prototype;H.prototype=new E();H.prototype.constructor=H;H.superclass=I.prototype;if(I.prototype.constructor==Object.prototype.constructor){I.prototype.constructor=I;}if(G){for(var D in G){if(A.hasOwnProperty(G,D)){H.prototype[D]=G[D];}}A._IEEnumFix(H.prototype,G);}},augmentObject:function(H,G){if(!G||!H){throw new Error(“Absorb failed, verify dependencies.”);}var D=arguments,F,I,E=D[2];if(E&&E!==true){for(F=2;F<D.length;F=F+1){H[D[F]]=G[D[F]];}}else{for(I in G){if(E||!(I in H)){H[I]=G[I];}}A._IEEnumFix(H,G);}},augmentProto:function(G,F){if(!F||!G){throw new Error(“Augment failed, verify dependencies.”);}var D=[G.prototype,F.prototype];for(var E=2;E<arguments.length;E=E+1){D.push(arguments[E]);}A.augmentObject.apply(this,D);},dump:function(D,I){var F,H,K=[],L=”{XML 221}”,E=”f(){XML 222}”,J=”, “,G=” => “;if(!A.isObject(D)){return D+””;}else{if(D instanceof Date||(“nodeType” in D&&”tagName” in D)){return D;}else{if(A.isFunction(D)){return E;}}}I=(A.isNumber(I))?I:3;if(A.isArray(D)){K.push(“[“);for(F=0,H=D.length;F<H;F=F+1){if(A.isObject(D[F])){K.push((I>0)?A.dump(D[F],I-1):L);}else{K.push(D[F]);}K.push(J);}if(K.length>1){K.pop();}K.push(“]”);}else{K.push(“{“);for(F in D){if(A.hasOwnProperty(D,F)){K.push(F+G);if(A.isObject(D[F])){K.push((I>0)?A.dump(D[F],I-1):L);}else{K.push(D[F]);}K.push(J);}}if(K.length>1){K.pop();}K.push(“}”);}return K.join(“”);},substitute:function(S,E,L){var I,H,G,O,P,R,N=[],F,J=”dump”,M=” “,D=”{“,Q=”}”;for(;;){I=S.lastIndexOf(D);if(I<0){break;}H=S.indexOf(Q,I);if(I+1>=H){break;}F=S.substring(I+1,H);O=F;R=null;G=O.indexOf(M);if(G>-1){R=O.substring(G+1);O=O.substring(0,G);}P=E[O];if(L){P=L(O,P,R);}if(A.isObject(P)){if(A.isArray(P)){P=A.dump(P,parseInt(R,10));}else{R=R||””;var K=R.indexOf(J);if(K>-1){R=R.substring(4);}if(P.toString===Object.prototype.toString||K>-1){P=A.dump(P,parseInt(R,10));}else{P=P.toString();}}}else{if(!A.isString(P)&&!A.isNumber(P)){P=”~-“+N.length+”-~”;N[N.length]=F;}}S=S.substring(0,I)+P+S.substring(H+1);}for(I=N.length-1;I>=0;I=I-1){S=S.replace(new RegExp(“~-“+I+”-~”),”{“+N[I]+”}”,”g”);}return S;},trim:function(D){try{return D.replace(/^\s+|\s+$/g,””);}catch(E){return D;}},merge:function(){var G={},E=arguments;for(var F=0,D=E.length;F<D;F=F+1){A.augmentObject(G,E[F],true);}return G;},later:function(K,E,L,G,H){K=K||0;E=E||{};var F=L,J=G,I,D;if(A.isString(L)){F=E[L];}if(!F){throw new TypeError(“method undefined”);}if(!A.isArray(J)){J=[G];}I=function(){F.apply(E,J);};D=(H)?setInterval(I,K):setTimeout(I,K);return{interval:H,cancel:function(){if(this.interval){clearInterval(D);}else{clearTimeout(D);}}};},isValue:function(D){return(A.isObject(D)||A.isString(D)||A.isNumber(D)||A.isBoolean(D));}};A.hasOwnProperty=(Object.prototype.hasOwnProperty)?function(D,E){return D&&D.hasOwnProperty(E);}:function(D,E){return !A.isUndefined(D[E])&&D.constructor.prototype[E]!==D[E];};B.augmentObject(A,B,true);YAHOO.util.Lang=A;A.augment=A.augmentProto;YAHOO.augment=A.augmentProto;YAHOO.extend=A.extend;})();YAHOO.register(“yahoo”,YAHOO,{version:”2.5.2″,build:”1076″});(function(){var B=YAHOO.util,K,I,J={},F={},M=window.document;YAHOO.env._id_counter=YAHOO.env._id_counter||0;var C=YAHOO.env.ua.opera,L=YAHOO.env.ua.webkit,A=YAHOO.env.ua.gecko,G=YAHOO.env.ua.ie;var E={HYPHEN:/(-[a-z])/i,ROOT_TAG:/^body|html$/i,OP_SCROLL:/^(?:inline|table-row)$/i};var N=function(P){if(!E.HYPHEN.test(P)){return P;}if(J[P]){return J[P];}var Q=P;while(E.HYPHEN.exec(Q)){Q=Q.replace(RegExp.$1,RegExp.$1.substr(1).toUpperCase());}J[P]=Q;return Q;};var O=function(Q){var P=F[Q];if(!P){P=new RegExp(“(?:^|\\s+)”+Q+”(?:\\s+|$)”);F[Q]=P;}return P;};if(M.defaultView&&M.defaultView.getComputedStyle){K=function(P,S){var R=null;if(S==”float”){S=”cssFloat”;}var Q=P.ownerDocument.defaultView.getComputedStyle(P,””);if(Q){R=Q[N(S)];}return P.style[S]||R;};}else{if(M.documentElement.currentStyle&&G){K=function(P,R){switch(N(R)){case”opacity”:var T=100;try{T=P.filters[“DXImageTransform.Microsoft.Alpha”].opacity;}catch(S){try{T=P.filters(“alpha”).opacity;}catch(S){}}return T/100;case”float”:R=”styleFloat”;default:var Q=P.currentStyle?P.currentStyle[R]:null;return(P.style[R]||Q);}};}else{K=function(P,Q){return P.style[Q];};}}if(G){I=function(P,Q,R){switch(Q){case”opacity”:if(YAHOO.lang.isString(P.style.filter)){P.style.filter=”alpha(opacity=”+R*100+”)”;if(!P.currentStyle||!P.currentStyle.hasLayout){P.style.zoom=1;}}break;case”float”:Q=”styleFloat”;default:P.style[Q]=R;}};}else{I=function(P,Q,R){if(Q==”float”){Q=”cssFloat”;}P.style[Q]=R;};}var D=function(P,Q){return P&&P.nodeType==1&&(!Q||Q(P));};YAHOO.util.Dom={get:function(R){if(R&&(R.nodeType||R.item)){return R;}if(YAHOO.lang.isString(R)||!R){return M.getElementById(R);}if(R.length!==undefined){var S=[];for(var Q=0,P=R.length;Q<P;++Q){S[S.length]=B.Dom.get(R[Q]);}return S;}return R;},getStyle:function(P,R){R=N(R);var Q=function(S){return K(S,R);};return B.Dom.batch(P,Q,B.Dom,true);},setStyle:function(P,R,S){R=N(R);var Q=function(T){I(T,R,S);};B.Dom.batch(P,Q,B.Dom,true);},getXY:function(P){var Q=function(R){if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,”display”)==”none”)&&R!=R.ownerDocument.body){return false;}return H(R);};return B.Dom.batch(P,Q,B.Dom,true);},getX:function(P){var Q=function(R){return B.Dom.getXY(R)[0];};return B.Dom.batch(P,Q,B.Dom,true);},getY:function(P){var Q=function(R){return B.Dom.getXY(R)[1];};return B.Dom.batch(P,Q,B.Dom,true);},setXY:function(P,S,R){var Q=function(V){var U=this.getStyle(V,”position”);if(U==”static”){this.setStyle(V,”position”,”relative”);U=”relative”;}var X=this.getXY(V);if(X===false){return false;}var W=[parseInt(this.getStyle(V,”left”),10),parseInt(this.getStyle(V,”top”),10)];if(isNaN(W[0])){W[0]=(U==”relative”)?0:V.offsetLeft;}if(isNaN(W[1])){W[1]=(U==”relative”)?0:V.offsetTop;}if(S[0]!==null){V.style.left=S[0]-X[0]+W[0]+”px”;}if(S[1]!==null){V.style.top=S[1]-X[1]+W[1]+”px”;}if(!R){var T=this.getXY(V);if((S[0]!==null&&T[0]!=S[0])||(S[1]!==null&&T[1]!=S[1])){this.setXY(V,S,true);}}};B.Dom.batch(P,Q,B.Dom,true);},setX:function(Q,P){B.Dom.setXY(Q,[P,null]);},setY:function(P,Q){B.Dom.setXY(P,[null,Q]);},getRegion:function(P){var Q=function(R){if((R.parentNode===null||R.offsetParent===null||this.getStyle(R,”display”)==”none”)&&R!=R.ownerDocument.body){return false;}var S=B.Region.getRegion(R);return S;};return B.Dom.batch(P,Q,B.Dom,true);},getClientWidth:function(){return B.Dom.getViewportWidth();},getClientHeight:function(){return B.Dom.getViewportHeight();},getElementsByClassName:function(T,X,U,V){X=X||”*”;U=(U)?B.Dom.get(U):null||M;if(!U){return[];}var Q=[],P=U.getElementsByTagName(X),W=O(T);for(var R=0,S=P.length;R<S;++R){if(W.test(P[R].className)){Q[Q.length]=P[R];if(V){V.call(P[R],P[R]);}}}return Q;},hasClass:function(R,Q){var P=O(Q);var S=function(T){return P.test(T.className);};return B.Dom.batch(R,S,B.Dom,true);},addClass:function(Q,P){var R=function(S){if(this.hasClass(S,P)){return false;}S.className=YAHOO.lang.trim([S.className,P].join(” “));return true;};return B.Dom.batch(Q,R,B.Dom,true);},removeClass:function(R,Q){var P=O(Q);var S=function(T){if(!Q||!this.hasClass(T,Q)){return false;}var U=T.className;T.className=U.replace(P,” “);if(this.hasClass(T,Q)){this.removeClass(T,Q);}T.className=YAHOO.lang.trim(T.className);return true;};return B.Dom.batch(R,S,B.Dom,true);},replaceClass:function(S,Q,P){if(!P||Q===P){return false;}var R=O(Q);var T=function(U){if(!this.hasClass(U,Q)){this.addClass(U,P);return true;}U.className=U.className.replace(R,” “+P+” “);if(this.hasClass(U,Q)){this.replaceClass(U,Q,P);}U.className=YAHOO.lang.trim(U.className);return true;};return B.Dom.batch(S,T,B.Dom,true);},generateId:function(P,R){R=R||”yui-gen”;var Q=function(S){if(S&&S.id){return S.id;}var T=R+YAHOO.env._id_counter++;if(S){S.id=T;}return T;};return B.Dom.batch(P,Q,B.Dom,true)||Q.apply(B.Dom,arguments);},isAncestor:function(P,Q){P=B.Dom.get(P);Q=B.Dom.get(Q);if(!P||!Q){return false;}if(P.contains&&Q.nodeType&&!L){return P.contains(Q);}else{if(P.compareDocumentPosition&&Q.nodeType){return !!(P.compareDocumentPosition(Q)&16);}else{if(Q.nodeType){return !!this.getAncestorBy(Q,function(R){return R==P;});}}}return false;},inDocument:function(P){return this.isAncestor(M.documentElement,P);},getElementsBy:function(W,Q,R,T){Q=Q||”*”;R=(R)?B.Dom.get(R):null||M;if(!R){return[];}var S=[],V=R.getElementsByTagName(Q);for(var U=0,P=V.length;U<P;++U){if(W(V[U])){S[S.length]=V[U];if(T){T(V[U]);}}}return S;},batch:function(T,W,V,R){T=(T&&(T.tagName||T.item))?T:B.Dom.get(T);if(!T||!W){return false;}var S=(R)?V:window;if(T.tagName||T.length===undefined){return W.call(S,T,V);}var U=[];for(var Q=0,P=T.length;Q<P;++Q){U[U.length]=W.call(S,T[Q],V);}return U;},getDocumentHeight:function(){var Q=(M.compatMode!=”CSS1Compat”)?M.body.scrollHeight:M.documentElement.scrollHeight;var P=Math.max(Q,B.Dom.getViewportHeight());return P;},getDocumentWidth:function(){var Q=(M.compatMode!=”CSS1Compat”)?M.body.scrollWidth:M.documentElement.scrollWidth;var P=Math.max(Q,B.Dom.getViewportWidth());return P;},getViewportHeight:function(){var P=self.innerHeight;
 8XML 223XML 224var Q=M.compatMode;if((Q||G)&&!C)XML 225{P=(Q==”CSS1Compat”)?M.documentElement.clientHeight:M.body.clientHeight;}return P;},getViewportWidth:function()XML 226{var P=self.innerWidth;var Q=M.compatMode;if(Q||G)XML 227{P=(Q==”CSS1Compat”)?M.documentElement.clientWidth:M.body.clientWidth;}return P;},getAncestorBy:function(P,Q)XML 228{while(P=P.parentNode)XML 229{if(D(P,Q))XML 230{return P;}}return null;},getAncestorByClassName:function(Q,P)XML 231{Q=B.Dom.get(Q);if(!Q)XML 232{return null;}var R=function(S)XML 233{return B.Dom.hasClass(S,P);};return B.Dom.getAncestorBy(Q,R);},getAncestorByTagName:function(Q,P)XML 234{Q=B.Dom.get(Q);if(!Q)XML 235{return null;}var R=function(S)XML 236{return S.tagName&&S.tagName.toUpperCase()==P.toUpperCase();};return B.Dom.getAncestorBy(Q,R);},getPreviousSiblingBy:function(P,Q)XML 237{while(P)XML 238{P=P.previousSibling;if(D(P,Q))XML 239{return P;}}return null;},getPreviousSibling:function(P)XML 240{P=B.Dom.get(P);if(!P)XML 241{return null;}return B.Dom.getPreviousSiblingBy(P);},getNextSiblingBy:function(P,Q)XML 242{while(P)XML 243{P=P.nextSibling;if(D(P,Q))XML 244{return P;}}return null;},getNextSibling:function(P)XML 245{P=B.Dom.get(P);if(!P)XML 246{return null;}return B.Dom.getNextSiblingBy(P);},getFirstChildBy:function(P,R)XML 247{var Q=(D(P.firstChild,R))?P.firstChild:null;return Q||B.Dom.getNextSiblingBy(P.firstChild,R);},getFirstChild:function(P,Q)XML 248{P=B.Dom.get(P);if(!P)XML 249{return null;}return B.Dom.getFirstChildBy(P);},getLastChildBy:function(P,R)XML 250{if(!P)XML 251{return null;}var Q=(D(P.lastChild,R))?P.lastChild:null;return Q||B.Dom.getPreviousSiblingBy(P.lastChild,R);},getLastChild:function(P)XML 252{P=B.Dom.get(P);return B.Dom.getLastChildBy(P);},getChildrenBy:function(Q,S)XML 253{var R=B.Dom.getFirstChildBy(Q,S);var P=R?[R]:[];B.Dom.getNextSiblingBy(R,function(T)XML 254{if(!S||S(T))XML 255{P[P.length]=T;}return false;});return P;},getChildren:function(P)XML 256{P=B.Dom.get(P);if(!P)XML 257{}return B.Dom.getChildrenBy(P);},getDocumentScrollLeft:function(P)XML 258{P=P||M;return Math.max(P.documentElement.scrollLeft,P.body.scrollLeft);},getDocumentScrollTop:function(P)XML 259{P=P||M;return Math.max(P.documentElement.scrollTop,P.body.scrollTop);},insertBefore:function(Q,P)XML 260{Q=B.Dom.get(Q);P=B.Dom.get(P);if(!Q||!P||!P.parentNode)XML 261{return null;}return P.parentNode.insertBefore(Q,P);},insertAfter:function(Q,P)XML 262{Q=B.Dom.get(Q);P=B.Dom.get(P);if(!Q||!P||!P.parentNode)XML 263{return null;}if(P.nextSibling)XML 264{return P.parentNode.insertBefore(Q,P.nextSibling);}elseXML 265{return P.parentNode.appendChild(Q);}},getClientRegion:function()XML 266{var R=B.Dom.getDocumentScrollTop(),Q=B.Dom.getDocumentScrollLeft(),S=B.Dom.getViewportWidth()+Q,P=B.Dom.getViewportHeight()+R;return new B.Region(R,S,P,Q);}};var H=function()XML 267{if(M.documentElement.getBoundingClientRect)XML 268{return function(Q)XML 269{var R=Q.getBoundingClientRect();var P=Q.ownerDocument;return[R.left+B.Dom.getDocumentScrollLeft(P),R.top+B.Dom.getDocumentScrollTop(P)];};}elseXML 270{return function(R)XML 271{var S=[R.offsetLeft,R.offsetTop];var Q=R.offsetParent;var P=(L&&B.Dom.getStyle(R,”position”)==”absolute”&&R.offsetParent==R.ownerDocument.body);if(Q!=R)XML 272{while(Q)XML 273{S[0]+=Q.offsetLeft;S[1]+=Q.offsetTop;if(!P&&L&&B.Dom.getStyle(Q,”position”)==”absolute”)XML 274{P=true;}Q=Q.offsetParent;}}if(P)XML 275{S[0]-=R.ownerDocument.body.offsetLeft;S[1]-=R.ownerDocument.body.offsetTop;}Q=R.parentNode;while(Q.tagName&&!E.ROOT_TAG.test(Q.tagName))XML 276{if(Q.scrollTop||Q.scrollLeft)XML 277{if(!E.OP_SCROLL.test(B.Dom.getStyle(Q,”display”)))XML 278{if(!C||B.Dom.getStyle(Q,”overflow”)!==”visible”)XML 279{S[0]-=Q.scrollLeft;S[1]-=Q.scrollTop;}}}Q=Q.parentNode;}return S;};}}();})();YAHOO.util.Region=function(C,D,A,B)XML 280{this.top=C;this[1]=C;this.right=D;this.bottom=A;this.left=B;this[0]=B;};YAHOO.util.Region.prototype.contains=function(A)XML 281{return(A.left>=this.left&&A.right<=this.right&&A.top>=this.top&&A.bottom<=this.bottom);};YAHOO.util.Region.prototype.getArea=function()XML 282{return((this.bottom-this.top)*(this.right-this.left));};YAHOO.util.Region.prototype.intersect=function(E)XML 283{var C=Math.max(this.top,E.top);var D=Math.min(this.right,E.right);var A=Math.min(this.bottom,E.bottom);var B=Math.max(this.left,E.left);if(A>=C&&D>=B)XML 284{return new YAHOO.util.Region(C,D,A,B);}elseXML 285{return null;}};YAHOO.util.Region.prototype.union=function(E)XML 286{var C=Math.min(this.top,E.top);var D=Math.max(this.right,E.right);var A=Math.max(this.bottom,E.bottom);var B=Math.min(this.left,E.left);return new YAHOO.util.Region(C,D,A,B);};YAHOO.util.Region.prototype.toString=function()XML 287{return(“Region {“+”top: “+this.top+”, right: “+this.right+”, bottom: “+this.bottom+”, left: “+this.left+”}”);};YAHOO.util.Region.getRegion=function(D)XML 288{var F=YAHOO.util.Dom.getXY(D);var C=F[1];var E=F[0]+D.offsetWidth;var A=F[1]+D.offsetHeight;var B=F[0];return new YAHOO.util.Region(C,E,A,B);};YAHOO.util.Point=function(A,B)XML 289{if(YAHOO.lang.isArray(A))XML 290{B=A[1];A=A[0];}this.x=this.right=this.left=this[0]=A;this.y=this.top=this.bottom=this[1]=B;};YAHOO.util.Point.prototype=new YAHOO.util.Region();YAHOO.register(“dom”,YAHOO.util.Dom,XML 291{version:”2.5.2″,build:”1076″});YAHOO.util.CustomEvent=function(D,B,C,A)XML 292{this.type=D;this.scope=B||window;this.silent=C;this.signature=A||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent)XML 293{}var E=”_YUICEOnSubscribe”;if(D!==E)XML 294{this.subscribeEvent=new YAHOO.util.CustomEvent(E,this,true);}this.lastError=null;};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype=XML 295{subscribe:function(B,C,A)XML 296{if(!B)XML 297{throw new Error(“Invalid callback for subscriber to ‘”+this.type+”‘”);}if(this.subscribeEvent)XML 298{this.subscribeEvent.fire(B,C,A);}this.subscribers.push(new YAHOO.util.Subscriber(B,C,A));},unsubscribe:function(D,F)XML 299{if(!D)XML 300{return this.unsubscribeAll();}var E=false;for(var B=0,A=this.subscribers.length;B<A;++B)XML 301{var C=this.subscribers[B];if(C&&C.contains(D,F))XML 302{this._delete(B);E=true;}}return E;},fire:function()XML 303{this.lastError=null;var K=[],E=this.subscribers.length;if(!E&&this.silent)XML 304{return true;}var I=[].slice.call(arguments,0),G=true,D,J=false;if(!this.silent)XML 305{}var C=this.subscribers.slice(),A=YAHOO.util.Event.throwErrors;for(D=0;D<E;++D)XML 306{var M=C[D];if(!M)XML 307{J=true;}elseXML 308{if(!this.silent)XML 309{}var L=M.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT)XML 310{var B=null;if(I.length>0)XML 311{B=I[0];}tryXML 312{G=M.fn.call(L,B,M.obj);}catch(F)XML 313{this.lastError=F;if(A)XML 314{throw F;}}}elseXML 315{tryXML 316{G=M.fn.call(L,this.type,I,M.obj);}catch(H)XML 317{this.lastError=H;if(A)XML 318{throw H;}}}if(false===G)XML 319{if(!this.silent)XML 320{}break;}}}return(G!==false);},unsubscribeAll:function()XML 321{for(var A=this.subscribers.length-1;A>-1;A–)XML 322{this._delete(A);}this.subscribers=[];return A;},_delete:function(A)XML 323{var B=this.subscribers[A];if(B)XML 324{delete B.fn;delete B.obj;}this.subscribers.splice(A,1);},toString:function()XML 325{return”CustomEvent: “+”‘”+this.type+”‘, “+”scope: “+this.scope;}};YAHOO.util.Subscriber=function(B,C,A)XML 326{this.fn=B;this.obj=YAHOO.lang.isUndefined(C)?null:C;this.override=A;};YAHOO.util.Subscriber.prototype.getScope=function(A)XML 327{if(this.override)XML 328{if(this.override===true)XML 329{return this.obj;}elseXML 330{return this.override;}}return A;};YAHOO.util.Subscriber.prototype.contains=function(A,B)XML 331{if(B)XML 332{return(this.fn==A&&this.obj==B);}elseXML 333{return(this.fn==A);}};YAHOO.util.Subscriber.prototype.toString=function()XML 334{return”Subscriber { obj: “+this.obj+”, override: “+(this.override||”no”)+” }”;};if(!YAHOO.util.Event)XML 335{YAHOO.util.Event=function()XML 336{var H=false;var I=[];var J=[];var G=[];var E=[];var C=0;var F=[];var B=[];var A=0;var D=XML 337{63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};returnXML 338{POLL_RETRYS:2000,POLL_INTERVAL:20,EL:0,TYPE:1,FN:2,WFN:3,UNLOAD_OBJ:3,ADJ_SCOPE:4,OBJ:5,OVERRIDE:6,lastError:null,isSafari:YAHOO.env.ua.webkit,webkit:YAHOO.env.ua.webkit,isIE:YAHOO.env.ua.ie,_interval:null,_dri:null,DOMReady:false,throwErrors:false,startInterval:function()XML 339{if(!this._interval)XML 340{var K=this;var L=function()XML 341{K._tryPreloadAttach();};this._interval=setInterval(L,this.POLL_INTERVAL);}},onAvailable:function(P,M,Q,O,N)XML 342{var K=(YAHOO.lang.isString(P))?[P]:P;for(var L=0;L<K.length;L=L+1)XML 343{F.push(XML 344{id:K[L],fn:M,obj:Q,override:O,checkReady:N});}C=this.POLL_RETRYS;this.startInterval();},onContentReady:function(M,K,N,L)XML 345{this.onAvailable(M,K,N,L,true);},onDOMReady:function(K,M,L)XML 346{if(this.DOMReady)XML 347{setTimeout(function()XML 348{var N=window;if(L)XML 349{if(L===true)XML 350{N=M;}elseXML 351{N=L;}}K.call(N,”DOMReady”,[],M);},0);}elseXML 352{this.DOMReadyEvent.subscribe(K,M,L);}},addListener:function(M,K,V,Q,L)XML 353{if(!V||!V.call)XML 354{return false;}if(this._isValidCollection(M))XML 355{var W=true;for(var R=0,T=M.length;R<T;++R)XML 356{W=this.on(M[R],K,V,Q,L)&&W;}return W;}elseXML 357{if(YAHOO.lang.isString(M))XML 358{var P=this.getEl(M);if(P)XML 359{M=P;}elseXML 360{this.onAvailable(M,function()XML 361{YAHOO.util.Event.on(M,K,V,Q,L);});return true;}}}if(!M)XML 362{return false;}if(“unload”==K&&Q!==this)XML 363{J[J.length]=[M,K,V,Q,L];return true;}var Y=M;if(L)XML 364{if(L===true)XML 365{Y=Q;}elseXML 366{Y=L;}}var N=function(Z)XML 367{return V.call(Y,YAHOO.util.Event.getEvent(Z,M),Q);};var X=[M,K,V,N,Y,Q,L];var S=I.length;I[S]=X;if(this.useLegacyEvent(M,K))XML 368{var O=this.getLegacyIndex(M,K);if(O==-1||M!=G[O][0])XML 369{O=G.length;B[M.id+K]=O;G[O]=[M,K,M[“on”+K]];E[O]=[];M[“on”+K]=function(Z)XML 370{YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(Z),O);};}E[O].push(X);}elseXML 371{tryXML 372{this._simpleAdd(M,K,N,false);}catch(U)XML 373{this.lastError=U;this.removeListener(M,K,V);return false;}}return true;},fireLegacyEvent:function(O,M)XML 374{var Q=true,K,S,R,T,P;S=E[M].slice();for(var L=0,N=S.length;L<N;++L)XML 375{R=S[L];if(R&&R[this.WFN])XML 376{T=R[this.ADJ_SCOPE];P=R[this.WFN].call(T,O);Q=(Q&&P);}}K=G[M];if(K&&K[2])XML 377{K[2](O);}return Q;},getLegacyIndex:function(L,M)XML 378{var K=this.generateId(L)+M;if(typeof B[K]==”undefined”)XML 379{return -1;}elseXML 380{return B[K];}},useLegacyEvent:function(L,M)XML 381{if(this.webkit&&(“click”==M||”dblclick”==M))XML 382{var K=parseInt(this.webkit,10);if(!isNaN(K)&&K<418)XML 383{return true;}}return false;},removeListener:function(L,K,T)XML 384{var O,R,V;if(typeof L==”string”)XML 385{L=this.getEl(L);}elseXML 386{if(this._isValidCollection(L))XML 387{var U=true;for(O=L.length-1;O>-1;O–)XML 388{U=(this.removeListener(L[O],K,T)&&U);}return U;}}if(!T||!T.call)XML 389{return this.purgeElement(L,false,K);}if(“unload”==K)XML 390{for(O=J.length-1;O>-1;O–)XML 391{V=J[O];if(V&&V[0]==L&&V[1]==K&&V[2]==T)XML 392{J.splice(O,1);return true;}}return false;}var P=null;var Q=arguments[3];if(“undefined”===typeof Q)XML 393{Q=this._getCacheIndex(L,K,T);}if(Q>=0)XML 394{P=I[Q];}if(!L||!P)XML 395{return false;}if(this.useLegacyEvent(L,K))XML 396{var N=this.getLegacyIndex(L,K);var M=E[N];if(M)XML 397{for(O=0,R=M.length;O<R;++O)XML 398{V=M[O];if(V&&V[this.EL]==L&&V[this.TYPE]==K&&V[this.FN]==T)XML 399{M.splice(O,1);break;}}}}elseXML 400{tryXML 401{this._simpleRemove(L,K,P[this.WFN],false);}catch(S)XML 402{this.lastError=S;return false;}}delete I[Q][this.WFN];delete I[Q][this.FN];I.splice(Q,1);return true;},getTarget:function(M,L)XML 403{var K=M.target||M.srcElement;return this.resolveTextNode(K);},resolveTextNode:function(L)XML 404{tryXML 405{if(L&&3==L.nodeType)XML 406{return L.parentNode;}}catch(K)XML 407{}return L;},getPageX:function(L)XML 408{var K=L.pageX;if(!K&&0!==K)XML 409{K=L.clientX||0;if(this.isIE)XML 410{K+=this._getScrollLeft();}}return K;},getPageY:function(K)XML 411{var L=K.pageY;if(!L&&0!==L)XML 412{L=K.clientY||0;if(this.isIE)XML 413{L+=this._getScrollTop();}}return L;
 9XML 414XML 415},getXY:function(K)XML 416{return[this.getPageX(K),this.getPageY(K)];},getRelatedTarget:function(L)XML 417{var K=L.relatedTarget;if(!K)XML 418{if(L.type==”mouseout”)XML 419{K=L.toElement;}elseXML 420{if(L.type==”mouseover”)XML 421{K=L.fromElement;}}}return this.resolveTextNode(K);},getTime:function(M)XML 422{if(!M.time)XML 423{var L=new Date().getTime();tryXML 424{M.time=L;}catch(K)XML 425{this.lastError=K;return L;}}return M.time;},stopEvent:function(K)XML 426{this.stopPropagation(K);this.preventDefault(K);},stopPropagation:function(K)XML 427{if(K.stopPropagation)XML 428{K.stopPropagation();}elseXML 429{K.cancelBubble=true;}},preventDefault:function(K)XML 430{if(K.preventDefault)XML 431{K.preventDefault();}elseXML 432{K.returnValue=false;}},getEvent:function(M,K)XML 433{var L=M||window.event;if(!L)XML 434{var N=this.getEvent.caller;while(N)XML 435{L=N.arguments[0];if(L&&Event==L.constructor)XML 436{break;}N=N.caller;}}return L;},getCharCode:function(L)XML 437{var K=L.keyCode||L.charCode||0;if(YAHOO.env.ua.webkit&&(K in D))XML 438{K=D[K];}return K;},_getCacheIndex:function(O,P,N)XML 439{for(var M=0,L=I.length;M<L;M=M+1)XML 440{var K=I[M];if(K&&K[this.FN]==N&&K[this.EL]==O&&K[this.TYPE]==P)XML 441{return M;}}return -1;},generateId:function(K)XML 442{var L=K.id;if(!L)XML 443{L=”yuievtautoid-“+A;++A;K.id=L;}return L;},_isValidCollection:function(L)XML 444{tryXML 445{return(L&&typeof L!==”string”&&L.length&&!L.tagName&&!L.alert&&typeof L[0]!==”undefined”);}catch(K)XML 446{return false;}},elCache:XML 447{},getEl:function(K)XML 448{return(typeof K===”string”)?document.getElementById(K):K;},clearCache:function()XML 449{},DOMReadyEvent:new YAHOO.util.CustomEvent(“DOMReady”,this),_load:function(L)XML 450{if(!H)XML 451{H=true;var K=YAHOO.util.Event;K._ready();K._tryPreloadAttach();}},_ready:function(L)XML 452{var K=YAHOO.util.Event;if(!K.DOMReady)XML 453{K.DOMReady=true;K.DOMReadyEvent.fire();K._simpleRemove(document,”DOMContentLoaded”,K._ready);}},_tryPreloadAttach:function()XML 454{if(F.length===0)XML 455{C=0;clearInterval(this._interval);this._interval=null;return ;}if(this.locked)XML 456{return ;}if(this.isIE)XML 457{if(!this.DOMReady)XML 458{this.startInterval();return ;}}this.locked=true;var Q=!H;if(!Q)XML 459{Q=(C>0&&F.length>0);}var P=[];var R=function(T,U)XML 460{var S=T;if(U.override)XML 461{if(U.override===true)XML 462{S=U.obj;}elseXML 463{S=U.override;}}U.fn.call(S,U.obj);};var L,K,O,N,M=[];for(L=0,K=F.length;L<K;L=L+1)XML 464{O=F[L];if(O)XML 465{N=this.getEl(O.id);if(N)XML 466{if(O.checkReady)XML 467{if(H||N.nextSibling||!Q)XML 468{M.push(O);F[L]=null;}}elseXML 469{R(N,O);F[L]=null;}}elseXML 470{P.push(O);}}}for(L=0,K=M.length;L<K;L=L+1)XML 471{O=M[L];R(this.getEl(O.id),O);}C–;if(Q)XML 472{for(L=F.length-1;L>-1;L–)XML 473{O=F[L];if(!O||!O.id)XML 474{F.splice(L,1);}}this.startInterval();}elseXML 475{clearInterval(this._interval);this._interval=null;}this.locked=false;},purgeElement:function(O,P,R)XML 476{var M=(YAHOO.lang.isString(O))?this.getEl(O):O;var Q=this.getListeners(M,R),N,K;if(Q)XML 477{for(N=Q.length-1;N>-1;N–)XML 478{var L=Q[N];this.removeListener(M,L.type,L.fn);}}if(P&&M&&M.childNodes)XML 479{for(N=0,K=M.childNodes.length;N<K;++N)XML 480{this.purgeElement(M.childNodes[N],P,R);}}},getListeners:function(M,K)XML 481{var P=[],L;if(!K)XML 482{L=[I,J];}elseXML 483{if(K===”unload”)XML 484{L=[J];}elseXML 485{L=[I];}}var R=(YAHOO.lang.isString(M))?this.getEl(M):M;for(var O=0;O<L.length;O=O+1)XML 486{var T=L[O];if(T)XML 487{for(var Q=0,S=T.length;Q<S;++Q)XML 488{var N=T[Q];if(N&&N[this.EL]===R&&(!K||K===N[this.TYPE]))XML 489{P.push(XML 490{type:N[this.TYPE],fn:N[this.FN],obj:N[this.OBJ],adjust:N[this.OVERRIDE],scope:N[this.ADJ_SCOPE],index:Q});}}}}return(P.length)?P:null;},_unload:function(Q)XML 491{var K=YAHOO.util.Event,N,M,L,P,O,R=J.slice();for(N=0,P=J.length;N<P;++N)XML 492{L=R[N];if(L)XML 493{var S=window;if(L[K.ADJ_SCOPE])XML 494{if(L[K.ADJ_SCOPE]===true)XML 495{S=L[K.UNLOAD_OBJ];}elseXML 496{S=L[K.ADJ_SCOPE];}}L[K.FN].call(S,K.getEvent(Q,L[K.EL]),L[K.UNLOAD_OBJ]);R[N]=null;L=null;S=null;}}J=null;if(I)XML 497{for(M=I.length-1;M>-1;M–)XML 498{L=I[M];if(L)XML 499{K.removeListener(L[K.EL],L[K.TYPE],L[K.FN],M);}}L=null;}G=null;K._simpleRemove(window,”unload”,K._unload);},_getScrollLeft:function()XML 500{return this._getScroll()[1];},_getScrollTop:function()XML 501{return this._getScroll()[0];},_getScroll:function()XML 502{var K=document.documentElement,L=document.body;if(K&&(K.scrollTop||K.scrollLeft))XML 503{return[K.scrollTop,K.scrollLeft];}elseXML 504{if(L)XML 505{return[L.scrollTop,L.scrollLeft];}elseXML 506{return[0,0];}}},regCE:function()XML 507{},_simpleAdd:function()XML 508{if(window.addEventListener)XML 509{return function(M,N,L,K)XML 510{M.addEventListener(N,L,(K));};}elseXML 511{if(window.attachEvent)XML 512{return function(M,N,L,K)XML 513{M.attachEvent(“on”+N,L);};}elseXML 514{return function()XML 515{};}}}(),_simpleRemove:function()XML 516{if(window.removeEventListener)XML 517{return function(M,N,L,K)XML 518{M.removeEventListener(N,L,(K));};}elseXML 519{if(window.detachEvent)XML 520{return function(L,M,K)XML 521{L.detachEvent(“on”+M,K);};}elseXML 522{return function()XML 523{};}}}()};}();(function()XML 524{var EU=YAHOO.util.Event;EU.on=EU.addListener;
10XML 525XML 526/**//* DOMReady: based on work by: Dean Edwards/John Resig/Matthias Miller */
11XML 527XML 528if(EU.isIE)XML 529{YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var n=document.createElement(“p”);EU._dri=setInterval(function()XML 530{tryXML 531{n.doScroll(“left”);clearInterval(EU._dri);EU._dri=null;EU._ready();n=null;}catch(ex)XML 532{}},EU.POLL_INTERVAL);}elseXML 533{if(EU.webkit&&EU.webkit<525)XML 534{EU._dri=setInterval(function()XML 535{var rs=document.readyState;if(“loaded”==rs||”complete”==rs)XML 536{clearInterval(EU._dri);EU._dri=null;EU._ready();}},EU.POLL_INTERVAL);}elseXML 537{EU._simpleAdd(document,”DOMContentLoaded”,EU._ready);}}EU._simpleAdd(window,”load”,EU._load);EU._simpleAdd(window,”unload”,EU._unload);EU._tryPreloadAttach();})();}YAHOO.util.EventProvider=function()XML 538{};YAHOO.util.EventProvider.prototype=XML 539{__yui_events:null,__yui_subscribers:null,subscribe:function(A,C,F,E)XML 540{this.__yui_events=this.__yui_events||XML 541{};var D=this.__yui_events[A];if(D)XML 542{D.subscribe(C,F,E);}elseXML 543{this.__yui_subscribers=this.__yui_subscribers||XML 544{};var B=this.__yui_subscribers;if(!B[A])XML 545{B[A]=[];}B[A].push(XML 546{fn:C,obj:F,override:E});}},unsubscribe:function(C,E,G)XML 547{this.__yui_events=this.__yui_events||XML 548{};var A=this.__yui_events;if(C)XML 549{var F=A[C];if(F)XML 550{return F.unsubscribe(E,G);}}elseXML 551{var B=true;for(var D in A)XML 552{if(YAHOO.lang.hasOwnProperty(A,D))XML 553{B=B&&A[D].unsubscribe(E,G);}}return B;}return false;},unsubscribeAll:function(A)XML 554{return this.unsubscribe(A);},createEvent:function(G,D)XML 555{this.__yui_events=this.__yui_events||XML 556{};var A=D||XML 557{};var I=this.__yui_events;
12XML 558XML 559if(I[G])XML 560{}elseXML 561{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)XML 562{B.subscribeEvent.subscribe(A.onSubscribeCallback);}this.__yui_subscribers=this.__yui_subscribers||XML 563{};var F=this.__yui_subscribers[G];if(F)XML 564{for(var C=0;C<F.length;++C)XML 565{B.subscribe(F[C].fn,F[C].obj,F[C].override);}}}return I[G];},fireEvent:function(E,D,A,C)XML 566{this.__yui_events=this.__yui_events||XML 567{};var G=this.__yui_events[E];if(!G)XML 568{return null;}var B=[];for(var F=1;F<arguments.length;++F)XML 569{B.push(arguments[F]);}return G.fire.apply(G,B);},hasEvent:function(A)XML 570{if(this.__yui_events)XML 571{if(this.__yui_events[A])XML 572{return true;}}return false;}};YAHOO.util.KeyListener=function(A,F,B,C)XML 573{if(!A)XML 574{}elseXML 575{if(!F)XML 576{}elseXML 577{if(!B)XML 578{}}}if(!C)XML 579{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”)XML 580{A=document.getElementById(A);}if(typeof B==”function”)XML 581{D.subscribe(B);}elseXML 582{D.subscribe(B.fn,B.scope,B.correctScope);}function E(J,I)XML 583{if(!F.shift)XML 584{F.shift=false;}if(!F.alt)XML 585{F.alt=false;}if(!F.ctrl)XML 586{F.ctrl=false;}if(J.shiftKey==F.shift&&J.altKey==F.alt&&J.ctrlKey==F.ctrl)XML 587{var G;if(F.keys instanceof Array)XML 588{for(var H=0;H<F.keys.length;H++)XML 589{G=F.keys[H];if(G==J.charCode)XML 590{D.fire(J.charCode,J);break;}elseXML 591{if(G==J.keyCode)XML 592{D.fire(J.keyCode,J);break;}}}}elseXML 593{G=F.keys;if(G==J.charCode)XML 594{D.fire(J.charCode,J);}elseXML 595{if(G==J.keyCode)XML 596{D.fire(J.keyCode,J);}}}}}this.enable=function()XML 597{if(!this.enabled)XML 598{YAHOO.util.Event.addListener(A,C,E);this.enabledEvent.fire(F);}this.enabled=true;};this.disable=function()XML 599{if(this.enabled)XML 600{YAHOO.util.Event.removeListener(A,C,E);this.disabledEvent.fire(F);}this.enabled=false;};this.toString=function()XML 601{return”KeyListener [“+F.keys+”] “+A.tagName+(A.id?”[“+A.id+”]”:””);};};YAHOO.util.KeyListener.KEYDOWN=”keydown”;YAHOO.util.KeyListener.KEYUP=”keyup”;YAHOO.util.KeyListener.KEY=XML 602{ALT:18,BACK_SPACE:8,CAPS_LOCK:20,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,META:224,NUM_LOCK:144,PAGE_DOWN:34,PAGE_UP:33,PAUSE:19,PRINTSCREEN:44,RIGHT:39,SCROLL_LOCK:145,SHIFT:16,SPACE:32,TAB:9,UP:38};YAHOO.register(“event”,YAHOO.util.Event,XML 603{version:”2.5.2″,build:”1076″});YAHOO.register(“yahoo-dom-event”, YAHOO, XML 604{version: “2.5.2”, build: “1076”});
13XML 605

cookie-beta-min.js   code:

 

相关文章

网站地图xml地图