?? tbra-detail.js
字號:
if(typeof YAHOO=="undefined"||!YAHOO){var YAHOO={}}YAHOO.namespace=function(){var a=arguments,d=null,i,j,h;for(i=0;i<a.length;i=i+1){h=(""+a[i]).split(".");d=YAHOO;for(j=(h[0]=="YAHOO")?1:0;j<h.length;j=j+1){d[h[j]]=d[h[j]]||{};d=d[h[j]]}}return d};YAHOO.log=function(g,f,h){var e=YAHOO.widget.Logger;if(e&&e.log){return e.log(g,f,h)}else{return false}};YAHOO.register=function(s,o,p){var b=YAHOO.env.modules,r,i,l,m,q;if(!b[s]){b[s]={versions:[],builds:[]}}r=b[s];i=p.version;l=p.build;m=YAHOO.env.listeners;r.name=s;r.version=i;r.build=l;r.versions.push(i);r.builds.push(l);r.mainClass=o;for(q=0;q<m.length;q=q+1){m[q](r)}if(o){o.VERSION=i;o.BUILD=l}else{YAHOO.log("mainClass is undefined for module "+s,"warn")}};YAHOO.env=YAHOO.env||{modules:[],listeners:[]};YAHOO.env.getVersion=function(b){return YAHOO.env.modules[b]||null};YAHOO.env.ua=function(){var f={ie:0,opera:0,gecko:0,webkit:0,mobile:null,air:0,caja:0},d=navigator.userAgent,e;if((/KHTML/).test(d)){f.webkit=1}e=d.match(/AppleWebKit\/([^\s]*)/);if(e&&e[1]){f.webkit=parseFloat(e[1]);if(/ Mobile\//.test(d)){f.mobile="Apple"}else{e=d.match(/NokiaN[^\/]*/);if(e){f.mobile=e[0]}}e=d.match(/AdobeAIR\/([^\s]*)/);if(e){f.air=e[0]}}if(!f.webkit){e=d.match(/Opera[\s\/]([^\s]*)/);if(e&&e[1]){f.opera=parseFloat(e[1]);e=d.match(/Opera Mini[^;]*/);if(e){f.mobile=e[0]}}else{e=d.match(/MSIE\s([^;]*)/);if(e&&e[1]){f.ie=parseFloat(e[1])}else{e=d.match(/Gecko\/([^\s]*)/);if(e){f.gecko=1;e=d.match(/rv:([^\s\)]*)/);if(e&&e[1]){f.gecko=parseFloat(e[1])}}}}}e=d.match(/Caja\/([^\s]*)/);if(e&&e[1]){f.caja=parseFloat(e[1])}return f}();(function(){YAHOO.namespace("util","widget","example");if("undefined"!==typeof YAHOO_config){var e=YAHOO_config.listener,f=YAHOO.env.listeners,g=true,h;if(e){for(h=0;h<f.length;h=h+1){if(f[h]==e){g=false;break}}if(g){f.push(e)}}}})();YAHOO.lang=YAHOO.lang||{};(function(){var g=YAHOO.lang,i="[object Array]",l="[object Function]",h=Object.prototype,j=["toString","valueOf"],k={isArray:function(a){return h.toString.apply(a)===i},isBoolean:function(a){return typeof a==="boolean"},isFunction:function(a){return h.toString.apply(a)===l},isNull:function(a){return a===null},isNumber:function(a){return typeof a==="number"&&isFinite(a)},isObject:function(a){return(a&&(typeof a==="object"||g.isFunction(a)))||false},isString:function(a){return typeof a==="string"},isUndefined:function(a){return typeof a==="undefined"},_IEEnumFix:(YAHOO.env.ua.ie)?function(c,d){var e,a,b;for(e=0;e<j.length;e=e+1){a=j[e];b=d[a];if(g.isFunction(b)&&b!=h[a]){c[a]=b}}}:function(){},extend:function(b,a,c){if(!a||!b){throw new Error("extend failed, please check that all dependencies are included.")}var d=function(){},e;d.prototype=a.prototype;b.prototype=new d();b.prototype.constructor=b;b.superclass=a.prototype;if(a.prototype.constructor==h.constructor){a.prototype.constructor=a}if(c){for(e in c){if(g.hasOwnProperty(c,e)){b.prototype[e]=c[e]}}g._IEEnumFix(b.prototype,c)}},augmentObject:function(b,c){if(!c||!b){throw new Error("Absorb failed, verify dependencies.")}var f=arguments,d,a,e=f[2];if(e&&e!==true){for(d=2;d<f.length;d=d+1){b[f[d]]=c[f[d]]}}else{for(a in c){if(e||!(a in b)){b[a]=c[a]}}g._IEEnumFix(b,c)}},augmentProto:function(a,b){if(!b||!a){throw new Error("Augment failed, verify dependencies.")}var d=[a.prototype,b.prototype],c;for(c=2;c<arguments.length;c=c+1){d.push(arguments[c])}g.augmentObject.apply(this,d)},dump:function(t,d){var o,e,b=[],a="{...}",s="f(){...}",c=", ",f=" => ";if(!g.isObject(t)){return t+""}else{if(t instanceof Date||("nodeType" in t&&"tagName" in t)){return t}else{if(g.isFunction(t)){return s}}}d=(g.isNumber(d))?d:3;if(g.isArray(t)){b.push("[");for(o=0,e=t.length;o<e;o=o+1){if(g.isObject(t[o])){b.push((d>0)?g.dump(t[o],d-1):a)}else{b.push(t[o])}b.push(c)}if(b.length>1){b.pop()}b.push("]")}else{b.push("{");for(o in t){if(g.hasOwnProperty(t,o)){b.push(o+f);if(g.isObject(t[o])){b.push((d>0)?g.dump(t[o],d-1):a)}else{b.push(t[o])}b.push(c)}}if(b.length>1){b.pop()}b.push("}")}return b.join("")},substitute:function(b,v,I){var c,e,o,F,E,d,G=[],s,a="dump",H=" ",D="{",f="}",J;for(;;){c=b.lastIndexOf(D);if(c<0){break}e=b.indexOf(f,c);if(c+1>=e){break}s=b.substring(c+1,e);F=s;d=null;o=F.indexOf(H);if(o>-1){d=F.substring(o+1);F=F.substring(0,o)}E=v[F];if(I){E=I(F,E,d)}if(g.isObject(E)){if(g.isArray(E)){E=g.dump(E,parseInt(d,10))}else{d=d||"";J=d.indexOf(a);if(J>-1){d=d.substring(4)}if(E.toString===h.toString||J>-1){E=g.dump(E,parseInt(d,10))}else{E=E.toString()}}}else{if(!g.isString(E)&&!g.isNumber(E)){E="~-"+G.length+"-~";G[G.length]=s}}b=b.substring(0,c)+E+b.substring(e+1)}for(c=G.length-1;c>=0;c=c-1){b=b.replace(new RegExp("~-"+c+"-~"),"{"+G[c]+"}","g")}return b},trim:function(b){try{return b.replace(/^\s+|\s+$/g,"")}catch(a){return b}},merge:function(){var a={},c=arguments,d=c.length,b;for(b=0;b<d;b=b+1){g.augmentObject(a,c[b],true)}return a},later:function(a,m,r,e,d){a=a||0;m=m||{};var f=r,b=e,c,o;if(g.isString(r)){f=m[r]}if(!f){throw new TypeError("method undefined")}if(!g.isArray(b)){b=[e]}c=function(){f.apply(m,b)};o=(d)?setInterval(c,a):setTimeout(c,a);return{interval:d,cancel:function(){if(this.interval){clearInterval(o)}else{clearTimeout(o)}}}},isValue:function(a){return(g.isObject(a)||g.isString(a)||g.isNumber(a)||g.isBoolean(a))}};g.hasOwnProperty=(h.hasOwnProperty)?function(b,a){return b&&b.hasOwnProperty(a)}:function(b,a){return !g.isUndefined(b[a])&&b.constructor.prototype[a]!==b[a]};k.augmentObject(g,k,true);YAHOO.util.Lang=g;g.augment=g.augmentProto;YAHOO.augment=g.augmentProto;YAHOO.extend=g.extend})();YAHOO.register("yahoo",YAHOO,{version:"2.7.0",build:"1796"});(function(){YAHOO.env._id_counter=YAHOO.env._id_counter||0;var aN=YAHOO.util,aH=YAHOO.lang,ag=YAHOO.env.ua,aR=YAHOO.lang.trim,ap={},al={},aF=/^t(?:able|d|h)$/i,av=/color$/i,aI=window.document,aw=aI.documentElement,ao="ownerDocument",af="defaultView",X="documentElement",Z="compatMode",ar="offsetLeft",aD="offsetTop",Y="offsetParent",au="parentNode",ah="nodeType",aP="tagName",aE="scrollLeft",ak="scrollTop",aC="getBoundingClientRect",G="getComputedStyle",at="currentStyle",aG="CSS1Compat",aq="BackCompat",am="class",aM="className",aJ="",aQ=" ",aa="(?:^|\\s)",ai="(?= |$)",ay="g",ad="position",an="fixed",ax="relative",aj="left",ae="top",ab="medium",ac="borderLeftWidth",aB="borderTopWidth",aO=ag.opera,aK=ag.webkit,aL=ag.gecko,az=ag.ie;aN.Dom={CUSTOM_ATTRIBUTES:(!aw.hasAttribute)?{"for":"htmlFor","class":aM}:{htmlFor:"for",className:am},get:function(d){var b,f,c,e,a;if(d){if(d[ah]||d.item){return d}if(typeof d==="string"){b=d;d=aI.getElementById(d);if(d&&d.id===b){return d}else{if(d&&aI.all){d=null;f=aI.all[b];for(e=0,a=f.length;e<a;++e){if(f[e].id===b){return f[e]}}}}return d}if(d.DOM_EVENTS){d=d.get("element")}if("length" in d){c=[];for(e=0,a=d.length;e<a;++e){c[c.length]=aN.Dom.get(d[e])}return c}return d}return null},getComputedStyle:function(a,b){if(window[G]){return a[ao][af][G](a,null)[b]}else{if(a[at]){return aN.Dom.IE_ComputedStyle.get(a,b)}}},getStyle:function(a,b){return aN.Dom.batch(a,aN.Dom._getStyle,b)},_getStyle:function(){if(window[G]){return function(a,b){b=(b==="float")?b="cssFloat":aN.Dom._toCamel(b);var c=a.style[b],d;if(!c){d=a[ao][af][G](a,null);if(d){c=d[b]}}return c}}else{if(aw[at]){return function(a,c){var d;switch(c){case"opacity":d=100;try{d=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(b){try{d=a.filters("alpha").opacity}catch(e){}}return d/100;case"float":c="styleFloat";default:c=aN.Dom._toCamel(c);d=a[at]?a[at][c]:null;return(a.style[c]||d)}}}}}(),setStyle:function(a,c,b){aN.Dom.batch(a,aN.Dom._setStyle,{prop:c,val:b})},_setStyle:function(){if(az){return function(d,a){var c=aN.Dom._toCamel(a.prop),b=a.val;if(d){switch(c){case"opacity":if(aH.isString(d.style.filter)){d.style.filter="alpha(opacity="+b*100+")";if(!d[at]||!d[at].hasLayout){d.style.zoom=1}}break;case"float":c="styleFloat";default:d.style[c]=b}}else{}}}else{return function(d,a){var c=aN.Dom._toCamel(a.prop),b=a.val;if(d){if(c=="float"){c="cssFloat"}d.style[c]=b}else{}}}}(),getXY:function(a){return aN.Dom.batch(a,aN.Dom._getXY)},_canPosition:function(a){return(aN.Dom._getStyle(a,"display")!=="none"&&aN.Dom._inDoc(a))},_getXY:function(){if(aI[X][aC]){return function(b){var a,d,l,f,g,h,j,i,c,k=Math.floor,e=false;if(aN.Dom._canPosition(b)){l=b[aC]();f=b[ao];a=aN.Dom.getDocumentScrollLeft(f);d=aN.Dom.getDocumentScrollTop(f);e=[k(l[aj]),k(l[ae])];if(az&&ag.ie<8){g=2;h=2;j=f[Z];i=aA(f[X],ac);c=aA(f[X],aB);if(ag.ie===6){if(j!==aq){g=0;h=0}}if((j==aq)){if(i!==ab){g=parseInt(i,10)}if(c!==ab){h=parseInt(c,10)}}e[0]-=g;e[1]-=h}if((d||a)){e[0]+=a;e[1]+=d}e[0]=k(e[0]);e[1]=k(e[1])}else{}return e}}else{return function(f){var g,h,d,c,b,e=false,a=f;if(aN.Dom._canPosition(f)){e=[f[ar],f[aD]];g=aN.Dom.getDocumentScrollLeft(f[ao]);h=aN.Dom.getDocumentScrollTop(f[ao]);b=((aL||ag.webkit>519)?true:false);while((a=a[Y])){e[0]+=a[ar];e[1]+=a[aD];if(b){e=aN.Dom._calcBorders(a,e)}}if(aN.Dom._getStyle(f,ad)!==an){a=f;while((a=a[au])&&a[aP]){d=a[ak];c=a[aE];if(aL&&(aN.Dom._getStyle(a,"overflow")!=="visible")){e=aN.Dom._calcBorders(a,e)}if(d||c){e[0]-=c;e[1]-=d}}e[0]+=g;e[1]+=h}else{if(aO){e[0]-=g;e[1]-=h}else{if(aK||aL){e[0]+=g;e[1]+=h}}}e[0]=Math.floor(e[0]);e[1]=Math.floor(e[1])}else{}return e}}}(),getX:function(a){var b=function(c){return aN.Dom.getXY(c)[0]};return aN.Dom.batch(a,b,aN.Dom,true)},getY:function(a){var b=function(c){return aN.Dom.getXY(c)[1]};return aN.Dom.batch(a,b,aN.Dom,true)},setXY:function(a,b,c){aN.Dom.batch(a,aN.Dom._setXY,{pos:b,noRetry:c})},_setXY:function(f,a){var i=aN.Dom._getStyle(f,ad),b=aN.Dom.setStyle,e=a.pos,d=a.noRetry,h=[parseInt(aN.Dom.getComputedStyle(f,aj),10),parseInt(aN.Dom.getComputedStyle(f,ae),10)],g,c;if(i=="static"){i=ax;b(f,ad,i)}g=aN.Dom._getXY(f);if(!e||g===false){return false}if(isNaN(h[0])){h[0]=(i==ax)?0:f[ar]}if(isNaN(h[1])){h[1]=(i==ax)?0:f[aD]}if(e[0]!==null){b(f,aj,e[0]-g[0]+h[0]+"px")}if(e[1]!==null){b(f,ae,e[1]-g[1]+h[1]+"px")}if(!d){c=aN.Dom._getXY(f);if((e[0]!==null&&c[0]!=e[0])||(e[1]!==null&&c[1]!=e[1])){aN.Dom._setXY(f,{pos:e,noRetry:true})}}},setX:function(b,a){aN.Dom.setXY(b,[a,null])},setY:function(a,b){aN.Dom.setXY(a,[null,b])},getRegion:function(a){var b=function(d){var c=false;if(aN.Dom._canPosition(d)){c=aN.Region.getRegion(d)}else{}return c};return aN.Dom.batch(a,b,aN.Dom,true)},getClientWidth:function(){return aN.Dom.getViewportWidth()},getClientHeight:function(){return aN.Dom.getViewportHeight()},getElementsByClassName:function(j,e,h,f,c,g){j=aH.trim(j);e=e||"*";h=(h)?aN.Dom.get(h):null||aI;if(!h){return[]}var d=[],i=h.getElementsByTagName(e),a=aN.Dom.hasClass;for(var b=0,k=i.length;b<k;++b){if(a(i[b],j)){d[d.length]=i[b]}}if(f){aN.Dom.batch(d,f,c,g)}return d},hasClass:function(b,a){return aN.Dom.batch(b,aN.Dom._hasClass,a)},_hasClass:function(c,d){var a=false,b;if(c&&d){b=aN.Dom.getAttribute(c,aM)||aJ;if(d.exec){a=d.test(b)}else{a=d&&(aQ+b+aQ).indexOf(aQ+d+aQ)>-1}}else{}return a},addClass:function(b,a){return aN.Dom.batch(b,aN.Dom._addClass,a)},_addClass:function(c,d){var a=false,b;if(c&&d){b=aN.Dom.getAttribute(c,aM)||aJ;if(!aN.Dom._hasClass(c,d)){aN.Dom.setAttribute(c,aM,aR(b+aQ+d));a=true}}else{}return a},removeClass:function(b,a){return aN.Dom.batch(b,aN.Dom._removeClass,a)},_removeClass:function(d,e){var f=false,b,c,a;if(d&&e){b=aN.Dom.getAttribute(d,aM)||aJ;aN.Dom.setAttribute(d,aM,b.replace(aN.Dom._getClassRegex(e),aJ));c=aN.Dom.getAttribute(d,aM);if(b!==c){aN.Dom.setAttribute(d,aM,aR(c));f=true;if(aN.Dom.getAttribute(d,aM)===""){a=(d.hasAttribute&&d.hasAttribute(am))?am:aM;d.removeAttribute(a)}}}else{}return f},replaceClass:function(b,c,a){return aN.Dom.batch(b,aN.Dom._replaceClass,{from:c,to:a})},_replaceClass:function(e,f){var g,b,c,a=false,d;if(e&&f){b=f.from;c=f.to;if(!c){a=false}else{if(!b){a=aN.Dom._addClass(e,f.to)}else{if(b!==c){d=aN.Dom.getAttribute(e,aM)||aJ;g=(aQ+d.replace(aN.Dom._getClassRegex(b),aQ+c)).split(aN.Dom._getClassRegex(c));g.splice(1,0,aQ+c);aN.Dom.setAttribute(e,aM,aR(g.join(aJ)));a=true}}}}else{}return a},generateId:function(a,b){b=b||"yui-gen";var c=function(e){if(e&&e.id){return e.id}var d=b+YAHOO.env._id_counter++;if(e){if(e[ao].getElementById(d)){return aN.Dom.generateId(e,d+b)}e.id=d}return d};return aN.Dom.batch(a,c,aN.Dom,true)||c.apply(aN.Dom,arguments)},isAncestor:function(c,b){c=aN.Dom.get(c);b=aN.Dom.get(b);var a=false;if((c&&b)&&(c[ah]&&b[ah])){if(c.contains&&c!==b){a=c.contains(b)}else{if(c.compareDocumentPosition){a=!!(c.compareDocumentPosition(b)&16)}}}else{}return a},inDocument:function(a,b){return aN.Dom._inDoc(aN.Dom.get(a),b)},_inDoc:function(c,b){var a=false;if(c&&c[aP]){b=b||c[ao];a=aN.Dom.isAncestor(b[X],c)}else{}return a},getElementsBy:function(d,e,j,g,b,i,f){e=e||"*";j=(j)?aN.Dom.get(j):null||aI;if(!j){return[]}var c=[],h=j.getElementsByTagName(e);for(var a=0,k=h.length;a<k;++a){if(d(h[a])){if(f){c=h[a];break}else{c[c.length]=h[a]}}}if(g){aN.Dom.batch(c,g,b,i)}return c},getElementBy:function(b,a,c){return aN.Dom.getElementsBy(b,a,c,null,null,null,true)},batch:function(f,b,c,e){var d=[],g=(e)?c:window;f=(f&&(f[aP]||f.item))?f:aN.Dom.get(f);if(f&&b){if(f[aP]||f.length===undefined){return b.call(g,f,c)}for(var a=0;a<f.length;++a){d[d.length]=b.call(g,f[a],c)}}else{return false}return d},getDocumentHeight:function(){var b=(aI[Z]!=aG||aK)?aI.body.scrollHeight:aw.scrollHeight,a=Math.max(b,aN.Dom.getViewportHeight());return a},getDocumentWidth:function(){var b=(aI[Z]!=aG||aK)?aI.body.scrollWidth:aw.scrollWidth,a=Math.max(b,aN.Dom.getViewportWidth());return a},getViewportHeight:function(){var a=self.innerHeight,b=aI[Z];if((b||az)&&!aO){a=(b==aG)?aw.clientHeight:aI.body.clientHeight}return a},getViewportWidth:function(){var a=self.innerWidth,b=aI[Z];if(b||az){a=(b==aG)?aw.clientWidth:aI.body.clientWidth}return a},getAncestorBy:function(a,b){while((a=a[au])){if(aN.Dom._testElement(a,b)){return a}}return null},getAncestorByClassName:function(c,a){c=aN.Dom.get(c);if(!c){return null}var b=function(d){return aN.Dom.hasClass(d,a)};return aN.Dom.getAncestorBy(c,b)},getAncestorByTagName:function(c,a){c=aN.Dom.get(c);if(!c){return null}var b=function(d){return d[aP]&&d[aP].toUpperCase()==a.toUpperCase()};return aN.Dom.getAncestorBy(c,b)},getPreviousSiblingBy:function(a,b){while(a){a=a.previousSibling;if(aN.Dom._testElement(a,b)){return a}}return null},getPreviousSibling:function(a){a=aN.Dom.get(a);if(!a){return null}return aN.Dom.getPreviousSiblingBy(a)},getNextSiblingBy:function(a,b){while(a){a=a.nextSibling;if(aN.Dom._testElement(a,b)){return a}}return null},getNextSibling:function(a){a=aN.Dom.get(a);if(!a){return null}return aN.Dom.getNextSiblingBy(a)},getFirstChildBy:function(a,b){var c=(aN.Dom._testElement(a.firstChild,b))?a.firstChild:null;return c||aN.Dom.getNextSiblingBy(a.firstChild,b)},getFirstChild:function(a,b){a=aN.Dom.get(a);if(!a){return null}return aN.Dom.getFirstChildBy(a)},getLastChildBy:function(a,b){if(!a){return null}var c=(aN.Dom._testElement(a.lastChild,b))?a.lastChild:null;return c||aN.Dom.getPreviousSiblingBy(a.lastChild,b)},getLastChild:function(a){a=aN.Dom.get(a);return aN.Dom.getLastChildBy(a)},getChildrenBy:function(d,b){var c=aN.Dom.getFirstChildBy(d,b),a=c?[c]:[];aN.Dom.getNextSiblingBy(c,function(e){if(!b||b(e)){a[a.length]=e}return false});return a},getChildren:function(a){a=aN.Dom.get(a);if(!a){}return aN.Dom.getChildrenBy(a)},getDocumentScrollLeft:function(a){a=a||aI;return Math.max(a[X].scrollLeft,a.body.scrollLeft)},getDocumentScrollTop:function(a){a=a||aI;return Math.max(a[X].scrollTop,a.body.scrollTop)},insertBefore:function(b,a){b=aN.Dom.get(b);a=aN.Dom.get(a);if(!b||!a||!a[au]){return null}return a[au].insertBefore(b,a)},insertAfter:function(b,a){b=aN.Dom.get(b);a=aN.Dom.get(a);if(!b||!a||!a[au]){return null}if(a.nextSibling){return a[au].insertBefore(b,a.nextSibling)}else{return a[au].appendChild(b)}},getClientRegion:function(){var c=aN.Dom.getDocumentScrollTop(),d=aN.Dom.getDocumentScrollLeft(),b=aN.Dom.getViewportWidth()+d,a=aN.Dom.getViewportHeight()+c;return new aN.Region(c,b,a,d)},setAttribute:function(c,a,b){a=aN.Dom.CUSTOM_ATTRIBUTES[a]||a;c.setAttribute(a,b)},getAttribute:function(b,a){a=aN.Dom.CUSTOM_ATTRIBUTES[a]||a;return b.getAttribute(a)},_toCamel:function(c){var b=ap;function a(e,d){return d.toUpperCase()}return b[c]||(b[c]=c.indexOf("-")===-1?c:c.replace(/-([a-z])/gi,a))},_getClassRegex:function(b){var a;if(b!==undefined){if(b.exec){a=b}else{a=al[b];if(!a){b=b.replace(aN.Dom._patterns.CLASS_RE_TOKENS,"\\$1");a=al[b]=new RegExp(aa+b+ai,ay)}}}return a},_patterns:{ROOT_TAG:/^body|html$/i,CLASS_RE_TOKENS:/([\.\(\)\^\$\*\+\?\|\[\]\{\}])/g},_testElement:function(a,b){return a&&a[ah]==1&&(!b||b(a))},_calcBorders:function(c,b){var d=parseInt(aN.Dom[G](c,aB),10)||0,a=parseInt(aN.Dom[G](c,ac),10)||0;if(aL){if(aF.test(c[aP])){d=0;a=0}}b[0]+=a;b[1]+=d;return b}};var aA=aN.Dom[G];if(ag.opera){aN.Dom[G]=function(c,a){var b=aA(c,a);if(av.test(a)){b=aN.Dom.Color.toRGB(b)}return b}}if(ag.webkit){aN.Dom[G]=function(c,a){var b=aA(c,a);if(b==="rgba(0, 0, 0, 0)"){b="transparent"}return b}}})();YAHOO.util.Region=function(g,f,b,h){this.top=g;this.y=g;this[1]=g;this.right=f;this.bottom=b;this.left=h;this.x=h;this[0]=h;this.width=this.right-this.left;this.height=this.bottom-this.top};YAHOO.util.Region.prototype.contains=function(b){return(b.left>=this.left&&b.right<=this.right&&b.top>=this.top&&b.bottom<=this.bottom)};YAHOO.util.Region.prototype.getArea=function(){return((this.bottom-this.top)*(this.right-this.left))};YAHOO.util.Region.prototype.intersect=function(g){var i=Math.max(this.top,g.top),h=Math.min(this.right,g.right),b=Math.min(this.bottom,g.bottom),j=Math.max(this.left,g.left);if(b>=i&&h>=j){return new YAHOO.util.Region(i,h,b,j)}else{return null}};YAHOO.util.Region.prototype.union=function(g){var i=Math.min(this.top,g.top),h=Math.max(this.right,g.right),b=Math.max(this.bottom,g.bottom),j=Math.min(this.left,g.left);return new YAHOO.util.Region(i,h,b,j)};YAHOO.util.Region.prototype.toString=function(){return("Region {top: "+this.top+", right: "+this.right+", bottom: "+this.bottom+", left: "+this.left+", height: "+this.height+", width: "+this.width+"}")};YAHOO.util.Region.getRegion=function(j){var h=YAHOO.util.Dom.getXY(j),k=h[1],i=h[0]+j.offsetWidth,b=h[1]+j.offsetHeight,l=h[0];return new YAHOO.util.Region(k,i,b,l)};YAHOO.util.Point=function(d,c){if(YAHOO.lang.isArray(d)){c=d[1];d=d[0]}YAHOO.util.Point.superclass.constructor.call(this,c,d,c,d)};YAHOO.extend(YAHOO.util.Point,YAHOO.util.Region);(function(){var T=YAHOO.util,U="clientTop",P="clientLeft",L="parentNode",K="right",y="hasLayout",M="px",A="opacity",J="auto",R="borderLeftWidth",O="borderTopWidth",F="borderRightWidth",z="borderBottomWidth",C="visible",E="transparent",H="height",Q="width",N="style",B="currentStyle",D=/^width|height$/,G=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i,I={get:function(d,a){var b="",c=d[B][a];if(a===A){b=T.Dom.getStyle(d,A)}else{if(!c||(c.indexOf&&c.indexOf(M)>-1)){b=c}else{if(T.Dom.IE_COMPUTED[a]){b=T.Dom.IE_COMPUTED[a](d,a)}else{if(G.test(c)){b=T.Dom.IE.ComputedStyle.getPixel(d,a)}else{b=c}}}}return b},getOffset:function(a,b){var f=a[B][b],h=b.charAt(0).toUpperCase()+b.substr(1),d="offset"+h,e="pixel"+h,g="",c;if(f==J){c=a[d];if(c===undefined){g=0}g=c;if(D.test(b)){a[N][b]=c;if(a[d]>c){g=c-(a[d]-c)}a[N][b]=J}}else{if(!a[N][e]&&!a[N][b]){a[N][b]=f}g=a[N][e]}return g+M},getBorderWidth:function(c,a){var b=null;if(!c[B][y]){c[N].zoom=1}switch(a){case O:b=c[U];break;case z:b=c.offsetHeight-c.clientHeight-c[U];break;case R:b=c[P];break;case F:b=c.offsetWidth-c.clientWidth-c[P];break}return b+M},getPixel:function(c,e){var d=null,b=c[B][K],a=c[B][e];c[N][K]=a;d=c[N].pixelRight;c[N][K]=b;return d+M},getMargin:function(b,c){var a;if(b[B][c]==J){a=0+M}else{a=T.Dom.IE.ComputedStyle.getPixel(b,c)}return a},getVisibility:function(b,c){var a;while((a=b[B])&&a[c]=="inherit"){b=b[L]}return(a)?a[c]:C},getColor:function(a,b){return T.Dom.Color.toRGB(a[B][b])||E},getBorderColor:function(b,d){var a=b[B],c=a[d]||a.color;return T.Dom.Color.toRGB(T.Dom.Color.toHex(c))}},S={};S.top=S.right=S.bottom=S.left=S[Q]=S[H]=I.getOffset;S.color=I.getColor;S[O]=S[F]=S[z]=S[R]=I.getBorderWidth;S.marginTop=S.marginRight=S.marginBottom=S.marginLeft=I.getMargin;S.visibility=I.getVisibility;S.borderColor=S.borderTopColor=S.borderRightColor=S.borderBottomColor=S.borderLeftColor=I.getBorderColor;T.Dom.IE_COMPUTED=S;T.Dom.IE_ComputedStyle=I})();(function(){var h="toString",f=parseInt,e=RegExp,g=YAHOO.util;g.Dom.Color={KEYWORDS:{black:"000",silver:"c0c0c0",gray:"808080",white:"fff",maroon:"800000",red:"f00",purple:"800080",fuchsia:"f0f",green:"008000",lime:"0f0",olive:"808000",yellow:"ff0",navy:"000080",blue:"00f",teal:"008080",aqua:"0ff"},re_RGB:/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i,re_hex:/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i,re_hex3:/([0-9A-F])/gi,toRGB:function(a){if(!g.Dom.Color.re_RGB.test(a)){a=g.Dom.Color.toHex(a)}if(g.Dom.Color.re_hex.exec(a)){a="rgb("+[f(e.$1,16),f(e.$2,16),f(e.$3,16)].join(", ")+")"}return a},toHex:function(a){a=g.Dom.Color.KEYWORDS[a]||a;if(g.Dom.Color.re_RGB.exec(a)){var b=(e.$1.length===1)?"0"+e.$1:Number(e.$1),c=(e.$2.length===1)?"0"+e.$2:Number(e.$2),d=(e.$3.length===1)?"0"+e.$3:Number(e.$3);a=[b[h](16),c[h](16),d[h](16)].join("")}if(a.length<6){a=a.replace(g.Dom.Color.re_hex3,"$1$1")}if(a!=="transparent"&&a.indexOf("#")<0){a="#"+a}return a.toLowerCase()}}}());YAHOO.register("dom",YAHOO.util.Dom,{version:"2.7.0",build:"1796"});YAHOO.util.CustomEvent=function(i,j,f,g){this.type=i;this.scope=j||window;this.silent=f;this.signature=g||YAHOO.util.CustomEvent.LIST;this.subscribers=[];if(!this.silent){}var h="_YUICEOnSubscribe";if(i!==h){this.subscribeEvent=new YAHOO.util.CustomEvent(h,this,true)}this.lastError=null};YAHOO.util.CustomEvent.LIST=0;YAHOO.util.CustomEvent.FLAT=1;YAHOO.util.CustomEvent.prototype={subscribe:function(e,d,f){if(!e){throw new Error("Invalid callback for subscriber to '"+this.type+"'")}if(this.subscribeEvent){this.subscribeEvent.fire(e,d,f)}this.subscribers.push(new YAHOO.util.Subscriber(e,d,f))},unsubscribe:function(k,i){if(!k){return this.unsubscribeAll()}var j=false;for(var g=0,h=this.subscribers.length;g<h;++g){var l=this.subscribers[g];if(l&&l.contains(k,i)){this._delete(g);j=true}}return j},fire:function(){this.lastError=null;var q=[],w=this.subscribers.length;if(!w&&this.silent){return true}var s=[].slice.call(arguments,0),u=true,x,r=false;if(!this.silent){}var y=this.subscribers.slice(),A=YAHOO.util.Event.throwErrors;for(x=0;x<w;++x){var e=y[x];if(!e){r=true}else{if(!this.silent){}var i=e.getScope(this.scope);if(this.signature==YAHOO.util.CustomEvent.FLAT){var z=null;if(s.length>0){z=s[0]}try{u=e.fn.call(i,z,e.obj)}catch(v){this.lastError=v;if(A){throw v}}}else{try{u=e.fn.call(i,this.type,s,e.obj)}catch(t){this.lastError=t;if(A){throw t}}}if(false===u){if(!this.silent){}break}}}return(u!==false)},unsubscribeAll:function(){var d=this.subscribers.length,c;for(c=d-1;c>-1;c--){this._delete(c)}this.subscribers=[];return d},_delete:function(d){var c=this.subscribers[d];if(c){delete c.fn;delete c.obj}this.subscribers.splice(d,1)},toString:function(){return"CustomEvent: '"+this.type+"', context: "+this.scope}};YAHOO.util.Subscriber=function(e,d,f){this.fn=e;this.obj=YAHOO.lang.isUndefined(d)?null:d;this.overrideContext=f};YAHOO.util.Subscriber.prototype.getScope=function(b){if(this.overrideContext){if(this.overrideContext===true){return this.obj}else{return this.overrideContext}}return b};YAHOO.util.Subscriber.prototype.contains=function(d,c){if(c){return(this.fn==d&&this.obj==c)}else{return(this.fn==d)}};YAHOO.util.Subscriber.prototype.toString=function(){return"Subscriber { obj: "+this.obj+", overrideContext: "+(this.overrideContext||"no")+" }"};if(!YAHOO.util.Event){YAHOO.util.Event=function(){var r=false;var q=[];var p=[];var s=[];var u=[];var w=0;var t=[];var x=[];var y=0;var v={63232:38,63233:40,63234:37,63235:39,63276:33,63277:34,25:9};var o=YAHOO.env.ua.ie?"focusin":"focus";var m=YAHOO.env.ua.ie?"focusout":"blur";return{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(){if(!this._interval){var a=this;var b=function(){a._tryPreloadAttach()};this._interval=setInterval(b,this.POLL_INTERVAL)}},onAvailable:function(b,f,d,c,e){var a=(YAHOO.lang.isString(b))?[b]:b;for(var g=0;g<a.length;g=g+1){t.push({id:a[g],fn:f,obj:d,overrideContext:c,checkReady:e})}w=this.POLL_RETRYS;this.startInterval()},onContentReady:function(b,a,d,c){this.onAvailable(b,a,d,c,true)},onDOMReady:function(a,c,b){if(this.DOMReady){setTimeout(function(){var d=window;if(b){if(b===true){d=c}else{d=b}}a.call(d,"DOMReady",[],c)},0)}else{this.DOMReadyEvent.subscribe(a,c,b)}},_addListener:function(e,h,i,F,k,c){if(!i||!i.call){return false}if(this._isValidCollection(e)){var g=true;for(var E=0,l=e.length;E<l;++E){g=this.on(e[E],h,i,F,k)&&g}return g}else{if(YAHOO.lang.isString(e)){var G=this.getEl(e);if(G){e=G}else{this.onAvailable(e,function(){YAHOO.util.Event.on(e,h,i,F,k)});return true}}}if(!e){return false}if("unload"==h&&F!==this){p[p.length]=[e,h,i,F,k];return true}var f=e;if(k){if(k===true){f=F}else{f=k}}var b=function(z){return i.call(f,YAHOO.util.Event.getEvent(z,e),F)};var d=[e,h,i,b,f,F,k];var D=q.length;q[D]=d;if(this.useLegacyEvent(e,h)){var a=this.getLegacyIndex(e,h);if(a==-1||e!=s[a][0]){a=s.length;x[e.id+h]=a;s[a]=[e,h,e["on"+h]];u[a]=[];e["on"+h]=function(z){YAHOO.util.Event.fireLegacyEvent(YAHOO.util.Event.getEvent(z),a)}}u[a].push(d)}else{try{this._simpleAdd(e,h,b,c)}catch(j){this.lastError=j;this.removeListener(e,h,i);return false}}return true},addListener:function(e,b,a,d,c){return this._addListener(e,b,a,d,c,false)},addFocusListener:function(d,a,c,b){return this._addListener(d,o,a,c,b,true)},removeFocusListener:function(b,a){return this.removeListener(b,o,a)},addBlurListener:function(d,a,c,b){return this._addListener(d,m,a,c,b,true)},removeBlurListener:function(b,a){return this.removeListener(b,m,a)},fireLegacyEvent:function(j,b){var h=true,e,f,g,d,i;f=u[b].slice();for(var c=0,a=f.length;c<a;++c){g=f[c];if(g&&g[this.WFN]){d=g[this.ADJ_SCOPE];i=g[this.WFN].call(d,j);h=(h&&i)}}e=s[b];if(e&&e[2]){e[2](j)}return h},getLegacyIndex:function(c,b){var a=this.generateId(c)+b;if(typeof x[a]=="undefined"){return -1}else{return x[a]}},useLegacyEvent:function(a,b){return(this.webkit&&this.webkit<419&&("click"==b||"dblclick"==b))},removeListener:function(d,e,h){var a,j,f;if(typeof d=="string"){d=this.getEl(d)}else{if(this._isValidCollection(d)){var g=true;for(a=d.length-1;a>-1;a--){g=(this.removeListener(d[a],e,h)&&g)}return g}}if(!h||!h.call){return this.purgeElement(d,false,e)}if("unload"==e){for(a=p.length-1;a>-1;a--){f=p[a];if(f&&f[0]==d&&f[1]==e&&f[2]==h){p.splice(a,1);return true}}return false}var l=null;var k=arguments[3];if("undefined"===typeof k){k=this._getCacheIndex(d,e,h)}if(k>=0){l=q[k]}if(!d||!l){return false}if(this.useLegacyEvent(d,e)){var b=this.getLegacyIndex(d,e);var c=u[b];if(c){for(a=0,j=c.length;a<j;++a){f=c[a];if(f&&f[this.EL]==d&&f[this.TYPE]==e&&f[this.FN]==h){c.splice(a,1);break}}}}else{try{this._simpleRemove(d,e,l[this.WFN],false)}catch(i){this.lastError=i;return false}}delete q[k][this.WFN];delete q[k][this.FN];q.splice(k,1);return true},getTarget:function(b,c){var a=b.target||b.srcElement;return this.resolveTextNode(a)},resolveTextNode:function(b){try{if(b&&3==b.nodeType){return b.parentNode}}catch(a){}return b},getPageX:function(b){var a=b.pageX;if(!a&&0!==a){a=b.clientX||0;if(this.isIE){a+=this._getScrollLeft()}}return a},getPageY:function(a){var b=a.pageY;if(!b&&0!==b){b=a.clientY||0;if(this.isIE){b+=this._getScrollTop()}}return b},getXY:function(a){return[this.getPageX(a),this.getPageY(a)]},getRelatedTarget:function(b){var a=b.relatedTarget;if(!a){if(b.type=="mouseout"){a=b.toElement}else{if(b.type=="mouseover"){a=b.fromElement}}}return this.resolveTextNode(a)},getTime:function(b){if(!b.time){var c=new Date().getTime();try{b.time=c}catch(a){this.lastError=a;return c}}return b.time},stopEvent:function(a){this.stopPropagation(a);this.preventDefault(a)},stopPropagation:function(a){if(a.stopPropagation){a.stopPropagation()}else{a.cancelBubble=true}},preventDefault:function(a){if(a.preventDefault){a.preventDefault()}else{a.returnValue=false}},getEvent:function(c,a){var d=c||window.event;if(!d){var b=this.getEvent.caller;while(b){d=b.arguments[0];if(d&&Event==d.constructor){break}b=b.caller}}return d},getCharCode:function(b){var a=b.keyCode||b.charCode||0;if(YAHOO.env.ua.webkit&&(a in v)){a=v[a]}return a},_getCacheIndex:function(c,b,d){for(var e=0,f=q.length;e<f;e=e+1){var a=q[e];if(a&&a[this.FN]==d&&a[this.EL]==c&&a[this.TYPE]==b){return e}}return -1},generateId:function(a){var b=a.id;if(!b){b="yuievtautoid-"+y;++y;a.id=b}return b},_isValidCollection:function(b){try{return(b&&typeof b!=="string"&&b.length&&!b.tagName&&!b.alert&&typeof b[0]!=="undefined")}catch(a){return false}},elCache:{},getEl:function(a){return(typeof a==="string")?document.getElementById(a):a},clearCache:function(){},DOMReadyEvent:new YAHOO.util.CustomEvent("DOMReady",this),_load:function(b){if(!r){r=true;var a=YAHOO.util.Event;a._ready();a._tryPreloadAttach()}},_ready:function(b){var a=YAHOO.util.Event;if(!a.DOMReady){a.DOMReady=true;a.DOMReadyEvent.fire();a._simpleRemove(document,"DOMContentLoaded",a._ready)}},_tryPreloadAttach:function(){if(t.length===0){w=0;if(this._interval){clearInterval(this._interval);this._interval=null}return}if(this.locked){return}if(this.isIE){if(!this.DOMReady){this.startInterval();return}}this.locked=true;var c=!r;if(!c){c=(w>0&&t.length>0)}var d=[];var b=function(j,i){var k=j;if(i.overrideContext){if(i.overrideContext===true){k=i.obj}else{k=i.overrideContext}}i.fn.call(k,i.obj)};var h,a,e,f,g=[];for(h=0,a=t.length;h<a;h=h+1){e=t[h];if(e){f=this.getEl(e.id);if(f){if(e.checkReady){if(r||f.nextSibling||!c){g.push(e);t[h]=null}}else{b(f,e);t[h]=null}}else{d.push(e)}}}for(h=0,a=g.length;h<a;h=h+1){e=g[h];b(this.getEl(e.id),e)}w--;if(c){for(h=t.length-1;h>-1;h--){e=t[h];if(!e||!e.id){t.splice(h,1)}}this.startInterval()}else{if(this._interval){clearInterval(this._interval);this._interval=null}}this.locked=false},purgeElement:function(e,d,b){var g=(YAHOO.lang.isString(e))?this.getEl(e):e;var c=this.getListeners(g,b),f,a;if(c){for(f=c.length-1;f>-1;f--){var h=c[f];this.removeListener(g,h.type,h.fn)}}if(d&&g&&g.childNodes){for(f=0,a=g.childNodes.length;f<a;++f){this.purgeElement(g.childNodes[f],d,b)}}},getListeners:function(c,e){var j=[],d;if(!e){d=[q,p]}else{if(e==="unload"){d=[p]}else{d=[q]}}var h=(YAHOO.lang.isString(c))?this.getEl(c):c;for(var a=0;a<d.length;a=a+1){var f=d[a];if(f){for(var i=0,g=f.length;i<g;++i){var b=f[i];if(b&&b[this.EL]===h&&(!e||e===b[this.TYPE])){j.push({type:b[this.TYPE],fn:b[this.FN],obj:b[this.OBJ],adjust:b[this.OVERRIDE],scope:b[this.ADJ_SCOPE],index:i})}}}}return(j.length)?j:null},_unload:function(g){var d=YAHOO.util.Event,a,b,c,h,i,f=p.slice(),e;for(a=0,h=p.length;a<h;++a){c=f[a];if(c){e=window;if(c[d.ADJ_SCOPE]){if(c[d.ADJ_SCOPE]===true){e=c[d.UNLOAD_OBJ]}else{e=c[d.ADJ_SCOPE]}}c[d.FN].call(e,d.getEvent(g,c[d.EL]),c[d.UNLOAD_OBJ]);f[a]=null}}c=null;e=null;p=null;if(q){for(b=q.length-1;b>-1;b--){c=q[b];if(c){d.removeListener(c[d.EL],c[d.TYPE],c[d.FN],b)}}c=null}s=null;d._simpleRemove(window,"unload",d._unload)},_getScrollLeft:function(){return this._getScroll()[1]},_getScrollTop:function(){return this._getScroll()[0]},_getScroll:function(){var a=document.documentElement,b=document.body;if(a&&(a.scrollTop||a.scrollLeft)){return[a.scrollTop,a.scrollLeft]}else{if(b){return[b.scrollTop,b.scrollLeft]}else{return[0,0]}}},regCE:function(){},_simpleAdd:function(){if(window.addEventListener){return function(c,b,d,a){c.addEventListener(b,d,(a))}}else{if(window.attachEvent){return function(c,b,d,a){c.attachEvent("on"+b,d)}}else{return function(){}}}}(),_simpleRemove:function(){if(window.removeEventListener){return function(c,b,d,a){c.removeEventListener(b,d,(a))}}else{if(window.detachEvent){return function(c,b,a){c.detachEvent("on"+b,a)}}else{return function(){}}}}()}}();(function(){var d=YAHOO.util.Event;d.on=d.addListener;d.onFocus=d.addFocusListener;d.onBlur=d.addBlurListener;if(d.isIE){YAHOO.util.Event.onDOMReady(YAHOO.util.Event._tryPreloadAttach,YAHOO.util.Event,true);var c=document.createElement("p");d._dri=setInterval(function(){try{c.doScroll("left");clearInterval(d._dri);d._dri=null;d._ready();c=null}catch(a){}},d.POLL_INTERVAL)}else{if(d.webkit&&d.webkit<525){d._dri=setInterval(function(){var a=document.readyState;if("loaded"==a||"complete"==a){clearInterval(d._dri);d._dri=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(h,l,i,j){this.__yui_events=this.__yui_events||{};var k=this.__yui_events[h];if(k){k.subscribe(l,i,j)}else{this.__yui_subscribers=this.__yui_subscribers||{};var g=this.__yui_subscribers;if(!g[h]){g[h]=[]}g[h].push({fn:l,obj:i,overrideContext:j})}},unsubscribe:function(o,l,j){this.__yui_events=this.__yui_events||{};var i=this.__yui_events;if(o){var k=i[o];if(k){return k.unsubscribe(l,j)}}else{var h=true;for(var m in i){if(YAHOO.lang.hasOwnProperty(i,m)){h=h&&i[m].unsubscribe(l,j)}}return h}return false},unsubscribeAll:function(b){return this.unsubscribe(b)},createEvent:function(l,p){this.__yui_events=this.__yui_events||{};var s=p||{};var i=this.__yui_events;if(i[l]){}else{var k=s.scope||this;var o=(s.silent);var r=new YAHOO.util.CustomEvent(l,k,o,YAHOO.util.CustomEvent.FLAT);i[l]=r;if(s.onSubscribeCallback){r.subscribeEvent.subscribe(s.onSubscribeCallback)}this.__yui_subscribers=this.__yui_subscribers||{};var m=this.__yui_subscribers[l];if(m){for(var q=0;q<m.length;++q){r.subscribe(m[q].fn,m[q].obj,m[q].overrideContext)}}}return i[l]},fireEvent:function(l,m,i,o){this.__yui_events=this.__yui_events||{};var j=this.__yui_events[l];if(!j){return null}var h=[];for(var k=1;k<arguments.length;++k){h.push(arguments[k])}return j.fire.apply(j,h)},hasEvent:function(b){if(this.__yui_events){if(this.__yui_events[b]){return true}}return false}};(function(){var e=YAHOO.util.Event,f=YAHOO.lang;YAHOO.util.KeyListener=function(l,a,k,j){if(!l){}else{if(!a){}else{if(!k){}}}if(!j){j=YAHOO.util.KeyListener.KEYDOWN}var c=new YAHOO.util.CustomEvent("keyPressed");this.enabledEvent=new YAHOO.util.CustomEvent("enabled");this.disabledEvent=new YAHOO.util.CustomEvent("disabled");if(f.isString(l)){l=document.getElementById(l)}if(f.isFunction(k)){c.subscribe(k)}else{c.subscribe(k.fn,k.scope,k.correctScope)}function b(r,s){if(!a.shift){a.shift=false}if(!a.alt){a.alt=false}if(!a.ctrl){a.ctrl=false}if(r.shiftKey==a.shift&&r.altKey==a.alt&&r.ctrlKey==a.ctrl){var q,g=a.keys,h;if(YAHOO.lang.isArray(g)){for(var i=0;i<g.length;i++){q=g[i];h=e.getCharCode(r);if(q==h){c.fire(h,r);break}}}else{h=e.getCharCode(r);if(g==h){c.fire(h,r)}}}}this.enable=function(){if(!this.enabled){e.on(l,j,b);this.enabledEvent.fire(a)}this.enabled=true};this.disable=function(){if(this.enabled){e.removeListener(l,j,b);this.disabledEvent.fire(a)}this.enabled=false};this.toString=function(){return"KeyListener ["+a.keys+"] "+l.tagName+(l.id?"["+l.id+"]":"")}};var d=YAHOO.util.KeyListener;d.KEYDOWN="keydown";d.KEYUP="keyup";d.KEY={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,{version:"2.7.0",build:"1796"});YAHOO.util.Get=function(){var A={},B=0,v=0,I=false,z=YAHOO.env.ua,u=YAHOO.lang;var D=function(g,d,e){var c=e||window,b=c.document,f=b.createElement(g);for(var a in d){if(d[a]&&YAHOO.lang.hasOwnProperty(d,a)){f.setAttribute(a,d[a])}}return f};var E=function(d,c,a){var b=a||"utf-8";return D("link",{id:"yui__dyn_"+(v++),type:"text/css",charset:b,rel:"stylesheet",href:d},c)};var x=function(d,c,a){var b=a||"utf-8";return D("script",{id:"yui__dyn_"+(v++),type:"text/javascript",charset:b,src:d},c)};var M=function(b,a){return{tId:b.tId,win:b.win,data:b.data,nodes:b.nodes,msg:a,purge:function(){J(this.tId)}}};var L=function(d,a){var c=A[a],b=(u.isString(d))?c.win.document.getElementById(d):d;if(!b){w(a,"target node not found: "+d)}return b};var w=function(a,b){var d=A[a];if(d.onFailure){var c=d.scope||d.win;d.onFailure.call(c,M(d,b))}};var K=function(a){var d=A[a];d.finished=true;if(d.aborted){var b="transaction "+a+" was aborted";w(a,b);return}if(d.onSuccess){var c=d.scope||d.win;d.onSuccess.call(c,M(d))}};var y=function(a){var c=A[a];if(c.onTimeout){var b=c.scope||c;c.onTimeout.call(b,M(c))}};var G=function(g,c){var h=A[g];if(h.timer){h.timer.cancel()}if(h.aborted){var e="transaction "+g+" was aborted";w(g,e);return}if(c){h.url.shift();if(h.varName){h.varName.shift()}}else{h.url=(u.isString(h.url))?[h.url]:h.url;if(h.varName){h.varName=(u.isString(h.varName))?[h.varName]:h.varName}}var k=h.win,a=k.document,b=a.getElementsByTagName("head")[0],f;if(h.url.length===0){if(h.type==="script"&&z.webkit&&z.webkit<420&&!h.finalpass&&!h.varName){var d=x(null,h.win,h.charset);d.innerHTML='YAHOO.util.Get._finalize("'+g+'");';h.nodes.push(d);b.appendChild(d)}else{K(g)}return}var i=h.url[0];if(!i){h.url.shift();return G(g)}if(h.timeout){h.timer=u.later(h.timeout,h,y,g)}if(h.type==="script"){f=x(i,k,h.charset)}else{f=E(i,k,h.charset)}H(h.type,f,g,i,k,h.url.length);h.nodes.push(f);if(h.insertBefore){var j=L(h.insertBefore,g);if(j){j.parentNode.insertBefore(f,j)}}else{b.appendChild(f)}if((z.webkit||z.gecko)&&h.type==="css"){G(g,i)}};var C=function(){if(I){return}I=true;for(var b in A){var a=A[b];if(a.autopurge&&a.finished){J(a.tId);delete A[b]}}I=false};var J=function(h){var g=A[h];if(g){var b=g.nodes,e=b.length,f=g.win.document,a=f.getElementsByTagName("head")[0];if(g.insertBefore){var c=L(g.insertBefore,h);if(c){a=c.parentNode}}for(var d=0;d<e;d=d+1){a.removeChild(b[d])}g.nodes=[]}};var F=function(c,d,b){var e="q"+(B++);b=b||{};if(B%YAHOO.util.Get.PURGE_THRESH===0){C()}A[e]=u.merge(b,{tId:e,type:c,url:d,finished:false,aborted:false,nodes:[]});var a=A[e];a.win=a.win||window;a.scope=a.scope||a.win;a.autopurge=("autopurge" in a)?a.autopurge:(c==="script")?true:false;u.later(0,a,G,e);return{tId:e}};var H=function(a,f,g,i,e,d,b){var c=b||G;if(z.ie){f.onreadystatechange=function(){var k=this.readyState;if("loaded"===k||"complete"===k){f.onreadystatechange=null;c(g,i)}}}else{if(z.webkit){if(a==="script"){if(z.webkit>=420){f.addEventListener("load",function(){c(g,i)})}else{var j=A[g];if(j.varName){var h=YAHOO.util.Get.POLL_FREQ;j.maxattempts=YAHOO.util.Get.TIMEOUT/h;j.attempts=0;j._cache=j.varName[0].split(".");j.timer=u.later(h,j,function(k){var o=this._cache,p=o.length,q=this.win,m;for(m=0;m<p;m=m+1){q=q[o[m]];if(!q){this.attempts++;if(this.attempts++>this.maxattempts){var l="Over retry limit, giving up";j.timer.cancel();w(g,l)}else{}return}}j.timer.cancel();c(g,i)},null,true)}else{u.later(YAHOO.util.Get.POLL_FREQ,null,c,[g,i])}}}}else{f.onload=function(){c(g,i)}}}};return{POLL_FREQ:10,PURGE_THRESH:20,TIMEOUT:2000,_finalize:function(a){u.later(0,null,K,a)},abort:function(b){var a=(u.isString(b))?b:b.tId;var c=A[a];if(c){c.aborted=true}},script:function(b,a){return F("script",b,a)},css:function(b,a){return F("css",b,a)}}}();YAHOO.register("get",YAHOO.util.Get,{version:"2.7.0",build:"1796"});(function(){var c=YAHOO.util;var d=function(g,h,b,a){if(!g){}this.init(g,h,b,a)};d.NAME="Anim";d.prototype={toString:function(){var b=this.getEl()||{};var a=b.id||b.tagName;return(this.constructor.NAME+": "+a)},patterns:{noNegatives:/width|height|opacity|padding/i,offsetAttribute:/^((width|height)|(top|left))$/,defaultUnit:/width|height|top$|bottom$|left$|right$/i,offsetUnit:/\d+(em|%|en|ex|pt|in|cm|mm|pc)$/i},doMethod:function(f,a,b){return this.method(this.currentFrame,a,b-a,this.totalFrames)},setAttribute:function(h,a,b){var g=this.getEl();if(this.patterns.noNegatives.test(h)){a=(a>0)?a:0}if("style" in g){c.Dom.setStyle(g,h,a+b)}else{if(h in g){g[h]=a}}},getAttribute:function(l){var j=this.getEl();var b=c.Dom.getStyle(j,l);if(b!=="auto"&&!this.patterns.offsetUnit.test(b)){return parseFloat(b)}var k=this.patterns.offsetAttribute.exec(l)||[];var a=!!(k[3]);var i=!!(k[2]);if("style" in j){if(i||(c.Dom.getStyle(j,"position")=="absolute"&&a)){b=j["offset"+k[0].charAt(0).toUpperCase()+k[0].substr(1)]}else{b=0}}else{if(l in j){b=j[l]}}return b},getDefaultUnit:function(a){if(this.patterns.defaultUnit.test(a)){return"px"}return""},setRuntimeAttribute:function(m){var a;var l;var k=this.attributes;this.runtimeAttributes[m]={};var b=function(e){return(typeof e!=="undefined")};if(!b(k[m]["to"])&&!b(k[m]["by"])){return false}a=(b(k[m]["from"]))?k[m]["from"]:this.getAttribute(m);if(b(k[m]["to"])){l=k[m]["to"]}else{if(b(k[m]["by"])){if(a.constructor==Array){l=[];for(var i=0,o=a.length;i<o;++i){l[i]=a[i]+k[m]["by"][i]*1}}else{l=a+k[m]["by"]*1}}}this.runtimeAttributes[m].start=a;this.runtimeAttributes[m].end=l;this.runtimeAttributes[m].unit=(b(k[m].unit))?k[m]["unit"]:this.getDefaultUnit(m);return true},init:function(s,m,o,u){var t=false;var r=null;var p=0;s=c.Dom.get(s);this.attributes=m||{};this.duration=!YAHOO.lang.isUndefined(o)?o:1;this.method=u||c.Easing.easeNone;this.useSeconds=true;this.currentFrame=0;this.totalFrames=c.AnimMgr.fps;this.setEl=function(e){s=c.Dom.get(e)};this.getEl=function(){return s};this.isAnimated=function(){return t};this.getStartTime=function(){return r};this.runtimeAttributes={};this.animate=function(){if(this.isAnimated()){return false}this.currentFrame=0;this.totalFrames=(this.useSeconds)?Math.ceil(c.AnimMgr.fps*this.duration):this.duration;if(this.duration===0&&this.useSeconds){this.totalFrames=1}c.AnimMgr.registerElement(this);return true};this.stop=function(e){if(!this.isAnimated()){return false}if(e){this.currentFrame=this.totalFrames;this._onTween.fire()}c.AnimMgr.stop(this)};var a=function(){this.onStart.fire();this.runtimeAttributes={};for(var e in this.attributes){this.setRuntimeAttribute(e)}t=true;p=0;r=new Date()};var b=function(){var f={duration:new Date()-this.getStartTime(),currentFrame:this.currentFrame};f.toString=function(){return("duration: "+f.duration+", currentFrame: "+f.currentFrame)};this.onTween.fire(f);var g=this.runtimeAttributes;for(var e in g){this.setAttribute(e,this.doMethod(e,g[e].start,g[e].end),g[e].unit)}p+=1};var q=function(){var e=(new Date()-r)/1000;var f={duration:e,frames:p,fps:p/e};f.toString=function(){return("duration: "+f.duration+", frames: "+f.frames+", fps: "+f.fps)};t=false;p=0;this.onComplete.fire(f)};this._onStart=new c.CustomEvent("_start",this,true);this.onStart=new c.CustomEvent("start",this);this.onTween=new c.CustomEvent("tween",this);this._onTween=new c.CustomEvent("_tween",this,true);this.onComplete=new c.CustomEvent("complete",this);this._onComplete=new c.CustomEvent("_complete",this,true);this._onStart.subscribe(a);this._onTween.subscribe(b);this._onComplete.subscribe(q)}};c.Anim=d})();YAHOO.util.AnimMgr=new function(){var j=null;var f=[];var g=0;this.fps=1000;this.delay=1;this.registerElement=function(a){f[f.length]=a;g+=1;a._onStart.fire();this.start()};this.unRegister=function(a,b){b=b||h(a);if(!a.isAnimated()||b==-1){return false}a._onComplete.fire();f.splice(b,1);g-=1;if(g<=0){this.stop()}return true};this.start=function(){if(j===null){j=setInterval(this.run,this.delay)}};this.stop=function(a){if(!a){clearInterval(j);for(var b=0,c=f.length;b<c;++b){this.unRegister(f[0],0)}f=[];j=null;g=0}else{this.unRegister(a)}};this.run=function(){for(var a=0,c=f.length;a<c;++a){var b=f[a];if(!b||!b.isAnimated()){continue}if(b.currentFrame<b.totalFrames||b.totalFrames===null){b.currentFrame+=1;if(b.useSeconds){i(b)}b._onTween.fire()}else{YAHOO.util.AnimMgr.stop(b,a)}}};var h=function(a){for(var b=0,c=f.length;b<c;++b){if(f[b]==a){return b}}return -1};var i=function(e){var b=e.totalFrames;var c=e.currentFrame;var d=(e.currentFrame*e.duration*1000/e.totalFrames);var l=(new Date()-e.getStartTime());var a=0;if(l<e.duration*1000){a=Math.round((l/d-1)*e.currentFrame)}else{a=b-(c+1)}if(a>0&&isFinite(a)){if(e.currentFrame+a>=b){a=b-(c+1)}e.currentFrame+=a}}};YAHOO.util.Bezier=new function(){this.getPosition=function(j,k){var i=j.length;var l=[];for(var g=0;g<i;++g){l[g]=[j[g][0],j[g][1]]}for(var h=1;h<i;++h){for(g=0;g<i-h;++g){l[g][0]=(1-k)*l[g][0]+k*l[parseInt(g+1,10)][0];l[g][1]=(1-k)*l[g][1]+k*l[parseInt(g+1,10)][1]}}return[l[0][0],l[0][1]]}};(function(){var f=function(c,d,b,a){f.superclass.constructor.call(this,c,d,b,a)};f.NAME="ColorAnim";f.DEFAULT_BGCOLOR="#fff";var h=YAHOO.util;YAHOO.extend(f,h.Anim);var g=f.superclass;var e=f.prototype;e.patterns.color=/color$/i;e.patterns.rgb=/^rgb\(([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\)$/i;e.patterns.hex=/^#?([0-9A-F]{2})([0-9A-F]{2})([0-9A-F]{2})$/i;e.patterns.hex3=/^#?([0-9A-F]{1})([0-9A-F]{1})([0-9A-F]{1})$/i;e.patterns.transparent=/^transparent|rgba\(0, 0, 0, 0\)$/;e.parseColor=function(b){if(b.length==3){return b}var a=this.patterns.hex.exec(b);if(a&&a.length==4){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16)]}a=this.patterns.rgb.exec(b);if(a&&a.length==4){return[parseInt(a[1],10),parseInt(a[2],10),parseInt(a[3],10)]}a=this.patterns.hex3.exec(b);if(a&&a.length==4){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16)]}return null};e.getAttribute=function(j){var c=this.getEl();if(this.patterns.color.test(j)){var a=YAHOO.util.Dom.getStyle(c,j);var b=this;if(this.patterns.transparent.test(a)){var d=YAHOO.util.Dom.getAncestorBy(c,function(i){return !b.patterns.transparent.test(a)});if(d){a=h.Dom.getStyle(d,j)}else{a=f.DEFAULT_BGCOLOR}}}else{a=g.getAttribute.call(this,j)}return a};e.doMethod=function(i,a,d){var b;if(this.patterns.color.test(i)){b=[];for(var c=0,l=a.length;c<l;++c){b[c]=g.doMethod.call(this,i,a[c],d[c])}b="rgb("+Math.floor(b[0])+","+Math.floor(b[1])+","+Math.floor(b[2])+")"}else{b=g.doMethod.call(this,i,a,d)}return b};e.setRuntimeAttribute=function(i){g.setRuntimeAttribute.call(this,i);if(this.patterns.color.test(i)){var c=this.attributes;var a=this.parseColor(this.runtimeAttributes[i].start);var d=this.parseColor(this.runtimeAttributes[i].end);if(typeof c[i]["to"]==="undefined"&&typeof c[i]["by"]!=="undefined"){d=this.parseColor(c[i].by);for(var b=0,l=a.length;b<l;++b){d[b]=a[b]+d[b]}}this.runtimeAttributes[i].start=a;this.runtimeAttributes[i].end=d}};h.ColorAnim=f})();YAHOO.util.Easing={easeNone:function(h,b,c,d){return c*h/d+b},easeIn:function(h,b,c,d){return c*(h/=d)*h+b},easeOut:function(h,b,c,d){return -c*(h/=d)*(h-2)+b},easeBoth:function(h,b,c,d){if((h/=d/2)<1){return c/2*h*h+b}return -c/2*((--h)*(h-2)-1)+b},easeInStrong:function(h,b,c,d){return c*(h/=d)*h*h*h+b},easeOutStrong:function(h,b,c,d){return -c*((h=h/d-1)*h*h*h-1)+b},easeBothStrong:function(h,b,c,d){if((h/=d/2)<1){return c/2*h*h*h*h+b}return -c/2*((h-=2)*h*h*h-2)+b},elasticIn:function(l,o,a,b,m,c){if(l==0){return o}if((l/=b)==1){return o+a}if(!c){c=b*0.3}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}return -(m*Math.pow(2,10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c))+o},elasticOut:function(l,o,a,b,m,c){if(l==0){return o}if((l/=b)==1){return o+a}if(!c){c=b*0.3}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}return m*Math.pow(2,-10*l)*Math.sin((l*b-d)*(2*Math.PI)/c)+a+o},elasticBoth:function(l,o,a,b,m,c){if(l==0){return o}if((l/=b/2)==2){return o+a}if(!c){c=b*(0.3*1.5)}if(!m||m<Math.abs(a)){m=a;var d=c/4}else{var d=c/(2*Math.PI)*Math.asin(a/m)}if(l<1){return -0.5*(m*Math.pow(2,10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c))+o}return m*Math.pow(2,-10*(l-=1))*Math.sin((l*b-d)*(2*Math.PI)/c)*0.5+a+o},backIn:function(j,b,c,d,i){if(typeof i=="undefined"){i=1.70158}return c*(j/=d)*j*((i+1)*j-i)+b},backOut:function(j,b,c,d,i){if(typeof i=="undefined"){i=1.70158}return c*((j=j/d-1)*j*((i+1)*j+i)+1)+b},backBoth:function(j,b,c,d,i){if(typeof i=="undefined"){i=1.70158}if((j/=d/2)<1){return c/2*(j*j*(((i*=(1.525))+1)*j-i))+b}return c/2*((j-=2)*j*(((i*=(1.525))+1)*j+i)+2)+b},bounceIn:function(h,b,c,d){return c-YAHOO.util.Easing.bounceOut(d-h,0,c,d)+b},bounceOut:function(h,b,c,d){if((h/=d)<(1/2.75)){return c*(7.5625*h*h)+b}else{if(h<(2/2.75)){return c*(7.5625*(h-=(1.5/2.75))*h+0.75)+b}else{if(h<(2.5/2.75)){return c*(7.5625*(h-=(2.25/2.75))*h+0.9375)+b}}}return c*(7.5625*(h-=(2.625/2.75))*h+0.984375)+b},bounceBoth:function(h,b,c,d){if(h<d/2){return YAHOO.util.Easing.bounceIn(h*2,0,c,d)*0.5+b}return YAHOO.util.Easing.bounceOut(h*2-d,0,c,d)*0.5+c*0.5+b}};(function(){var h=function(c,d,b,a){if(c){h.superclass.constructor.call(this,c,d,b,a)}};h.NAME="Motion";var j=YAHOO.util;YAHOO.extend(h,j.ColorAnim);var i=h.superclass;var l=h.prototype;l.patterns.points=/^points$/i;l.setAttribute=function(c,a,b){if(this.patterns.points.test(c)){b=b||"px";i.setAttribute.call(this,"left",a[0],b);i.setAttribute.call(this,"top",a[1],b)}else{i.setAttribute.call(this,c,a,b)}};l.getAttribute=function(b){if(this.patterns.points.test(b)){var a=[i.getAttribute.call(this,"left"),i.getAttribute.call(this,"top")]}else{a=i.getAttribute.call(this,b)}return a};l.doMethod=function(e,a,d){var b=null;if(this.patterns.points.test(e)){var c=this.method(this.currentFrame,0,100,this.totalFrames)/100;b=j.Bezier.getPosition(this.runtimeAttributes[e],c)}else{b=i.doMethod.call(this,e,a,d)}return b};l.setRuntimeAttribute=function(a){if(this.patterns.points.test(a)){var u=this.getEl();var s=this.attributes;var v;var e=s.points.control||[];var t;var d,b;if(e.length>0&&!(e[0] instanceof Array)){e=[e]}else{var f=[];for(d=0,b=e.length;d<b;++d){f[d]=e[d]}e=f}if(j.Dom.getStyle(u,"position")=="static"){j.Dom.setStyle(u,"position","relative")}if(k(s.points.from)){j.Dom.setXY(u,s.points.from)}else{j.Dom.setXY(u,j.Dom.getXY(u))}v=this.getAttribute("points");if(k(s.points.to)){t=g.call(this,s.points.to,v);var c=j.Dom.getXY(this.getEl());for(d=0,b=e.length;d<b;++d){e[d]=g.call(this,e[d],v)}}else{if(k(s.points.by)){t=[v[0]+s.points.by[0],v[1]+s.points.by[1]];for(d=0,b=e.length;d<b;++d){e[d]=[v[0]+e[d][0],v[1]+e[d][1]]}}}this.runtimeAttributes[a]=[v];if(e.length>0){this.runtimeAttributes[a]=this.runtimeAttributes[a].concat(e)}this.runtimeAttributes[a][this.runtimeAttributes[a].length]=t}else{i.setRuntimeAttribute.call(this,a)}};var g=function(c,a){var b=j.Dom.getXY(this.getEl());c=[c[0]-b[0]+a[0],c[1]-b[1]+a[1]];return c};var k=function(a){return(typeof a!=="undefined")};j.Motion=h})();(function(){var g=function(c,d,b,a){if(c){g.superclass.constructor.call(this,c,d,b,a)}};g.NAME="Scroll";var e=YAHOO.util;YAHOO.extend(g,e.ColorAnim);var h=g.superclass;var f=g.prototype;f.doMethod=function(d,a,c){var b=null;if(d=="scroll"){b=[this.method(this.currentFrame,a[0],c[0]-a[0],this.totalFrames),this.method(this.currentFrame,a[1],c[1]-a[1],this.totalFrames)]}else{b=h.doMethod.call(this,d,a,c)}return b};f.getAttribute=function(c){var a=null;var b=this.getEl();if(c=="scroll"){a=[b.scrollLeft,b.scrollTop]}else{a=h.getAttribute.call(this,c)}return a};f.setAttribute=function(d,a,b){var c=this.getEl();if(d=="scroll"){c.scrollLeft=a[0];c.scrollTop=a[1]}else{h.setAttribute.call(this,d,a,b)}};e.Scroll=g})();YAHOO.register("animation",YAHOO.util.Anim,{version:"2.7.0",build:"1796"});YAHOO.lang.JSON=(function(){var l=YAHOO.lang,_UNICODE_EXCEPTIONS=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_ESCAPES=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,_VALUES=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,_BRACKETS=/(?:^|:|,)(?:\s*\[)+/g,_INVALID=/^[\],:{}\s]*$/,_SPECIAL_CHARS=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,_CHARS={"\b":"\\b","\t":"\\t","\n":"\\n","\f":"\\f","\r":"\\r",'"':'\\"',"\\":"\\\\"};function _revive(data,reviver){var walk=function(o,key){var k,v,value=o[key];if(value&&typeof value==="object"){for(k in value){if(l.hasOwnProperty(value,k)){v=walk(value,k);if(v===undefined){delete value[k]}else{value[k]=v}}}}return reviver.call(o,key,value)};return typeof reviver==="function"?walk({"":data},""):data}function _char(c){if(!_CHARS[c]){_CHARS[c]="\\u"+("0000"+(+(c.charCodeAt(0))).toString(16)).slice(-4)}return _CHARS[c]}function _prepare(s){return s.replace(_UNICODE_EXCEPTIONS,_char)}function _isValid(str){return l.isString(str)&&_INVALID.test(str.replace(_ESCAPES,"@").replace(_VALUES,"]").replace(_BRACKETS,""))}function _string(s){return'"'+s.replace(_SPECIAL_CHARS,_char)+'"'}function _stringify(h,key,d,w,pstack){var o=typeof w==="function"?w.call(h,key,h[key]):h[key],i,len,j,k,v,isArray,a;if(o instanceof Date){o=l.JSON.dateToString(o)}else{if(o instanceof String||o instanceof Boolean||o instanceof Number){o=o.valueOf()}}switch(typeof o){case"string":return _string(o);case"number":return isFinite(o)?String(o):"null";case"boolean":return String(o);case"object":if(o===null){return"null"}for(i=pstack.length-1;i>=0;--i){if(pstack[i]===o){return"null"}}pstack[pstack.length]=o;a=[];isArray=l.isArray(o);if(d>0){if(isArray){for(i=o.length-1;i>=0;--i){a[i]=_stringify(o,i,d-1,w,pstack)||"null"}}else{j=0;if(l.isArray(w)){for(i=0,len=w.length;i<len;++i){k=w[i];v=_stringify(o,k,d-1,w,pstack);if(v){a[j++]=_string(k)+":"+v}}}else{for(k in o){if(typeof k==="string"&&l.hasOwnProperty(o,k)){v=_stringify(o,k,d-1,w,pstack);if(v){a[j++]=_string(k)+":"+v}}}}a.sort()}}pstack.pop();return isArray?"["+a.join(",")+"]":"{"+a.join(",")+"}"}return undefined}return{isValid:function(s){return _isValid(_prepare(s))},parse:function(s,reviver){s=_prepare(s);if(_isValid(s)){return _revive(eval("("+s+")"),reviver)}throw new SyntaxError("parseJSON")},stringify:function(o,w,d){if(o!==undefined){if(l.isArray(w)){w=(function(a){var uniq=[],map={},v,i,j,len;for(i=0,j=0,len=a.length;i<len;++i){v=a[i];if(typeof v==="string"&&map[v]===undefined){uniq[(map[v]=j++)]=v}}return uniq})(w)}d=d>=0?d:1/0;return _stringify({"":o},"",d,w,[])}return undefined},dateToString:function(d){function _zeroPad(v){return v<10?"0"+v:v}return d.getUTCFullYear()+"-"+_zeroPad(d.getUTCMonth()+1)+"-"+_zeroPad(d.getUTCDate())+"T"+_zeroPad(d.getUTCHours())+":"+_zeroPad(d.getUTCMinutes())+":"+_zeroPad(d.getUTCSeconds())+"Z"},stringToDate:function(str){if(/^(\d{4})-(\d{2})-(\d{2})T(\d{2}):(\d{2}):(\d{2})Z$/.test(str)){var d=new Date();d.setUTCFullYear(RegExp.$1,(RegExp.$2|0)-1,RegExp.$3);d.setUTCHours(RegExp.$4,RegExp.$5,RegExp.$6);return d}return str}}})();YAHOO.register("json",YAHOO.lang.JSON,{version:"2.7.0",build:"1796"});var KISSY=window.KISSY||{};(function(){var r=YAHOO.util,m=r.Dom,j=r.Event,k=YAHOO.lang,s="data-lazyload-src",p={AUTO:"auto",MANUAL:"manual"},l="default",o={mod:p.AUTO,diff:l,placeholder:"http://a.tbcdn.cn/kissy/1.0.0/build/imglazyload/spaceball.gif"};var q=function(a,b){if(!(this instanceof arguments.callee)){return new arguments.callee(a,b)}if(typeof b==="undefined"){b=a;a=[document]}if(!k.isArray(a)){a=[m.get(a)||document]}this.containers=a;this.config=k.merge(o,b||{});this._init()};k.augmentObject(q.prototype,{_init:function(){this.threshold=this._getThreshold();this.images=this._filterImgs();if(this.images.length>0){this._initLoadEvent()}},_getThreshold:function(){var a=this.config.diff,b=m.getViewportHeight();if(a===l){return 2*b}else{return b+a}},_initLoadEvent:function(){var a,b=this;j.on(window,"scroll",c);j.on(window,"resize",function(){b.threshold=b._getThreshold();c(true)});if(this.config.mod===p.MANUAL){j.onDOMReady(function(){b._loadImgs(true)})}function c(d){if(a){return}a=setTimeout(function(){b._loadImgs(d);if(b.images.length===0){j.removeListener(window,"scroll",c);j.removeListener(window,"resize",c)}a=null},100)}},_filterImgs:function(){var g=this.containers,b=this.threshold,w=this.config.placeholder,f=this.config.mod===p.MANUAL,h,x,c,d,a,e,i,y=[];for(h=0,x=g.length;h<x;++h){c=g[h].getElementsByTagName("img");for(d=0,a=c.length;d<a;++d){e=c[d];i=e.getAttribute(s);if(f){if(i){e.src=w;y.push(e)}}else{if(m.getY(e)>b&&!i){e.setAttribute(s,e.src);e.src=w;y.push(e)}}}}return y},_loadImgs:function(a){var h=m.getDocumentScrollTop();if(!a&&h<=this.config.diff){return}var e=this.images,d=this.threshold+h,b,c,f,g=[];for(b=0,c;c=e[b++];){if(m.getY(c)<=d){f=c.getAttribute(s);if(f&&c.src!=f){c.src=f;c.removeAttribute(s)}}else{g.push(c)}}this.images=g}});KISSY.ImageLazyload=q})();if(!Array.prototype.indexOf){Array.prototype.indexOf=function(f,d){if(d==null){d=0}else{if(d<0){d=Math.max(0,this.length+d)}}for(var e=d;e<this.length;e++){if(this[e]===f){return e}}return -1}}if(!Array.prototype.lastIndexOf){Array.prototype.lastIndexOf=function(f,d){if(d==null){d=this.length-1}else{if(d<0){d=Math.max(0,this.length+d)}}for(var e=d;e>=0;e--){if(this[e]===f){return e}}return -1}}if(!Array.prototype.forEach){Array.prototype.forEach=function(e){var f=this.length;if(typeof e!="function"){throw new TypeError()}var g=arguments[1];for(var h=0;h<f;h++){if(h in this){e.call(g,this[h],h,this)}}}}if(!Array.prototype.filter){Array.prototype.filter=function(g){var h=this.length;if(typeof g!="function"){throw new TypeError()}var j=[];var k=arguments[1];for(var l=0;l<h;l++){if(l in this){var i=this[l];if(g.call(k,i,l,this)){j.push(i)}}}return j}}if(!Array.prototype.map){Array.prototype.map=function(f){var g=this.length;if(typeof f!="function"){throw new TypeError()}var h=new Array(g);var i=arguments[1];for(var j=0;j<g;j++){if(j in this){h[j]=f.call(i,this[j],j,this)}}return h}}if(!Array.prototype.some){Array.prototype.some=function(e){var f=this.length;if(typeof e!="function"){throw new TypeError()}var g=arguments[1];for(var h=0;h<f;h++){if(h in this&&e.call(g,this[h],h,this)){return true}}return false}}if(!Array.prototype.every){Array.prototype.every=function(e){var f=this.length;if(typeof e!="function"){throw new TypeError()}var g=arguments[1];for(var h=0;h<f;h++){if(h in this&&!e.call(g,this[h],h,this)){return false}}return true}}Array.prototype.copy=function(){var e=this.length;var f=new Array(e);for(var d=0;d<e;d++){f[d]=this[d]}return f};Array.prototype.remove=function(d){var c=this.indexOf(d);return(c!=-1)?this.splice(c,1):false};(function(){["indexOf","lastIndexOf","forEach","filter","map","some","every","copy"].forEach(function(b){if(!Array[b]){Array[b]=function(a){return Array.prototype[b].apply(a,Array.prototype.slice.call(arguments,1))}}})})();if(!String.prototype.toQueryParams){String.prototype.toQueryParams=function(){var k={};var j=this.split("&");var m=/([^=]*)=(.*)/;for(var h=0;h<j.length;h++){var i=m.exec(j[h]);if(!i){continue}var o=decodeURIComponent(i[1]);var l=i[2]?decodeURIComponent(i[2]):undefined;if(k[o]!==undefined){if(k[o].constructor!=Array){k[o]=[k[o]]}if(l){k[o].push(l)}}else{k[o]=l}}return k}}if(!String.prototype.trim){String.prototype.trim=function(){var b=/^\s+|\s+$/g;return function(){return this.replace(b,"")}}()}if(!String.prototype.replaceAll){String.prototype.replaceAll=function(c,d){return this.replace(new RegExp(c,"gm"),d)}}Math.randomInt=function(b){return Math.floor(Math.random()*(b+1))};$D=YAHOO.util.Dom;$E=YAHOO.util.Event;$=$D.get;TB=YAHOO.namespace("TB");TB.namespace=function(){var d=Array.prototype.slice.call(arguments,0),c;for(c=0;c<d.length;++c){if(d[c].indexOf("TB")!=0){d[c]="TB."+d[c]}}return YAHOO.namespace.apply(null,d)};TB.namespace("env");TB.env={hostname:"taobao.com",debug:false,yuipath:"http://a.tbcdn.cn/yui/2.7.0/",lang:"zh-cn"};TB.namespace("locale");TB.locale={Messages:{},getMessage:function(b){return TB.locale.Messages[b]||b},setMessage:function(d,c){TB.locale.Messages[d]=c}};$M=TB.locale.getMessage;TB.trace=function(b){if(!TB.env.debug){return}if(window.console){window.console.debug(b)}else{alert(b)}};TB.init=function(){this.namespace("widget","dom","bom","util","form","anim");if(location.hostname.indexOf("taobao.com")==-1){TB.env.hostname=location.hostname;TB.env.debug=true}var g=document.getElementsByTagName("script");var j=/tbra(?:[\w\.\-]*?)\.js(?:$|\?(.*))/;var h;for(var f=0;f<g.length;++f){if(h=j.exec(g[f].src)){TB.env.path=g[f].src.substring(0,h.index);if(h[1]){var i=h[1].toQueryParams();for(n in i){if(n=="t"||n=="timestamp"){TB.env.timestamp=parseInt(i[n]);continue}TB.env[n]=i[n]}}}}YAHOO.util.Get.css(TB.env.path+"assets/tbra.css"+(TB.env.timestamp?"?t="+TB.env.timestamp+".css":""))};TB.init();TB.locale.Messages={loading:"\u52a0\u8f7d\u4e2d...",pleaseWait:"\u6b63\u5728\u5904\u7406\uff0c\u8bf7\u7a0d\u5019...",ajaxError:"\u5bf9\u4e0d\u8d77\uff0c\u53ef\u80fd\u56e0\u4e3a\u7f51\u7edc\u6545\u969c\u5bfc\u81f4\u7cfb\u7edf\u53d1\u751f\u5f02\u5e38\u9519\u8bef\uff01",prevPageText:"\u4e0a\u4e00\u9875",nextPageText:"\u4e0b\u4e00\u9875",year:"\u5e74",month:"\u6708",day:"\u5929",hour:"\u5c0f\u65f6",minute:"\u5206\u949f",second:"\u79d2",timeoutText:"\u65f6\u95f4\u5230"};(function(){var l=navigator.userAgent.toLowerCase();var h=l.indexOf("opera")!=-1,j=l.indexOf("safari")!=-1,i=!h&&!j&&l.indexOf("gecko")>-1,o=!h&&l.indexOf("msie")!=-1,k=!h&&l.indexOf("msie 6")!=-1,m=!h&&l.indexOf("msie 7")!=-1;TB.bom={isOpera:h,isSafari:j,isGecko:i,isIE:o,isIE6:k,isIE7:m,getCookie:function(b){var a=document.cookie.match("(?:^|;)\\s*"+b+"=([^;]*)");return a?unescape(a[1]):""},setCookie:function(d,b,f,c,a){b=escape(b);b+=(c)?"; domain="+c:"";b+=(a)?"; path="+a:"";if(f){var e=new Date();e.setTime(e.getTime()+(f*86400000));b+="; expires="+e.toGMTString()}document.cookie=d+"="+b},removeCookie:function(a){this.setCookie(a,"",-1)},pickDocumentDomain:function(){var a=arguments[1]||location.hostname;var b=a.split("."),d=b.length;var c=arguments[0]||(d<3?0:1);if(c>=d||d-c<2){c=d-2}return b.slice(c).join(".")},addBookmark:function(a,b){if(window.sidebar){window.sidebar.addPanel(a,b,"")}else{if(window.external){window.external.AddFavorite(b,a)}else{}}}}})();TB.util.Indicator=new function(){var h=YAHOO.util,g=h.Dom,j=h.Lang;var f={message:"loading",useShim:false,useIFrame:false,centerIndicator:true};var i=function(c,d){var a=document.createElement("div");a.className="tb-indic-shim";g.setStyle(a,"display","none");c.parentNode.insertBefore(a,c);if(d){var b=document.createElement("iframe");b.setAttribute("frameBorder",0);b.className="tb-indic-shim-iframe";c.parentNode.insertBefore(b,c)}return a};this.attach=function(b,d){b=g.get(b);d=j.merge(f,d||{});var e=document.createElement("div");e.className="tb-indic";g.setStyle(e,"display","none");g.setStyle(e,"position","static");e.innerHTML="<span>"+$M(d.message)+"</span>";if(d.useShim){var a=i(b,d.useIFrame);a.appendChild(e)}else{b.parentNode.insertBefore(e,b)}var c={};c.show=function(q){if(d.useShim){var r=g.getRegion(b);var s=e.parentNode;g.setStyle(s,"display","block");g.setXY(s,[r[0],r[1]]);g.setStyle(s,"width",(r.right-r.left)+"px");g.setStyle(s,"height",(r.bottom-r.top)+"px");if(d.useIFrame){var p=s.nextSibling;g.setStyle(p,"width",(r.right-r.left)+"px");g.setStyle(p,"height",(r.bottom-r.top)+"px");g.setStyle(p,"display","block")}g.setStyle(e,"display","block");g.setStyle(e,"position","absolute");if(d.centerIndicator){g.setStyle(e,"top","50%");g.setStyle(e,"left","50%");e.style.marginTop=-(e.offsetHeight/2)+"px";e.style.marginLeft=-(e.offsetWidth/2)+"px"}}else{g.setStyle(e,"display","");if(q){g.setStyle(e,"position","absolute");g.setXY(e,q)}}};c.hide=function(){if(d.useShim){var m=e.parentNode;g.setStyle(e,"display","none");g.setStyle(m,"display","none");if(d.useIFrame){g.setStyle(e.parentNode.nextSibling,"display","none")}try{if(d.useIFrame){m.parentNode.removeChild(m.nextSibling)}m.parentNode.removeChild(m)}catch(o){}}else{g.setStyle(e,"display","none");try{e.parentNode.removeChild(e)}catch(o){}}};return c}};TB.util.CountdownTimer=new function(){var s=YAHOO.util,o=s.Dom,m=s.Lang;var r=60;var q=r*60;var p=q*24;var l={formatStyle:"short",formatPattern:"",hideZero:true,timeoutText:"timeoutText",updatable:true};var j=function(a){return((a<10)?"0":"")+a};var k=function(a){return function(c,b){switch(c){case"d":return parseInt(a/p);case"dd":return j(parseInt(a/p));case"hh":return j(parseInt(a%p/q));case"h":return parseInt(a%p/q);case"mm":return j(parseInt(a%p%q/r));case"m":return parseInt(a%p%q/r);case"ss":return j(parseInt(a%p%q%r));case"s":return parseInt(a%p%q%r)}}};this.attach=function(h,g,e){h=o.get(h);g=parseInt(g);e=m.merge(l,e||{});var b={};var a=new s.CustomEvent("onStart",null,false,s.CustomEvent.FLAT);if(e.onStart){a.subscribe(e.onStart)}var f=new s.CustomEvent("onEnd",null,false,s.CustomEvent.FLAT);if(e.onEnd){f.subscribe(e.onEnd)}var d=parseInt(new Date().getTime()/1000);var c=d+g;var i=function(){b.update()};b.update=function(){var x=e.formatPattern,z={},y=1;if(e.formatStyle=="long"){x="lnjtnvd"+$M("day")+"{hh}"+$M("hour")+"{mm}"+$M("minute")+"{ss}"+$M("second")}var A=c-parseInt(new Date().getTime()/1000);if(A<=0){h.innerHTML=$M(e.timeoutText);f.fire();return}else{if(A>p){if(e.formatStyle=="short"){x="xzjfpxf"+$M("day")+"{hh}"+$M("hour");y=Math.floor(A%p%q)||q}}else{if(A>q){if(e.formatStyle=="short"){x="{hh}"+$M("hour")+"{mm}"+$M("minute");y=Math.floor(A%q%r)||r}else{if(e.formatStyle=="long"&&e.hideZero){x="{hh}"+$M("hour")+"{mm}"+$M("minute")+"{ss}"+$M("second")}}}else{if(A>0){if(e.formatStyle=="shor
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -