dom-min.js revision 7bd6c48178788dd4f19fa028e0294192ee2c7278
279N/AYUI.add("dom",function(r){var O="nodeType",AC="ownerDocument",S="documentElement",AA="defaultView",AI="parentWindow",AU="tagName",C="parentNode",m="firstChild",p="lastChild",w="previousSibling",Aa="nextSibling",AL="contains",AK="compareDocumentPosition",l="innerText",L="textContent",x="length",y=undefined;var Z=/<([a-z]+)/i;var AM={};r.DOM={byId:function(Ae,Y){Y=Y||r.config.doc;return Y.getElementById(Ae);},getText:function(Y){var Ae=Y?Y[L]:"";if(Ae===y&&l in Y){Ae=Y[l];}return Ae||"";},firstChild:function(Y,Ae){return r.DOM._childBy(Y,null,Ae);},firstChildByTag:function(Ae,Y,Af){return r.DOM._childBy(Ae,Y,Af);},lastChild:function(Y,Ae){return r.DOM._childBy(Y,null,Ae,true);},lastChildByTag:function(Ae,Y,Af){return r.DOM._childBy(Ae,Y,Af,true);},_childrenByTag:function(){if(document[S].children){return function(Ag,Ae,Ah,Af){Ae=(Ae&&Ae!=="*")?Ae:null;var Ai=[],Y=Ah;if(Ag){if(Ae&&!r.UA.webkit){Ai=Ag.children.tags(Ae);}else{Y=function(Aj){return Aj[AU].toUpperCase()===Ae&&(!Ah||Ah(Aj));};}if(Ah||Af){Ai=r.DOM.filterElementsBy(Ai,Y);}}return Ai;};}else{return function(Af,Ae,Ag){Ae=(Ae&&Ae!=="*")?Ae.toUpperCase():null;var Ah=[],Y=Ag;if(Af){Ah=Af.childNodes;if(Ae){Y=function(Ai){return Ai[AU].toUpperCase()===Ae&&(!Ag||Ag(Ai));};}Ah=r.DOM.filterElementsBy(Ah,Y);}return Ah;};}}(),children:function(Y,Ae){return r.DOM._childrenByTag(Y,null,Ae);},previous:function(Y,Af,Ae){return r.DOM.elementByAxis(Y,w,Af,Ae);},next:function(Y,Af,Ae){return r.DOM.elementByAxis(Y,Aa,Af,Ae);},ancestor:function(Y,Af,Ae){return r.DOM.elementByAxis(Y,C,Af,Ae);},elementByAxis:function(Y,Ag,Af,Ae){while(Y&&(Y=Y[Ag])){if((Ae||Y[AU])&&(!Af||Af(Y))){return Y;}}return null;},byTag:function(Ae,Af,Ai){Af=Af||r.config.doc;var Aj=Af.getElementsByTagName(Ae),Ah=[];for(var Ag=0,Y=Aj[x];Ag<Y;++Ag){if(!Ai||Ai(Aj[Ag])){Ah[Ah[x]]=Aj[Ag];}}return Ah;},firstByTag:function(Ae,Af,Ai){Af=Af||r.config.doc;var Aj=Af.getElementsByTagName(Ae),Ag=null;for(var Ah=0,Y=Aj[x];Ah<Y;++Ah){if(!Ai||Ai(Aj[Ah])){Ag=Aj[Ah];break;}}return Ag;},filterElementsBy:function(Ai,Ah,Ag){var Ae=(Ag)?null:[];for(var Af=0,Y=Ai[x];Af<Y;++Af){if(Ai[Af][AU]&&(!Ah||Ah(Ai[Af]))){if(Ag){Ae=Ai[Af];break;}else{Ae[Ae[x]]=Ai[Af];}}}return Ae;},contains:function(Ae,Af){var Y=false;if(!Af||!Ae||!Af[O]||!Ae[O]){Y=false;}else{if(Ae[AL]){if(r.UA.opera||Af[O]===1){Y=Ae[AL](Af);}else{Y=r.DOM._bruteContains(Ae,Af);}}else{if(Ae[AK]){if(Ae===Af||!!(Ae[AK](Af)&16)){Y=true;}}}}return Y;},inDoc:function(Y,Ae){Ae=Ae||r.config.doc;return r.DOM.contains(Ae.documentElement,Y);},create:function(Ah,Aj){Aj=Aj||r.config.doc;var Ae=Z.exec(Ah);var Ag=r.DOM._create,Ai=r.DOM.creators,Y,Af;if(Ae&&Ai[Ae[1]]){if(typeof Ai[Ae[1]]==="function"){Ag=Ai[Ae[1]];}else{Y=Ai[Ae[1]];}}Af=Ag(Ah,Aj,Y);return(Af.childNodes.length>1)?Af.childNodes:Af.childNodes[0];},CUSTOM_ATTRIBUTES:(!document.documentElement.hasAttribute)?{"for":"htmlFor","class":"className"}:{"htmlFor":"for","className":"class"},setAttribute:function(Ae,Y,Af){Y=r.DOM.CUSTOM_ATTRIBUTES[Y]||Y;Ae.setAttribute(Y,Af);},getAttribute:function(Af,Y){Y=r.DOM.CUSTOM_ATTRIBUTES[Y]||Y;var Ae=Af.getAttribute(Y);if(!document.documentElement.hasAttribute){if(Af.getAttributeNode){Ae=Af.getAttributeNode(Y);Ae=(Ae)?Ae.value:null;}else{Ae=Af.getAttribute(Y);}}if(Ae===null){Ae="";}return Ae;},srcIndex:(document.documentElement.sourceIndex)?function(Y){return(Y&&Y.sourceIndex)?Y.sourceIndex:null;}:function(Y){return(Y&&Y[AC])?[].indexOf.call(Y[AC].getElementsByTagName("*"),Y):null;},_create:function(Ae,Af,Y){Y=Y||"div";var Ag=AM[Y]||Af.createElement(Y);Ag.innerHTML=r.Lang.trim(Ae);return Ag;},_bruteContains:function(Y,Ae){while(Ae){if(Y===Ae){return true;}Ae=Ae.parentNode;}return false;},_getRegExp:function(Ae,Y){Y=Y||"";r.DOM._regexCache=r.DOM._regexCache||{};if(!r.DOM._regexCache[Ae+Y]){r.DOM._regexCache[Ae+Y]=new RegExp(Ae,Y);}return r.DOM._regexCache[Ae+Y];},_getDoc:function(Y){Y=Y||{};return(Y[O]===9)?Y:Y[AC]||Y.document||r.config.doc;},_getWin:function(Y){var Ae=r.DOM._getDoc(Y);return Ae[AA]||Ae[AI]||r.config.win;},_childBy:function(Ah,Y,Aj,Af){var Ag=null,Ae,Ai;if(Ah){if(Af){Ae=Ah[p];Ai=w;}else{Ae=Ah[m];Ai=Aa;}if(r.DOM._testElement(Ae,Y,Aj)){Ag=Ae;}else{Ag=r.DOM.elementByAxis(Ae,Ai,Aj);}}return Ag;},_testElement:function(Ae,Y,Af){Y=(Y&&Y!=="*")?Y.toUpperCase():null;return(Ae&&Ae[AU]&&(!Y||Ae[AU].toUpperCase()===Y)&&(!Af||Af(Ae)));},creators:{},_IESimpleCreate:function(Y,Ae){Ae=Ae||r.config.doc;return Ae.createElement(Y);}};(function(){var Ah=r.DOM.creators,Y=r.DOM.create,Ag=/(?:\/(?:thead|tfoot|tbody|caption|col|colgroup)>)+\s*<tbody/;var Af="<table>",Ae="</table>";if(r.UA.gecko||r.UA.ie){r.mix(Ah,{option:function(Ai,Aj){var Ak=Y("<select>"+Ai+"</select>");return Ak;},tr:function(Ai,Aj){var Ak=Ah.tbody("<tbody>"+Ai+"</tbody>",Aj);return Ak.firstChild;},td:function(Ai,Aj){var Ak=Ah.tr("<tr>"+Ai+"</tr>",Aj);return Ak.firstChild;},tbody:function(Ai,Aj){var Ak=Y(Af+Ai+Ae,Aj);return Ak;},legend:"fieldset"});Ah.col=Ah.tbody;}if(r.UA.ie){Ah.col=Ah.script=Ah.link=r.DOM._IESimpleCreate;Ah.tbody=function(Aj,Ak){var Al=Y(Af+Aj+Ae,Ak);var Ai=Al.children.tags("tbody")[0];if(Al.children.length>1&&Ai&&!Ag.test(Aj)){Ai.parentNode.removeChild(Ai);}return Al;};}if(r.UA.gecko||r.UA.ie){r.mix(Ah,{th:Ah.td,thead:Ah.tbody,tfoot:Ah.tbody,caption:Ah.tbody,colgroup:Ah.tbody,col:Ah.tbody,optgroup:Ah.option});}})();var AJ="className";r.mix(r.DOM,{hasClass:function(Af,Ae){var Y=r.DOM._getRegExp("(?:^|\\s+)"+Ae+"(?:\\s+|$)");return Y.test(Af[AJ]);},addClass:function(Ae,Y){if(!r.DOM.hasClass(Ae,Y)){Ae[AJ]=r.Lang.trim([Ae[AJ],Y].join(" "));}},removeClass:function(Ae,Y){if(Y&&r.DOM.hasClass(Ae,Y)){Ae[AJ]=r.Lang.trim(Ae[AJ].replace(r.DOM._getRegExp("(?:^|\\s+)"+Y+"(?:\\s+|$)")," "));if(r.DOM.hasClass(Ae,Y)){r.DOM.removeClass(Ae,Y);}}},replaceClass:function(Ae,Y,Af){r.DOM.addClass(Ae,Af);r.DOM.removeClass(Ae,Y);},toggleClass:function(Ae,Y){if(r.DOM.hasClass(Ae,Y)){r.DOM.removeClass(Ae,Y);}else{r.DOM.addClass(Ae,Y);}}});var S="documentElement",AA="defaultView",AC="ownerDocument",E="style",a="float",n="cssFloat",M="styleFloat",AE="transparent",u="visible",d="width",AP="height",V="borderTopWidth",T="borderRightWidth",B="borderBottomWidth",g="borderLeftWidth",AH="getComputedStyle",AT=r.config.doc,y=undefined,Q=/color$/i;
279N/Ar.mix(r.DOM,{CUSTOM_STYLES:{},setStyle:function(Af,Y,Ag,Ae){Ae=Af[E],CUSTOM_STYLES=r.DOM.CUSTOM_STYLES;if(Ae){if(Y in CUSTOM_STYLES){if(CUSTOM_STYLES[Y].set){CUSTOM_STYLES[Y].set(Af,Ag,Ae);return;}else{if(typeof CUSTOM_STYLES[Y]==="string"){Y=CUSTOM_STYLES[Y];}}}Ae[Y]=Ag;}},getStyle:function(Ag,Y){var Af=Ag[E],Ae=r.DOM.CUSTOM_STYLES,Ah="";if(Af){if(Y in Ae){if(Ae[Y].get){return Ae[Y].get(Ag,Y,Af);}else{if(typeof Ae[Y]==="string"){Y=Ae[Y];}}}Ah=Af[Y];if(Ah===""){Ah=r.DOM[AH](Ag,Y);}}return Ah;},setStyles:function(Y,Ae){r.each(Ae,function(Af,Ag){r.DOM.setStyle(Y,Ag,Af);},r.DOM);},getComputedStyle:function(Ae,Y){var Ag="",Af=Ae[AC];if(Ae[E]){Ag=Af[AA][AH](Ae,"")[Y];}return Ag;}});if(AT[S][E][n]!==y){r.DOM.CUSTOM_STYLES[a]=n;}else{if(AT[S][E][M]!==y){r.DOM.CUSTOM_STYLES[a]=M;}}if(r.UA.opera){r.DOM[AH]=function(Af,Ae){var Y=Af[AC][AA],Ag=Y[AH](Af,"")[Ae];if(Q.test(Ae)){Ag=r.Color.toRGB(Ag);}return Ag;};}if(r.UA.webkit){r.DOM[AH]=function(Af,Ae){var Y=Af[AC][AA],Ag=Y[AH](Af,"")[Ae];if(Ag==="rgba(0, 0, 0, 0)"){Ag=AE;}return Ag;};}var D="offsetTop",S="documentElement",i="compatMode",AG="offsetLeft",AF="offsetParent",K="position",f="fixed",J="relative",A="left",I="top",Ad="scrollLeft",v="scrollTop",AD="BackCompat",R="medium",AP="height",d="width",g="borderLeftWidth",V="borderTopWidth",X="getBoundingClientRect",AH="getComputedStyle",AS=/^t(?:able|d|h)$/i;r.mix(r.DOM,{winHeight:function(Ae){var Y=r.DOM._getWinSize(Ae)[AP];return Y;},winWidth:function(Ae){var Y=r.DOM._getWinSize(Ae)[d];return Y;},docHeight:function(Ae){var Y=r.DOM._getDocSize(Ae)[AP];return Math.max(Y,r.DOM._getWinSize(Ae)[AP]);},docWidth:function(Ae){var Y=r.DOM._getDocSize(Ae)[d];return Math.max(Y,r.DOM._getWinSize(Ae)[d]);},docScrollX:function(Y){var Ae=r.DOM._getDoc(Y);return Math.max(Ae[S][Ad],Ae.body[Ad]);},docScrollY:function(Y){var Ae=r.DOM._getDoc(Y);return Math.max(Ae[S][v],Ae.body[v]);},getXY:function(){if(document[S][X]){return function(Ag){if(!Ag){return false;}var Ah=r.DOM.docScrollX(Ag),Ae=r.DOM.docScrollY(Ag),Ai=Ag[X](),Am=r.DOM._getDoc(Ag),An=[Math.floor(Ai[A]),Math.floor(Ai[I])];if(r.UA.ie){var Al=2,Ak=2,Aj=Am[i],Y=r.DOM[AH](Am[S],g),Af=r.DOM[AH](Am[S],V);if(r.UA.ie===6){if(Aj!==AD){Al=0;Ak=0;}}if((Aj==AD)){if(Y!==R){Al=parseInt(Y,10);}if(Af!==R){Ak=parseInt(Af,10);}}An[0]-=Al;An[1]-=Ak;}if((Ae||Ah)){An[0]+=Ah;An[1]+=Ae;}An[0]=Math.floor(An[0]);An[1]=Math.floor(An[1]);return An;};}else{return function(Ae){var Ag=[Ae[AG],Ae[D]],Y=Ae,Ai=((r.UA.gecko||r.UA.webkit>519)?true:false);while((Y=Y[AF])){Ag[0]+=Y[AG];Ag[1]+=Y[D];if(Ai){Ag=r.DOM._calcBorders(Y,Ag);}}if(r.DOM.getStyle(Ae,K)!=f){Y=Ae;var Af,Ah;while((Y=Y.parentNode)){Af=Y[v];Ah=Y[Ad];if(r.UA.gecko&&(r.DOM.getStyle(Y,"overflow")!=="visible")){Ag=r.DOM._calcBorders(Y,Ag);}if(Af||Ah){Ag[0]-=Ah;Ag[1]-=Af;}}Ag[0]+=r.DOM.docScrollX(Ae);Ag[1]+=r.DOM.docScrollY(Ae);}else{if(r.UA.opera){Ag[0]-=r.DOM.docScrollX(Ae);Ag[1]-=r.DOM.docScrollY(Ae);}else{if(r.UA.webkit||r.UA.gecko){Ag[0]+=r.DOM.docScrollX(Ae);Ag[1]+=r.DOM.docScrollY(Ae);}}}Ag[0]=Math.floor(Ag[0]);Ag[1]=Math.floor(Ag[1]);return Ag;};}}(),getX:function(Y){return r.DOM.getXY(Y)[0];},getY:function(Y){return r.DOM.getXY(Y)[1];},setXY:function(Ae,Ah,Ak){var Aj=r.DOM.getStyle(Ae,K),Af=r.DOM.setStyle,Ai=[parseInt(r.DOM[AH](Ae,A),10),parseInt(r.DOM[AH](Ae,I),10)];if(Aj=="static"){Aj=J;Af(Ae,K,Aj);}var Ag=r.DOM.getXY(Ae);if(Ag===false){return false;}if(isNaN(Ai[0])){Ai[0]=(Aj==J)?0:Ae[AG];}if(isNaN(Ai[1])){Ai[1]=(Aj==J)?0:Ae[D];}if(Ah[0]!==null){Af(Ae,A,Ah[0]-Ag[0]+Ai[0]+"px");}if(Ah[1]!==null){Af(Ae,I,Ah[1]-Ag[1]+Ai[1]+"px");}if(!Ak){var Y=r.DOM.getXY(Ae);if((Ah[0]!==null&&Y[0]!=Ah[0])||(Ah[1]!==null&&Y[1]!=Ah[1])){r.DOM.setXY(Ae,Ah,true);}}},setX:function(Ae,Y){return r.DOM.setXY(Ae,[Y,null]);},setY:function(Y,Ae){return r.DOM.setXY(Y,[null,Ae]);},_calcBorders:function(Af,Ag){var Ae=parseInt(r.DOM[AH](Af,V),10)||0,Y=parseInt(r.DOM[AH](Af,g),10)||0;if(r.UA.gecko){if(AS.test(Af.tagName)){Ae=0;Y=0;}}Ag[0]+=Y;Ag[1]+=Ae;return Ag;},_getWinSize:function(Ag){var Ai=r.DOM._getDoc(),Ah=Ai.defaultView||Ai.parentWindow,Aj=Ai[i],Af=Ah.innerHeight,Ae=Ah.innerWidth,Y=Ai[S];if(Aj&&!r.UA.opera){if(Aj!="CSS1Compat"){Y=Ai.body;}Af=Y.clientHeight;Ae=Y.clientWidth;}return{height:Af,width:Ae};},_getDocSize:function(Ae){var Af=r.DOM._getDoc(),Y=Af[S];if(Af[i]!="CSS1Compat"){Y=Af.body;}return{height:Y.scrollHeight,width:Y.scrollWidth};}});var AW="offsetWidth",c="offsetHeight",I="top",H="right",AO="bottom",A="left",AU="tagName";var Ab=function(Ag,Af){var Ai=Math.max(Ag[I],Af[I]),Aj=Math.min(Ag[H],Af[H]),Y=Math.min(Ag[AO],Af[AO]),Ae=Math.max(Ag[A],Af[A]),Ah={};Ah[I]=Ai;Ah[H]=Aj;Ah[AO]=Y;Ah[A]=Ae;return Ah;};var z=z||r.DOM;r.mix(z,{region:function(Af){var Y=z.getXY(Af),Ae=false;if(Y){Ae={"0":Y[0],"1":Y[1],top:Y[1],right:Y[0]+Af[AW],bottom:Y[1]+Af[c],left:Y[0],height:Af[c],width:Af[AW]};}return Ae;},intersect:function(Af,Y,Ah){var Ae=Ah||z.region(Af),Ag={};var Aj=Y;if(Aj[AU]){Ag=z.region(Aj);}else{if(r.Lang.isObject(Y)){Ag=Y;}else{return false;}}var Ai=Ab(Ag,Ae);return{top:Ai[I],right:Ai[H],bottom:Ai[AO],left:Ai[A],area:((Ai[AO]-Ai[I])*(Ai[H]-Ai[A])),yoff:((Ai[AO]-Ai[I])),xoff:(Ai[H]-Ai[A]),inRegion:z.inRegion(Af,Y,false,Ah)};},inRegion:function(Ag,Y,Ae,Ai){var Ah={},Af=Ai||z.region(Ag);var Ak=Y;if(Ak[AU]){Ah=z.region(Ak);}else{if(r.Lang.isObject(Y)){Ah=Y;}else{return false;}}if(Ae){return(Af[A]>=Ah[A]&&Af[H]<=Ah[H]&&Af[I]>=Ah[I]&&Af[AO]<=Ah[AO]);}else{var Aj=Ab(Ah,Af);if(Aj[AO]>=Aj[I]&&Aj[H]>=Aj[A]){return true;}else{return false;}}},inViewportRegion:function(Ae,Y,Af){return z.inRegion(Ae,z.viewportRegion(Ae),Y,Af);},viewportRegion:function(Ae){Ae=Ae||r.config.doc.documentElement;var Y={};Y[I]=z.docScrollY(Ae);Y[H]=z.winWidth(Ae)+z.docScrollX(Ae);Y[AO]=(z.docScrollY(Ae)+z.winHeight(Ae));Y[A]=z.docScrollX(Ae);return Y;}});var AN="clientTop",h="clientLeft",C="parentNode",H="right",s="hasLayout",t="px",AZ="filter",AY="filters",q="opacity",Ac="auto",e="currentStyle";if(document[S][E][q]===y&&document[S][AY]){r.DOM.CUSTOM_STYLES[q]={get:function(Ae){var Ag=100;
279N/Atry{Ag=Ae[AY]["DXImageTransform.Microsoft.Alpha"][q];}catch(Af){try{Ag=Ae[AY]("alpha")[q];}catch(Y){}}return Ag/100;},set:function(Ae,Af,Y){if(typeof Y[AZ]=="string"){Y[AZ]="alpha("+q+"="+Af*100+")";if(!Ae[e]||!Ae[e][s]){Y.zoom=1;}}}};}var AV=/^width|height$/,j=/^(\d[.\d]*)+(em|ex|px|gd|rem|vw|vh|vm|ch|mm|cm|in|pt|pc|deg|rad|ms|s|hz|khz|%){1}?/i;var AB={CUSTOM_STYLES:{},get:function(Y,Af){var Ae="",Ag=Y[e][Af];if(Af===q){Ae=r.DOM.CUSTOM_STYLES[q].get(Y);}else{if(!Ag||(Ag.indexOf&&Ag.indexOf(t)>-1)){Ae=Ag;}else{if(r.DOM.IE.COMPUTED[Af]){Ae=r.DOM.IE.COMPUTED[Af](Y,Af);}else{if(j.test(Ag)){Ae=r.DOM.IE.ComputedStyle.getPixel(Y,Af);}else{Ae=Ag;}}}}return Ae;},getOffset:function(Af,Ak){var Ah=Af[e][Ak],Y=Ak.charAt(0).toUpperCase()+Ak.substr(1),Ai="offset"+Y,Ae="pixel"+Y,Ag="";if(Ah==Ac){var Aj=Af[Ai];if(Aj===y){Ag=0;}Ag=Aj;if(AV.test(Ak)){Af[E][Ak]=Aj;if(Af[Ai]>Aj){Ag=Aj-(Af[Ai]-Aj);}Af[E][Ak]=Ac;}}else{if(!Af[E][Ae]&&!Af[E][Ak]){Af[E][Ak]=Ah;}Ag=Af[E][Ae];}return Ag+t;},getBorderWidth:function(Y,Af){var Ae=null;if(!Y[e][s]){Y[E].zoom=1;}switch(Af){case V:Ae=Y[AN];break;case B:Ae=Y.offsetHeight-Y.clientHeight-Y[AN];break;case g:Ae=Y[h];break;case T:Ae=Y.offsetWidth-Y.clientWidth-Y[h];break;}return Ae+t;},getPixel:function(Ae,Y){var Ag=null,Ah=Ae[e][H],Af=Ae[e][Y];Ae[E][H]=Af;Ag=Ae[E].pixelRight;Ae[E][H]=Ah;return Ag+t;},getMargin:function(Ae,Y){var Af;if(Ae[e][Y]==Ac){Af=0+t;}else{Af=r.DOM.IE.ComputedStyle.getPixel(Ae,Y);}return Af;},getVisibility:function(Ae,Y){var Af;while((Af=Ae[e])&&Af[Y]=="inherit"){Ae=Ae[C];}return(Af)?Af[Y]:u;},getColor:function(Ae,Y){var Af=Ae[e][Y];if(!Af||Af===AE){r.DOM.elementByAxis(Ae,C,null,function(Ag){Af=Ag[e][Y];if(Af&&Af!==AE){Ae=Ag;return true;}});}return r.Color.toRGB(Af);},getBorderColor:function(Ae,Y){var Af=Ae[e];var Ag=Af[Y]||Af.color;return r.Color.toRGB(r.Color.toHex(Ag));}};var AQ={};AQ[d]=AQ[AP]=AB.getOffset;AQ.color=AQ.backgroundColor=AB.getColor;AQ[V]=AQ[T]=AQ[B]=AQ[g]=AB.getBorderWidth;AQ.marginTop=AQ.marginRight=AQ.marginBottom=AQ.marginLeft=AB.getMargin;AQ.visibility=AB.getVisibility;AQ.borderColor=AQ.borderTopColor=AQ.borderRightColor=AQ.borderBottomColor=AQ.borderLeftColor=AB.getBorderColor;if(!r.config.win[AH]){r.DOM[AH]=AB.get;}r.namespace("DOM.IE");r.DOM.IE.COMPUTED=AQ;r.DOM.IE.ComputedStyle=AB;r.namespace("Selector");var C="parentNode",x="length",F={_reLead:/^\s*([>+~]|:self)/,_reUnSupported:/!./,_foundCache:[],_supportsNative:function(){return((r.UA.ie>=8||r.UA.webkit>525)&&document.querySelectorAll);},_toArray:function(Ae){var Af=Ae;if(!Ae.slice){try{Af=Array.prototype.slice.call(Ae);}catch(Ah){Af=[];for(var Ag=0,Y=Ae[x];Ag<Y;++Ag){Af[Ag]=Ae[Ag];}}}return Af;},_clearFoundCache:function(){var Ag=F._foundCache;for(var Ae=0,Y=Ag[x];Ae<Y;++Ae){try{delete Ag[Ae]._found;}catch(Af){Ag[Ae].removeAttribute("_found");}}Ag=[];},_sort:function(Y){if(Y){Y=F._toArray(Y);if(Y.sort){Y.sort(function(Af,Ae){return r.DOM.srcIndex(Af)-r.DOM.srcIndex(Ae);});}}return Y;},_deDupe:function(Ae){var Af=[],Y=F._foundCache;for(var Ag=0,Ah;Ah=Ae[Ag++];){if(!Ah._found){Af[Af[x]]=Y[Y[x]]=Ah;Ah._found=true;}}F._clearFoundCache();return Af;},_prepQuery:function(Al,Ah){var Af=Ah.split(","),Aj=[],Y=(Al&&Al.nodeType===9),Ag=false,Ae,Am,An;if(Al){if(!Y){Al.id=Al.id||r.guid();for(var Ai=0,Ak=Af[x];Ai<Ak;++Ai){if(F._reLead.test(Af[Ai])){Ae=RegExp.$1;Ag=true;Am=Al;An="#"+Al.id+" "+Af[Ai];if(Ae==="~"||Ae==="+"){if(Al[C]){Am=Al[C];}else{}}}else{Am=Al;An=Af[Ai];}Aj.push({root:Am,selector:An});}}if(!Ag){Aj=[{root:Al,selector:Ah}];}}return Aj;},_query:function(Y,Ak,Al){if(F._reUnSupported.test(Y)){return F._brute.query(Y,Ak,Al);}var Ah=Al?null:[],Ai=Al?"querySelector":"querySelectorAll",Am,Af;Ak=Ak||r.config.doc;if(Y){Af=F._prepQuery(Ak,Y);Ah=[];for(var Ae=0,Aj;Aj=Af[Ae++];){try{Am=Aj.root[Ai](Aj.selector);if(Am&&Am.item){Am=F._toArray(Am);}Ah=Ah.concat(Am);}catch(Ag){}}if(Af[x]>1){Ah=F._sort(F._deDupe(Ah));}Ah=(!Al)?Ah:Ah[0]||null;}return Ah;},_filter:function(Ae,Y){var Af=[];if(Ae&&Y){for(var Ag=0,Ah;(Ah=Ae[Ag++]);){if(r.Selector._test(Ah,Y)){Af[Af[x]]=Ah;}}}else{}return Af;},_test:function(Ag,Y){var Ae=false,Af;if(Ag&&Ag[C]){Ag.id=Ag.id||r.guid();Y+="#"+Ag.id;Af=r.Selector.query(Y,Ag[C],true);Ae=(Af===Ag);}return Ae;}};if(r.UA.ie&&r.UA.ie<=8){F._reUnSupported=/:(?:nth|not|root|only|checked|first|last|empty)/;}r.mix(r.Selector,F,true);if(F._supportsNative()){r.Selector.query=F._query;}r.Selector.test=F._test;r.Selector.filter=F._filter;var C="parentNode",AU="tagName",N="attributes",G="combinator",k="pseudos",o="previous",w="previousSibling",x="length",W=[],AR=r.Selector,AX={SORT_RESULTS:false,_children:function(Af){var Y=Af.children;if(!Y){Y=[];for(var Ae=0,Ag;Ag=Af.childNodes[Ae++];){if(Ag.tagName){Y[Y.length]=Ag;}}W[W.length]=Af;Af.children=Y;}return Y;},_regexCache:{},_re:{attr:/(\[.*\])/g,urls:/^(?:href|src)/},shorthand:{"\\#(-?[_a-z]+[-\\w]*)":"[id=$1]","\\.(-?[_a-z]+[-\\w]*)":"[className~=$1]"},operators:{"":function(Ae,Y){return r.DOM.getAttribute(Ae,Y[0])!=="";},"=":"^{val}$","~=":"(?:^|\\s+){val}(?:\\s+|$)","|=":"^{val}-?"},pseudos:{"first-child":function(Y){return r.Selector._children(Y[C])[0]===Y;}},_brute:{query:function(Y,Ae,Ag){var Af=[];if(Y){Af=AR._query(Y,Ae,Ag);}AR._cleanup();return(Ag)?(Af[0]||null):Af;}},some:function(){return(Array.prototype.some)?function(Y,Af,Ae){return Array.prototype.some.call(Y,Af,Ae);}:function(Y,Ag,Af){for(var Ae=0,Ah;Ah=Y[Ae++];){if(Ag.call(Af,Ah,Ae,Y)){return true;}}return false;};}(),_cleanup:function(){for(var Y=0,Ae;Ae=W[Y++];){delete Ae.children;}W=[];},_query:function(Ah,Am,An,Af){var Ak=[],Ae=Ah.split(","),Y=[],Al,Ag;if(Ae[x]>1){for(var Ai=0,Aj=Ae[x];Ai<Aj;++Ai){Ak=Ak.concat(arguments.callee(Ae[Ai],Am,An,true));}Ak=AR.SORT_RESULT?AR._sort(Ak):Ak;AR._clearFoundCache();}else{Am=Am||r.config.doc;if(Am.nodeType!==9){Ah="#"+Am.id+" selector";Am=Am.ownerDocument;}Al=AR._tokenize(Ah);Ag=Al.pop();if(Ag){if(Al[0]&&Al[0].id){Am=Am.getElementById(Al[0].id);}if(Am&&!Y[x]&&Ag.prefilter){Y=Ag.prefilter(Am,Ag);}if(Y[x]){if(An){AR.some(Y,AR._testToken,Ag);
279N/A}else{r.Array.each(Y,AR._testToken,Ag);}}Ak=Ag.result;}}return Ak;},_testToken:function(Ae,Ai,Y,Af){var Af=Af||this,Ak=Af.tag,Ah=Af[o],Al=Af.result,Ag=0,Aj=Ah&&Ah[G]?AR.combinators[Ah[G]]:null;if((Ak==="*"||Ak===Ae[AU])&&!(Ae._found)){while((attr=Af.tests[Ag])){Ag++;test=attr.test;if(test.test){if(!test.test(Ae[attr.name])){return false;}}else{if(!test(Ae,attr.match)){return false;}}}if(Aj&&!Aj(Ae,Af)){return false;}Al[Al.length]=Ae;return true;}return false;},_getRegExp:function(Af,Y){var Ae=AR._regexCache;Y=Y||"";if(!Ae[Af+Y]){Ae[Af+Y]=new RegExp(Af,Y);}return Ae[Af+Y];},combinators:{" ":function(Af,Y){var Ag=AR._testToken,Ae=Y[o];while((Af=Af[C])){if(Ag(Af,null,null,Ae)){return true;}}return false;},">":function(Ae,Y){return AR._testToken(Ae[C],null,null,Y[o]);},"+":function(Af,Ae){var Y=Af[w];while(Y&&Y.nodeType!==1){Y=Y[w];}if(Y&&r.Selector._testToken(Y,null,null,Ae[o])){return true;}return false;}},_parsers:[{name:AU,re:/^((?:-?[_a-z]+[\w-]*)|\*)/i,fn:function(Ae,Y){Ae.tag=Y[1].toUpperCase();Ae.prefilter=function(Af){return Af.getElementsByTagName(Ae.tag);};return true;}},{name:N,re:/^\[([a-z]+\w*)+([~\|\^\$\*!=]=?)?['"]?([^\]]*?)['"]?\]/i,fn:function(Af,Ae){var Ag=Ae[3],Y=!(Ae[2]&&Ag)?"":Ae[2],Ah=AR.operators[Y];if(typeof Ah==="string"){Ah=AR._getRegExp(Ah.replace("{val}",Ag));}if(Ae[1]==="id"&&Ag){Af.id=Ag;Af.prefilter=function(Ai){var Ak=Ai.nodeType===9?Ai:Ai.ownerDocument,Aj=Ak.getElementById(Ag);return Aj?[Aj]:[];};}else{if(document.documentElement.getElementsByClassName&&Ae[1].indexOf("class")===0){Ah=true;Af.prefilter=function(Ai){return Ai.getElementsByClassName(Ag);};}}return Ah;}},{name:G,re:/^\s*([>+~]|\s)\s*/,fn:function(Ae,Y){Ae[G]=Y[1];return !!AR.combinators[Ae[G]];}},{name:k,re:/^:([\-\w]+)(?:\(['"]?(.+)['"]?\))*/i,fn:function(Ae,Y){return AR[k][Y[1]];}}],_getToken:function(Y){return{previous:Y,combinator:" ",tag:"*",prefilter:function(Ae){return Ae.getElementsByTagName("*");},tests:[],result:[]};},_tokenize:function(Y){Y=Y||"";Y=AR._replaceShorthand(r.Lang.trim(Y));var Ag=AR._getToken(),Ai=[],Ah=false,Ak,Ae;outer:do{Ah=false;for(var Af=0,Aj;Aj=AR._parsers[Af++];){if((Ae=Aj.re.exec(Y))){Ak=Aj.fn(Ag,Ae);if(Ak){if(Ak!==true){Ag.tests.push({name:Ae[1],test:Ak,match:Ae.slice(1)});}Ah=true;Y=Y.replace(Ae[0],"");if(!Y[x]||Aj.name===G){Ai.push(Ag);Ag=AR._getToken(Ag);}}else{Ah=false;break outer;}}}}while(Ah&&Y.length);if(!Ah||Y.length){Ai=[];}return Ai;},_replaceShorthand:function(Ae){var Af=AR.shorthand,Ag=Ae.match(AR._re.attr);if(Ag){Ae=Ae.replace(AR._re.attr,"REPLACED_ATTRIBUTE");}for(var Ai in Af){if(Af.hasOwnProperty(Ai)){Ae=Ae.replace(AR._getRegExp(Ai,"gi"),Af[Ai]);}}if(Ag){for(var Ah=0,Y=Ag[x];Ah<Y;++Ah){Ae=Ae.replace("REPLACED_ATTRIBUTE",Ag[Ah]);}}return Ae;}};r.mix(r.Selector,AX,true);if(!r.Selector._supportsNative()){r.Selector.query=AR._brute.query;}r.Selector._reNth=/^(?:([-]?\d*)(n){1}|(odd|even)$)*([-+]?\d*)$/;r.Selector._getNth=function(Ae,An,Ap,Ai){r.Selector._reNth.test(An);var Am=parseInt(RegExp.$1,10),Y=RegExp.$2,Aj=RegExp.$3,Ak=parseInt(RegExp.$4,10)||0,Ao=[],Ag;var Al=Ae.parentNode.children||AR._children(Ae.parentNode);if(Aj){Am=2;Ag="+";Y="n";Ak=(Aj==="odd")?1:0;}else{if(isNaN(Am)){Am=(Y)?1:0;}}if(Am===0){if(Ai){Ak=Al.length-Ak+1;}if(Al[Ak-1]===Ae){return true;}else{return false;}}else{if(Am<0){Ai=!!Ai;Am=Math.abs(Am);}}if(!Ai){for(var Af=Ak-1,Ah=Al.length;Af<Ah;Af+=Am){if(Af>=0&&Al[Af]===Ae){return true;}}}else{for(var Af=Al.length-Ak,Ah=Al.length;Af>=0;Af-=Am){if(Af<Ah&&Al[Af]===Ae){return true;}}}return false;};r.mix(r.Selector.pseudos,{"root":function(Y){return Y===Y.ownerDocument.documentElement;},"nth-child":function(Ae,Y){return r.Selector._getNth(Ae,Y[1]);},"nth-last-child":function(Ae,Y){return r.Selector._getNth(Ae,Y[1],null,true);},"nth-of-type":function(Ae,Y){return r.Selector._getNth(Ae,Y[1],Ae.tagName);},"nth-last-of-type":function(Ae,Y){return r.Selector._getNth(Ae,Y[1],Ae.tagName,true);},"last-child":function(Ae){var Y=Ae.children||r.Selector._children(Ae.parentNode);return Y[Y.length-1]===Ae;},"first-of-type":function(Y){return r.DOM._childrenByTag(Y.parentNode,Y.tagName)[0];},"last-of-type":function(Ae){var Y=r.DOM._childrenByTag(Ae.parentNode,Ae.tagName);return Y[Y.length-1];},"only-child":function(Ae){var Y=Ae.children||r.Selector._children(Ae.parentNode);return Y.length===1&&Y[0]===Ae;},"only-of-type":function(Y){return r.DOM._childrenByTag(Y.parentNode,Y.tagName).length===1;},"empty":function(Y){return Y.childNodes.length===0;},"not":function(Ae,Y){return !r.Selector.test(Ae,Y[1]);},"contains":function(Ae,Y){var Af=Ae.innerText||Ae.textContent||"";return Af.indexOf(Y[1])>-1;},"checked":function(Y){return Y.checked===true;}});r.mix(r.Selector.operators,{"^=":"^{val}","$=":"{val}$","*=":"{val}"});r.Selector.combinators["~"]=function(Af,Ae){var Y=Af.previousSibling;while(Y){if(Y.nodeType===1&&r.Selector._testToken(Y,null,null,Ae.previous)){return true;}Y=Y.previousSibling;}return false;};var U="toString",P=parseInt,b=RegExp;r.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(Y){if(!r.Color.re_RGB.test(Y)){Y=r.Color.toHex(Y);}if(r.Color.re_hex.exec(Y)){Y="rgb("+[P(b.$1,16),P(b.$2,16),P(b.$3,16)].join(", ")+")";}return Y;},toHex:function(Ag){Ag=r.Color.KEYWORDS[Ag]||Ag;if(r.Color.re_RGB.exec(Ag)){var Af=(b.$1.length===1)?"0"+b.$1:Number(b.$1),Ae=(b.$2.length===1)?"0"+b.$2:Number(b.$2),Y=(b.$3.length===1)?"0"+b.$3:Number(b.$3);Ag=[Af[U](16),Ae[U](16),Y[U](16)].join("");}if(Ag.length<6){Ag=Ag.replace(r.Color.re_hex3,"$1$1");}if(Ag!=="transparent"&&Ag.indexOf("#")<0){Ag="#"+Ag;}return Ag.toLowerCase();}};},"@VERSION@");