oParts=window.oParts||{};oParts.version="20080907.100619";oParts.client={w3c:!!window.getComputedStyle,MSIE:/*@cc_on!@*/false,IE6:false,IE7:false,Opera:!!window.opera,Gecko:!!(window.GeckoActiveXObject||navigator.userAgent.match(/Firefox/)),Safari:!!(navigator.vendor&&navigator.vendor.match(/Apple/))};oParts.events=[];oParts.callee=[];oParts.baseURL="";new function(){var A=self.parent.document.getElementsByTagName("SCRIPT");for(var C=0,B=A.length;C<B;C++){if(A[C].src&&A[C].src.indexOf("js/oParts.js")>0){return oParts.baseURL=A[C].src.slice(0,-12)}}};(function(){var w=window,d=document,de=d.documentElement,UD="undefined";var client=oParts.client;function Parts(parts,context){this.oparts=[];var _o;switch(typeof parts){case"string":_o=oParts.query(parts,context);this.size=(_o&&_o.length)?_o.length:_o?1:0;if(this.size){for(var j=0;j<this.size;j++){att(this,_o[j]);this.oparts[this.oparts.length]=_o[j]}}break;case"object":if(parts instanceof Array){this.size=0;for(var j=0;_o=parts[j++];){if(_o){this.size++;this.oparts[this.oparts.length]=_o.$}}}else{this.size=1;att(this,parts);this.oparts[this.oparts.length]=parts}break}return this}function att(a,b){a.$=b;try{a.id=b.id}catch(e){a.id=null}try{a.className=b.className}catch(e){a.className=null}}Parts.prototype={item:function(i){return o(this.oparts[i])},parent:function(n){var n=!n?1:n,p="this.$";for(var i=1;i<=n;i++){p+=".parentNode";if(!eval(p)){return null}}return o(eval(p))},child:function(n){var cn=this.$.childNodes,c=cn[n];if(c&&c.nodeType!=1){while(c.nodeType!=1){c=c.nextSibling}}return c?o(c):null},sib:function(n){var N=n<0?-n:n,sb=n<0?".previousSibling":".nextSibling",s="this.$";for(var i=1;i<=N;i++){s+=sb;if(!eval(s)){return null}if(eval(s).nodeType!=1){N++}}return o(eval(s))},visible:function(){return(this.css("display")!="none")*1},show:function(a){if(a){var s;if(client.Gecko){s="display: -moz-inline-stack; display:inline-block;"}else{if(client.MSIE){s="overflow:hidden; zoom: 1; display:inline;"}else{s="display: inline;"}}this.css(s)}else{this.css("display: block;")}return this},hide:function(){this.css("display: none;");return this},toggle:function(){this.css("display:"+["block","none"][this.visible()]);return this},view:function(b){if(this.visible()){this.$.scrollIntoView(b)}return this},html:function(s,add){var v=[];this.each(function(o){if(s){if(add){switch(add){case"before":case -1:o.innerHTML=(s+o.innerHTML);break;default:o.innerHTML+=s}}else{o.innerHTML=s}}else{v[v.length]=o.innerHTML}});return s?this:v.length==1?v[0].toString():v},title:function(s){var v=[];this.each(function(o){if(s){o.title=s}else{v[v.length]=o.title}});return s?this:v.length==1?v[0]:v},value:function(s){var v=[];this.each(function(o){if(s||s==""){o.value=s}else{v[v.length]=o.value}});return s?this:v.length==1?v[0]:v},checked:function(){var v=[];this.each(function(o){v[v.length]=(o.checked?1:0)});return v.length==1?v[0]:v},src:function(s){if(s){this.$.src=s}else{return this.$.src}return this},subst:function(a,b){this.html(this.html().replace(a,b));return this},clone:function(b){return o(this.$.cloneNode(b))},klass:function(c){if(c){return !this.$.className?0:(" "+this.$.className+" ").indexOf(c)>0?1:0}else{return this.$.className}},css:function(exp){return exp.indexOf(":")>0?this.setCSS(exp):this.getCSS(exp)},setCSS:function(css){this.each(function(o){css.split(/;/).forEach(function(v){if(v.indexOf(":")>0){v=v.split(/:/);var p=v.shift().trim(),s=v.join(":").trim()||"";if(/^0\.\d+$/.test(s)&&s<0.001){s=0}p=p.replace(/-\D/g,function(m){return m.charAt(1).toUpperCase()});if(p.indexOf("pacity")>0){if(client.MSIE){o.style.zoom=1}p=client.MSIE?"filter":"opacity";s=client.MSIE?"alpha(opacity="+parseFloat(s)*100+")":parseFloat(s)}if(p=="float"){p=client.MSIE?"styleFloat":"cssFloat"}o.style[p]=s}})});return this},getCSS:function(prop){var v=null,o=this.$;if(d.defaultView){prop=prop.replace(/([A-Z])/g,"-$1").toLowerCase();if(prop.indexOf("border")!=-1){prop=prop.replace(/border\-(\w+)$/,"border-left-$1")}v=d.defaultView.getComputedStyle(o,null).getPropertyValue(prop)}else{if(o.currentStyle){prop=prop.replace(/-\D/g,function(m){return m.charAt(1).toUpperCase()});var cs=o.currentStyle,md="medium";switch(prop){case"width":var bl=cs.borderLeftWidth;bl=bl==md?0:parseInt(bl);var br=cs.borderRightWidth;br=br==md?0:parseInt(br);v=o.offsetWidth-bl-br;break;case"height":var bt=cs.borderTopWidth;bt=bt==md?0:parseInt(bt);var bb=cs.borderBottomWidth;bb=bb==md?0:parseInt(bb);v=o.offsetHeight-bt-bb;break;case"opacity":o.style.zoom=1;v=cs.filter.match(/opacity=([^)]+)/)[1]/100;break;case"float":v=cs.styleFloat;break;default:v=cs[prop]}if(v==md){v=2}}else{v=o.style[prop]}}return/px$/.test(v)?parseInt(v):v},moveTo:function(x,y){this.each(function(o){o.style.position="absolute";if(x!=null){o.style.left=parseInt(x)+"px";this.X=x}if(y!=null){o.style.top=parseInt(y)+"px";this.Y=y}});return this},sizeTo:function(w,h){this.each(function(o){if(w!=null){o.style.width=parseInt(w)+"px";this.W=w}if(h!=null){o.style.height=parseInt(h)+"px";this.H=h}});return this},dimension:function(x,y,w,h,pos){this.moveTo(x,y).sizeTo(w,h);if(pos){this.css("position:relative;")}return this},rect:function(s){var self=this.$;return s===0?self.offsetWidth:s===1?self.offsetHeight:[self.offsetWidth,self.offsetHeight]},offset:function(s){var v,$=this.$;if($.getBoundingClientRect){var r=$.getBoundingClientRect();if(s===0){v=r.left+de.scrollLeft-2}else{if(s===1){v=r.top+de.scrollTop-2}else{v=[r.left+de.scrollLeft-2,r.top+de.scrollTop-2]}}}else{var x=0,y=0;while($.offsetParent){x+=($.offsetLeft);y+=$.offsetTop;$=$.offsetParent}if(client.Safari&&!w.getSearchEngine){x+=d.body.offsetLeft;y+=d.body.offsetTop}v=s===0?Number(x):s===1?Number(y):[Number(x),Number(y)]}return v},addBefore:function(el){if(el.$){el=el.$}this.$.parentNode.insertBefore(el,this.$);return this},addAfter:function(el){this.parent().addChild(el,this.$.nextSibling);return this},addChild:function(a,b){if(!(a instanceof Array)){a=[a]}for(var i=0;el=a[i++];){if(el.$){el=el.$}if(b){if(b.$){b=b.$}this.$.insertBefore(el,b)}else{this.$.appendChild(el)}}return this},deleteChild:function(a){if(!(a instanceof Array)){a=[a]}for(var i=0;el=a[i++];){if(el.$){el=el.$}this.$.removeChild(el)}return this},away:function(){this.each(function(o){o.parentNode.removeChild(o);o=null});return this},await:function(ms,F){this.each(function(o){oParts.ticker=setTimeout(function(){F.apply(o,arguments)},ms)})},fade:function(delay,mode){delay=delay||500;mode=mode||"OUT";this.await(delay,function(e){var el=o(this);switch(mode){case"OUT":var op=1;(function(o){o.css("opacity:"+(op-=0.1));if(op<0){if(oParts.ticker){clearTimeout(oParts.ticker);oParts.ticker=null}o.hide().css("opacity:1")}}).loop(30,15)(el);break}})},each:function(F,index){for(var i=0,l=this.oparts.length;i<l;++i){if(this.$break){break}F.call(this,this.oparts[i],i)}return this},cancelEvent:function(){this.each(function(){if(oParts.evt){oParts.evt.preventDefault();oParts.evt.stopPropagation()}});return this},on:function(evType,F){var listener=function(o){var ev=evType.split(/\|/);for(var i=0,l=ev.length;i<l;i++){var evi=ev[i],evRef="_"+evi;if(!o[evRef]){o[evRef]=[];o["on"+evi]=function(e){e=e||ieev(w.event);for(var i in this[evRef]){this[evRef][i].apply(this,[e])}}}else{for(var j in o[evRef]){if(o[evRef][j]===F){return }}}o[evRef].push(F);oParts.events.push([o,evRef])}o=null};this.each(function(o){listener(o)})},off:function(evType,F){var listener=function(o){var evRef="_"+evType;if(o[evRef]){for(var i in o[evRef]){if(o[evRef][i]===F){delete o[evRef][i]}}if(oParts.isEmpty(o[evRef])){delete o[evRef]}}};this.each(function(o){listener(o)})}};w.o=function(a,context,htmlelement){var element=new Parts(a,context||d);if(!element.size){delete element}return element.size?element:null};function ieev(e){e.preventDefault=new Function("event.returnValue = false;");e.stopPropagation=new Function("event.cancelBubble = true;");e.target=e.srcElement;e.relatedTarget=/out/.test(e.type)?e.toElement:e.fromElement;e.pageX=de.scrollLeft+e.clientX||d.body.scrollLeft+e.clientX||0;e.pageY=de.scrollTop+e.clientY||0;e.which=e.keyCode;return e}Parts.extend=function(name,method){if(!Parts.prototype[name]){Parts.prototype[name]=method}};o(w).on("unload",function(){if(!oParts||!oParts.events){return }for(var i=0,ev;oe=oParts.events[i++];){ev=oe[i];if(ev){if(ev[0]){ev[0][ev[1]]=null}}}oParts=null;Function.prototype.await=Function.prototype.loop=null});oParts.start=function(F){for(var i in oParts.callee){if(oParts.callee[i]!==F){oParts.callee.push(F)}}if(client.Gecko||client.Opera||client.Safari){d.addEventListener("DOMContentLoaded",F,false)}else{if(client.MSIE){(function(){try{de.doScroll("left")}catch(e){setTimeout(arguments.callee,1);return }F()})()}else{o(w).on("load",F)}}};[].forEach||(Array.prototype.forEach=function(F){var i,l=this.length;for(i=0;i<l;i++){if(typeof F!="function"){return }if(i in this){F.call(arguments[0],this[i],i,this)}}});var EVENTS="MOUSEDOWN|MOUSEUP|MOUSEOVER|MOUSEOUT|MOUSEMOVE|MOUSEDRAG|CLICK|DBLCLICK|KEYPRESS|KEYDOWN|KEYUP";if(client.w3c){EVENTS.split("|").forEach(function(e){w.addEventListener(e.toLowerCase(),function(e){oParts.evt=e},true)})}else{EVENTS.split("|").forEach(function(e){d.attachEvent("on"+e.toLowerCase(),function(){oParts.evt=ieev(event)})})}oParts.target=function(a){var tar=oParts.evt.target;if(a===0){return o(tar).offset(0)}if(a===1){return o(tar).offset(1)}if(a===2){return[o(tar).offset(0),o(tar).offset(1)]}return o(tar)};oParts.create=function(tag,css,parent,fly){var I=tag.indexOf("#"),C=tag.indexOf("."),fly=fly||false;var el=d.createElement(tag.split(/[#\.]/)[0]);var context=parent||d.body;if(I>0){el.id=tag.slice(I+1)}if(C>0){el.className=tag.slice(C+1)}if(!fly){if(context.$){context=context.$}context.appendChild(el);el=el.id?o(tag.slice(I)):el.className?o(tag.slice(C)):o(el)}else{el=o(el)}if(css){el.setCSS(css)}return el};oParts.fragment=function(nodes){var frag,div=d.createElement("div");div.innerHTML=nodes;frag=d.createDocumentFragment();while(div.firstChild){frag.appendChild(div.firstChild)}return frag}})();oParts.isEmpty=function(A){for(var B in A){return false}return true};oParts.search=function(E,D){for(var C=0,B=D.length,A=null;C<B;C++){A=E.test(D[C]);if(A){return D[C]}}return A};oParts.metrics=function(A){var B=document,C=B.documentElement;switch(A){case"w":case 0:return C.clientWidth||self.innerWidth||B.body.clientWidth||0;case"h":case 1:return self.innerHeight||C.clientHeight||B.body.clientHeight||0;case"dh":case 2:return C.scrollHeight||B.body.scrollHeight||0;case"sc":case 3:return window.pageYOffset||C.scrollTop||B.body.scrollTop||0}};oParts.imgloader=function(hash,path){for(var name in hash){eval(name+'= new Image().src = "'+path+hash[name]+'";')}};oParts.server={request:function(){if(window.XMLHttpRequest){return new XMLHttpRequest()}if(window.ActiveXObject){var A=null;["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0"].forEach(function(C){try{A=new ActiveXObject(C)}catch(B){}});return A}},get:function(A,D){var C=oParts.server.request();var B=!arguments[2]?true:false;try{C.open("GET",A,B);C.onreadystatechange=function(){if(C.readyState==4){if(toolTip&&toolTip.visible()){toolTip.fade(200)}if(D){D(C.responseText)}}};if(client.MSIE){C.setRequestHeader("If-Modified-Since","Thu, 01 Jun 1970 00:00:00 GMT")}C.send(null)}catch(E){}},post:function(A,D,C){var B=oParts.server.request();try{B.open("POST",A,true);B.setRequestHeader("Content-Type","application/x-www-form-urlencoded");B.onreadystatechange=function(){if(B.readyState==4){if(typeof toolTip!=UD&&toolTip.visible()){toolTip.fade(200)}if(C){C(B.responseText)}}};B.send(D)}catch(E){}}};oParts.loadScript=function(src){if(!oParts.scripts){oParts.scripts={}}var r,s,async=arguments[1]?true:false,d=document,safari=oParts.client.Safari;if(!oParts.scripts[src]){try{r=oParts.server.request();s=d.createElement("script");s.type="text/javascript";s.charset="utf-8";if(safari){s.src=src}r.open("GET",src,async);r.send(null);if(r.readyState==4){if(r.status==200){s.text=r.responseText;d.documentElement.firstChild.appendChild(s);if(safari){eval(s.text)}oParts.scripts[src]=src;return true}}}catch(e){d.write('<script type="text/javascript" src="'+src+'"><\/script>')}}else{return true}return false};oParts.cookie={set:function(B,C,D){D=D||30;if(C==UD||C===""){return }var A=new Date();A.setTime(A.getTime()+(D*60*60*24*1000));document.cookie=B+"="+escape(C)+"; expires="+A.toGMTString()+"; path=/"},get:function(A){var B=document.cookie.match(A+"=(.*?)(;|$)");return B?unescape(B[1]):null},del:function(A){oParts.cookie.set(A,"",-1)}};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"")};Function.prototype.await=function(A){var B=this;return function(){var C=arguments.callee.arguments;setTimeout(function(){B.apply(null,C)},A)}};Function.prototype.loop=function(C,A){var D=0,B=this;return function(){var E=arguments;if(A<=D){return }D++;B.apply(E.callee.await(C)(E[0]),E)}};oParts.query=(function(){function D(M,F){var L=document,F=F||L,F=F.$?F.$:F;if(F.querySelectorAll){var H,E=[];H=F.querySelectorAll(M);if(!H){return null}for(var K=0,I=H.length;K<I;K++){E[E.length]=H[K]}return E}if(L.evaluate){return E=B(A(M,F),F)}var O=/(^[>\+~])/;M=M.replace(/([>\+~])\s*(\w+)/,"$1$2");var J=M.split(/\s/),K=0,G,N=null,E=[F||L];for(K;G=J[K++];){if(O.test(G)){N=RegExp.$1;G=G.replace(O,"")}E=C(G,E,N)}return E}function C(e,I,U){var W=[],Q={},r=document,H,F=null,Z=null,J=null,G=true;var w=e.indexOf("#");if(w>=0){e=r.getElementById(e.slice(w+1));return e?[e]:W}var h=e.indexOf("["),E=e.indexOf("."),y=e.indexOf(":");var q=0,M=0,g,N,V,z,l;if(h>=0){H=e.slice(0,h);Z=e.slice(h+1,-1);Z=(Z.indexOf("][")>0)?Z.split("]["):[Z]}else{if(E>=0){H=e.slice(0,E);F=e.slice(E+1)}else{if(y>=0){H=e.slice(0,y);J=e.slice(y+1);V=J.indexOf("(");if(V>0){z=J.slice(V+1,-1);J=J.slice(0,V)}}else{H=e}}}H=H.toUpperCase();for(q;x=$n=I[q++];){if(U){G=false;switch(U){case"+":while(($n=$n.nextSibling)&&$n.nodeType!=1){}if($n&&$n.nodeName==H){W[W.length]=$n}break;case">":for($n=$n.firstChild;$n;$n=$n.nextSibling){if($n.nodeName==H){W[W.length]=$n}}break;case"~":while($n=$n.nextSibling){if($n.nodeName==H){W[W.length]=x;break}}break}}else{var L=H?x.getElementsByTagName(H):x.getElementsByTagName("*");if(!F&&!Z&&!J){}if(Z){var Y,z;for(var v,f=0;v=Z[f++];){if(v.indexOf("=")>0){Y=v.split("="),z=Y[1],Y=Y[0];var O=null,X=/^(\w+)([\^\$~\*\|])$/i.exec(Y);if(X){Y=X[1],O=X[2]}Y=(Y=="class")?"className":Y}else{Z=(Z=="class")?"className":Z}}}for(g=0;n=$=L[g++];){if(F){if(n.className){if((" "+n.className+" ").indexOf(F)<0){continue}}else{continue}}if(Z){if(!Y){if(n[Z]==""){continue}}else{if(O){var T=n[Y];switch(O){case"^":if(T.indexOf(z)!=0){continue}break;case"$":if(T.lastIndexOf(z)!=T.length-z.length){continue}break;case"~":if((" "+T+" ").indexOf(z)==-1){continue}break;case"*":if(T.indexOf(z)==-1){continue}break;case"|":if(T!=z&&T.indexOf(z+"-")==-1){continue}break}}else{if(n[Y]!=z){continue}}}}if(J){switch(J){case"root":return[(ownerDocument||r).documentElement];case"first-child":while(($=$.previousSibling)&&$.nodeType!=1){}if($){continue}break;case"last-child":while(($=$.nextSibling)&&$.nodeType!=1){}if($){continue}break;case"only-child":if(n.previousSibling||n.nextSibling){continue}break;case"first-of-type":l=false;while($=$.previousSibling){if($&&$.nodeName==H){l=true;break}}if(l){continue}break;case"last-of-type":l=false;while($=$.nextSibling){if($&&$.nodeName==H){l=true;break}}if(l){continue}break;case"only-of-type":var S=n;l=2;while($=$.previousSibling){if($&&$.nodeName==H){l--;break}}while(S=S.nextSibling){if(S&&S.nodeName==H){l--;break}}if(l!=2){continue}break;case"empty":var s=n.firstChild;if(s.nodeType==1||s.nodeType==3){continue}break;case"not":var X=/^[a-z1-6]+$/i.test(z);if(X){if(n.nodeName==z.toUpperCase()){continue}}else{var X=/^\[(.+?)(="?(.+?)"?)?\]$/i.exec(z);if(X[1]&&X[3]){if(n[X[1]]==X[3]){continue}}else{if(X[1]){if(!!n[X[1]]){continue}}}}break;case"contains":var R=n.innerText||n.textContent||"";if(R!=""){if(R.indexOf(z)<0){continue}}else{continue}break;case"lang":if(n.lang){if(n.lang.indexOf(z)<0){continue}}else{continue}break;case"enabled":case"disabled":if("BUTTON|INPUT|TEXTAREA|SELECT|OPTION|LINK|STYLE|OPTGROUP|".indexOf(H+"|")<0){continue}else{if(J=="disabled"){if(n[J]!=J&&n[J]!=true){continue}}else{var K=n.disabled;if(K&&(K==true||K=="disabled")){continue}}}break;case"checked":if(H!="INPUT"){continue}if(!n.checked){continue}break;case"nth-child":case"nth-of-type":case"nth-last-child":case"nth-last-of-type":var v,t=-1;G=false;if(z=="even"||z=="2n"){v=2,t=0}else{if(z=="odd"||z=="2n+1"){v=2,t=1}else{v=/(\d+?)?n?\+?(\d+)?$/.exec(z)}}if(t<0){if(v[0]=="n"){v=1,t=0}else{if(v[2]){t=v[2],v=v[1]}else{t=v[1],v=0}}}var T=n.parentNode,s,M=0;var P=J.indexOf("last")>0?1:0;if(!T.touched){for(s=(P?T.lastChild:T.firstChild);s;s=(P?s.previousSibling:s.nextSibling)){if(s.nodeType==1){if(J.indexOf("child")>0){s.srcIndex=++M}else{if(s.nodeName==H){s.srcIndex=++M}}}}T.touched=true}if(v!=0){if(n.srcIndex%v==t){W[W.length]=n}}else{if(n.srcIndex==t){W[W.length]=n}}continue;break}}if(G){if(n&&Q[n.sourceIndex]==undefined){W[W.length]=Q[n.sourceIndex]=n}}}}}return W}function B(E,G){var J=document,F=[],I,H;H=J.evaluate(E,G||J,null,XPathResult.ANY_TYPE,null);for(I=H.iterateNext();I;I=H.iterateNext()){F[F.length]=I}return F.length?F:null}function A(J,H){var M=[],c=/(^[>\+~])/;var G,F,K="",O,e,Z,V,E,d,U=null,N;J=J.replace(/^\s|\s$/g,"").replace(/([>\+~])\s*(\w+)/,"$1$2");var P=J.split(/\s/),W=0,S;for(W;S=P[W++];){K=N="";if(c.test(S)){U=RegExp.$1;S=S.replace(c,"")}G=S;Z=S.indexOf("#"),V=S.indexOf("["),E=S.indexOf("."),d=S.indexOf(":");if(Z>=0){G=S.slice(0,Z)||"*";K='[@id="'+S.slice(Z+1)+'"]'}if(E>=0){G=S.slice(0,E)||"*";F=S.slice(E+1);K='[contains(concat(" ",@class," ")," '+F+' ")]'}else{if(V>=0){G=S.slice(0,V)||"*";attr=S.slice(V+1,-1);attr=(attr.indexOf("][")>0)?attr.split("]["):[attr];var R,e;for(var Y,T=0;Y=attr[T++];){if(Y.indexOf("=")>0){R=Y.split("="),e=R[1].replace('"',""),R=R[0];var Q=/^(\w+)([\^\$~\*\|])$/i.exec(R);if(Q){switch(Q[2]){case"*":K="[contains(@"+Q[1]+',"'+e+'")]';break;case"^":K="[starts-with(@"+Q[1]+',"'+e+'")]';break;case"$":K="[substring(@"+Q[1]+",string-length(@"+Q[1]+')-string-length("'+e+'")+1)="'+e+'"]';break;case"~":K='[contains(concat(" ",@'+Q[1]+'," ")," '+e+' ")]';break;case"|":K='[@class = "'+e+'" or starts-with(@class, "'+e+'-")]';break}}else{K="[@"+R+'="'+e+'"]'}}else{K="[@"+Y+"]"}}}else{if(d>=0){G=S.slice(0,d)||"*";pseudo=S.slice(d+1);O=pseudo.indexOf("(");if(O>0){e=pseudo.slice(O+1,-1);pseudo=pseudo.slice(0,O)}switch(pseudo){case"root":K="[not(parent::*)]";break;case"first-child":K="[not(preceding-sibling::*)]";break;case"last-child":K="[not(following-sibling::*)]";break;case"only-child":K="[not(preceding-sibling::*) and not(following-sibling::*)]";break;case"first-of-type":K="[1]";break;case"last-of-type":K="[last()]";break;case"only-of-type":K="[count(../"+G+") = 1]";break;case"empty":K="[not(child::*) and not(text())]";break;case"not":K="[not("+A(e,H).replace(/^\/\/(\*|\w+)/,"self::$1")+")]";break;case"contains":K='[contains(descendant::text(), "'+e+'")]';break;case"lang":K='[boolean(lang("'+e+'") or boolean(ancestor-or-self::*[@lang][1][starts-with(@lang,"'+e+'")]))]';break;case"enabled":K='[not(@disabled and (@disabled = "true" or @disabled = "disabled")) or (@enabled and @enabled = "false")]';break;case"disabled":K='[(@disabled and (@disabled = "true" or @disabled = "disabled")) or (@enabled and @enabled = "false")]';break;case"checked":K='[(@checked and (@checked = "true" or @checked = "checked"))]';break;case"nth-child":case"nth-last-child":case"nth-of-type":case"nth-last-of-type":var Y,X=-1,L=pseudo.indexOf("last")>0?1:0,I=pseudo.indexOf("type")>0?1:0;if(e=="even"||e=="2n"){Y=2,X=0}else{if(e=="odd"||e=="2n+1"){Y=2,X=1}else{Y=/(\d+?)?n?\+?(\d+)?$/.exec(e)}}if(X<0){if(Y[0]=="n"){Y=1,X=0}else{if(Y[2]){X=Y[2],Y=Y[1]}else{X=Y[1],Y=0}}}K=I?"["+(L?"(last() + 1 - position())":"position()")+(Y===0?"":"mod "+Y)+" = "+X+"]":"[(count("+(L?"follow":"preced")+"ing-sibling::*) + 1) "+(Y===0?"":"mod "+Y)+" = "+X+"]";break}}}}if(U){switch(U){case">":M.push("/child::"+G);break;case"+":M.push("/following-sibling::*[1][self::"+G+"]");break;case"~":M.push("/following-sibling::"+G);break}G="";N=""}else{N="//"}M.push(G+K)}return(H.nodeType==9?"//":".//")+M.join(N)}return function(N,G,J){var L=document,F=[];if(N.indexOf(",")>0){var K,E,H=N.split(","),O=H.length,I=[],P={},M;while(O--){E=H[O].replace(/^\s|\s$/g,"");if(P[E]==undefined){I[I.length]=P[E]=E}}for(K=0;P=I[K++];){M=D(P,G);for(O=0;E=M[O++];){F[F.length]=E}}}else{F=D(N,G)}if(F==null||F==""){return null}if(J){return o(F)}return F}})();
