// Developed by Robert Nyman/DOMAssistant team, code/licensing: http://code.google.com/p/domassistant/, documentation: http://www.domassistant.com/documentation, version 2.7 var DOMAssistant=function(){var A=function(){};var C=/*@cc_on!@*/false;var B=[];var D=function(H,G){for(var F=0,E=G.length;FI)?(K-I)%I:((K===I)?0:K);}else{if(G[10]){I=G[12]?parseInt(G[12],10):1;K=F=parseInt(G[13],10);while(K>I){K-=I;}E=(F>I)?(F-I)%I:((F===I)?0:F);}}}}}return{start:K,add:I,max:F,modVal:E};},$:function(){var G=new A();if(document.getElementById){var E=arguments[0];if(typeof E==="string"){E=E.replace(/^[^#]*(#)/,"$1");if(/^#[\w\u00C0-\uFFFF\-\_]+$/.test(E)){var F=DOMAssistant.$$(E.substr(1),false);if(F){G.push(F);}}else{G=DOMAssistant.cssSelection.call(document,E);}}else{if(typeof E==="object"){G=(arguments.length===1)?DOMAssistant.$$(E):D(G,arguments);}}}return G;},$$:function(J,G){var I=(typeof J==="object")?J:document.getElementById(J);var H=G||true;if(typeof J==="string"&&I&&I.id!==J){I=null;for(var E=0,F;(F=document.all[E]);E++){if(F.id===J){I=F;break;}}}if(I&&H){DOMAssistant.addMethodsToElm(I);}return I;},cssSelection:function(F){if(document.evaluate){DOMAssistant.cssSelection=function(a){var P=a.replace(/\s*(,)\s*/g,"$1").split(",");var N=new A();var e,H,g,X,L,M,Q;var G=/^(\w+)?(#[\w\u00C0-\uFFFF\-\_]+|(\*))?((\.[\w\u00C0-\uFFFF\-_]+)*)?((\[\w+(\^|\$|\*|\||~)?(=[\w\u00C0-\uFFFF\s\-\_\.]+)?\]+)*)?(((:\w+[\w\-]*)(\((odd|even|\-?\d*n?((\+|\-)\d+)?|[\w\u00C0-\uFFFF\-_]+|((\w*\.[\w\u00C0-\uFFFF\-_]+)*)?|(\[#?\w+(\^|\$|\*|\||~)?=?[\w\u00C0-\uFFFF\s\-\_\.]+\]+)|(:\w+[\w\-]*))\))?)*)?(>|\+|~)?/;var f=new RegExp("(?:\\[[^\\[]*\\]|\\(.*\\)|[^\\s\\+>~\\[\\(])+|[\\+>~]","g");function Z(i,l,k,j){switch(k){case"^":return"starts-with(@"+l+", '"+j+"')";case"$":return"substring(@"+l+", (string-length(@"+l+") - "+(j.length-1)+"), "+j.length+") = '"+j+"'";case"*":return"contains(concat(' ', @"+l+", ' '), '"+j+"')";case"|":return"(@"+l+"='"+j+"' or starts-with(@"+l+", '"+j+"-'))";case"~":return"contains(concat(' ', @"+l+", ' '), ' "+j+" ')";default:return"@"+l+(j?"='"+j+"'":"");}}function d(i,k,j){var l="";switch(k){case"first-child":l="not(preceding-sibling::*)";break;case"first-of-type":l="not(preceding-sibling::"+i+")";break;case"last-child":l="not(following-sibling::*)";break;case"last-of-type":l="not(following-sibling::"+i+")";break;case"only-child":l="not(preceding-sibling::* or following-sibling::*)";break;case"only-of-type":l="not(preceding-sibling::"+i+" or following-sibling::"+i+")";break;case"nth-child":if(!/^n$/.test(j)){Q=DOMAssistant.getSequence(j);if(Q){if(Q.start===Q.max){l="count(preceding-sibling::*) = "+(Q.start-1);}else{l="(count(preceding-sibling::*) + 1) mod "+Q.add+" = "+Q.modVal+((Q.start>1)?" and count(preceding-sibling::*) >= "+(Q.start-1):"")+((Q.max>0)?" and count(preceding-sibling::*) <= "+(Q.max-1):"");}}}break;case"nth-of-type":if(!/^n$/.test(j)){Q=DOMAssistant.getSequence(j);if(Q){if(Q.start===Q.max){l=j;}else{l="position() mod "+Q.add+" = "+Q.modVal+((Q.start>1)?" and position() >= "+Q.start:"")+((Q.max>0)?" and position() <= "+Q.max:"");}}}break;case"empty":l="count(child::*) = 0 and string-length(text()) = 0";break;case"contains":l="contains(., '"+j+"')";break;case"enabled":l="not(@disabled)";break;case"disabled":l="@disabled";break;case"checked":l="@checked='checked'";break;case"not":if(/^(:\w+[\w\-]*)$/.test(j)){l="not("+d(i,j.slice(1))+")";}else{j=j.replace(/^\[#([\w\u00C0-\uFFFF\-\_]+)\]$/,"[id=$1]");var m=j.replace(/^(\w+)/,"self::$1");m=m.replace(/^\.([\w\u00C0-\uFFFF\-_]+)/g,"contains(concat(' ', @class, ' '), ' $1 ')");m=m.replace(/\[(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+)?\]/g,Z);l="not("+m+")";}break;default:l="@"+k+"='"+j+"'";break;}return l;}for(var b=0;(e=P[b]);b++){if(b>0){H=false;for(var R=0,S=b;R":X+="/child::";break;case"+":X+="/following-sibling::*[1]/self::";break;case"~":X+="/following-sibling::";break;}}else{X+=(Y>0&&/(>|\+|~)/.test(g[Y-1]))?M.tag:("/descendant::"+M.tag);}if(M.id){X+="[@id = '"+M.id.replace(/^#/,"")+"']";}if(M.allClasses){X+=M.allClasses.replace(/\.([\w\u00C0-\uFFFF\-_]+)/g,"[contains(concat(' ', @class, ' '), ' $1 ')]");}if(M.allAttr){X+=M.allAttr.replace(/(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+)?/g,Z);}if(M.allPseudos){var O=/:(\w[\w\-]*)(\(([^\)]+)\))?/;M.allPseudos=M.allPseudos.match(/(:\w+[\w\-]*)(\([^\)]+\))?/g);for(var W=0,J=M.allPseudos.length;W|\+|~)$/;var U=/^(\w+)?(#[\w\u00C0-\uFFFF\-\_]+|(\*))?((\.[\w\u00C0-\uFFFF\-_]+)*)?((\[\w+(\^|\$|\*|\||~)?(=[\w\u00C0-\uFFFF\s\-\_\.]+)?\]+)*)?(((:\w+[\w\-]*)(\((odd|even|\-?\d*n?((\+|\-)\d+)?|[\w\u00C0-\uFFFF\-_]+|((\w*\.[\w\u00C0-\uFFFF\-_]+)*)?|(\[#?\w+(\^|\$|\*|\||~)?=?[\w\u00C0-\uFFFF\s\-\_\.]+\]+)|(:\w+[\w\-]*))\))?)*)?/;var h;try{h=new RegExp("(?:\\[[^\\[]*\\]|\\(.*\\)|[^\\s\\+>~\\[\\(])+|[\\+>~]","g");}catch(AH){h=/[^\s]+/g;}function Ap(e){e=e||AR;for(var b=0,a=e.length;b0){z=false;for(var AJ=0,AL=AK;AJ0&&Ag.test(Q)){Y=Ag.exec(Q);if(Y){AV=/^\w+/.exec(O[AG+1]);if(AV){AV=AV[0];I=new RegExp("(^|\\s)"+AV+"(\\s|$)","i");}for(var AE=0,X;(X=AR[AE]);AE++){switch(Y[0]){case">":var Ad=Ak(AV,X);for(var AD=0,AY;(AY=Ad[AD]);AD++){if(AY.parentNode===X){Ah[Ah.length]=AY;}}break;case"+":while((X=X.nextSibling)&&X.nodeType!==1){}if(X){if(!AV||I.test(X.nodeName)){Ah[Ah.length]=X;}}break;case"~":while((X=X.nextSibling)&&!X.added){if(!AV||I.test(X.nodeName)){X.added=true;Ah[Ah.length]=X;}}break;}}AR=Ah;Ap();Q=O[++AG];if(/^\w+$/.test(Q)){continue;}AR.skipTag=true;}}var AU=U.exec(Q);var Af={tag:(!AU[1]||AU[3]==="*")?"*":AU[1],id:(AU[3]!=="*")?AU[2]:null,allClasses:AU[4],allAttr:AU[6],allPseudos:AU[10]};if(Af.id){var AM=document.getElementById(Af.id.replace(/#/,""));if(AM){Ah=[AM];}AR=Ah;}else{if(Af.tag&&!AR.skipTag){if(AG===0&&!Ah.length&&AR.length===1){AR=Ah=D([],Ak(Af.tag,AR[0]));}else{for(var AC=0,An=AR.length,AZ,AW;AC0&&F.params)?("&"+F.params):"");}return DOMAssistant.AJAX.makeCall.call(this,F);},get:function(H,I,G){var F=B(H,"GET",I,G);return DOMAssistant.AJAX.makeCall.call(this,F);},post:function(G,H){var F=B(G,"POST",H);return DOMAssistant.AJAX.makeCall.call(this,F);},load:function(G,F){DOMAssistant.AJAX.get.call(this,G,DOMAssistant.AJAX.replaceWithAJAXContent,F);},makeCall:function(F){var G=DOMAssistant.AJAX.initRequest();if(G){E=G;var H=function(Q){var K=F.url;var I=F.method||"GET";var R=F.callback;var M=F.params;var L=F.headers;var P=F.responseType||"text";var N=F.addToContent;G.open(I,K,true);G.setRequestHeader("AJAX","true");G.setRequestHeader("X-Requested-With","XMLHttpRequest");if(I==="POST"){var J=M?M.length:0;G.setRequestHeader("Content-type","application/x-www-form-urlencoded");G.setRequestHeader("Content-length",J);if(G.overrideMimeType){G.setRequestHeader("Connection","close");}}for(var O in L){if(typeof O==="string"){G.setRequestHeader(O,L[O]);}}if(typeof R==="function"){G.onreadystatechange=function(){if(G.readyState===4){var S=(/xml/i.test(P))?G.responseXML:G.responseText;R.call(Q,S,N);A=4;C=G.status;D=G.statusText;E=null;G=null;}};}G.send(M);}(this);}return this;},replaceWithAJAXContent:function(K,L){if(L){this.innerHTML+=K;}else{var J=this.elmsByTag("*");for(var I=0,M,F;(M=J[I]);I++){F=M.attributes;if(F){for(var G=0,H=F.length;G=0;E--){F=this.childNodes[E];A=F.attributes;if(A){for(var C=0,D=A.length;C<\/script>"); document.getElementById("ieScriptLoad").onreadystatechange = function() { if (this.readyState === "complete") { DOMHasLoaded(); } }; } @end @*/ if(document.addEventListener){document.addEventListener("DOMContentLoaded",DOMHasLoaded,false);}if(/KHTML|WebKit|iCab/i.test(navigator.userAgent)){DOMLoadTimer=setInterval(function(){if(/loaded|complete/i.test(document.readyState)){DOMHasLoaded();clearInterval(DOMLoadTimer);}},10);}window.onload=DOMHasLoaded;return{DOMReady:function(){for(var i=0,il=arguments.length,funcRef;i