// Developed by Robert Nyman/DOMAssistant team, code/licensing: http://code.google.com/p/domassistant/, documentation: http://www.domassistant.com/documentation, version 2.7.1.1 var DOMAssistant=function(){var A=function(){};var D=/*@cc_on!@*/false;var C=[];var B={accesskey:"accessKey","class":"className",colspan:"colSpan","for":"htmlFor",maxlength:"maxLength",readonly:"readOnly",rowspan:"rowSpan",tabindex:"tabIndex",valign:"vAlign",cellspacing:"cellSpacing",cellpadding:"cellPadding"};var E=function(I,H){for(var G=0,F=H.length;GQ)?(S-Q)%Q:((S===Q)?0:S);}else{if(O[8]){Q=O[10]?parseInt(O[10],10):1;S=N=parseInt(O[11],10);while(S>Q){S-=Q;}M=(N>Q)?(N-Q)%Q:((N===Q)?0:N);}}}}}return{start:S,add:Q,max:N,modVal:M};};if(document.evaluate){var I={xhtml:"http://www.w3.org/1999/xhtml"};var K=(document.documentElement.namespaceURI===I.xhtml)?"xhtml:":"";var G=function L(M){return I[M]||null;};DOMAssistant.cssSelection=function(g){var V=g.replace(/\s*(,)\s*/g,"$1").split(",");var T=new A();var n,N,p,d,R,S,W;var M=/^(\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 o=new RegExp("(?:\\[[^\\[]*\\]|\\(.*\\)|[^\\s\\+>~\\[\\(])+|[\\+>~]","g");function f(i,r,k,j){j=j.replace(/^["'](.*)["']$/,"$1");switch(k){case"^":return"starts-with(@"+r+', "'+j+'")';case"$":return"substring(@"+r+", (string-length(@"+r+") - "+(j.length-1)+"), "+j.length+') = "'+j+'"';case"*":return'contains(concat(" ", @'+r+', " "), "'+j+'")';case"|":return"(@"+r+'="'+j+'" or starts-with(@'+r+', "'+j+'-"))';case"~":return'contains(concat(" ", @'+r+', " "), " '+j+' ")';default:return"@"+r+(j?'="'+j+'"':"");}}function m(j,r,k){j=(/\-child$/.test(r))?"*":j;var s="",u=r.split("-");switch(u[0]){case"first":s="not(preceding-sibling::"+j+")";break;case"last":s="not(following-sibling::"+j+")";break;case"only":s="not(preceding-sibling::"+j+" or following-sibling::"+j+")";break;case"nth":if(!/^n$/.test(k)){var i=((u[1]==="last")?"(count(following-sibling::":"(count(preceding-sibling::")+j+") + 1)";W=J(k);if(W){if(W.start===W.max){s=i+" = "+W.start;}else{s=i+" mod "+W.add+" = "+W.modVal+((W.start>1)?" and "+i+" >= "+W.start:"")+((W.max>0)?" and "+i+" <= "+W.max:"");}}}break;case"empty":s="count(child::*) = 0 and string-length(text()) = 0";break;case"contains":s='contains(., "'+k.replace(/^["'](.*)["']$/,"$1")+'")';break;case"enabled":s="not(@disabled)";break;case"disabled":s="@disabled";break;case"checked":s='@checked="checked"';break;case"target":var v=document.location.hash.slice(1);s='@name="'+v+'" or @id="'+v+'"';break;case"not":if(/^(:\w+[\w\-]*)$/.test(k)){s="not("+m(j,k.slice(1))+")";}else{k=k.replace(/^\[#([\w\u00C0-\uFFFF\-\_]+)\]$/,"[id=$1]");var t=k.replace(/^(\w+)/,"self::$1");t=t.replace(/^\.([\w\u00C0-\uFFFF\-_]+)/g,'contains(concat(" ", @class, " "), " $1 ")');t=t.replace(/\[(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+)?\]/g,f);s="not("+t+")";}break;default:s="@"+r+'="'+k+'"';break;}return s;}for(var h=0;(n=V[h]);h++){if(h>0){N=false;for(var X=0,Y=h;X":d+="/child::";break;case"+":d+="/following-sibling::*[1]/self::";break;case"~":d+="/following-sibling::";break;}}else{d+=(e>0&&/(>|\+|~)/.test(p[e-1]))?S.tag:("/descendant::"+S.tag);}if(S.id){d+='[@id = "'+S.id.replace(/^#/,"")+'"]';}if(S.allClasses){d+=S.allClasses.replace(/\.([\w\u00C0-\uFFFF\-_]+)/g,'[contains(concat(" ", @class, " "), " $1 ")]');}if(S.allAttr){d+=S.allAttr.replace(/(\w+)(\^|\$|\*|\||~)?=?([\w\u00C0-\uFFFF\s\-_\.]+|"[^"]*"|'[^']*')?/g,f);}if(S.allPseudos){var U=/:(\w[\w\-]*)(\(([^\)]+)\))?/;S.allPseudos=S.allPseudos.match(/(:\w+[\w\-]*)(\([^\)]+\))?/g);for(var c=0,P=S.allPseudos.length;c|\+|~)$/;var Z=/^(\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 y;try{y=new RegExp("(?:\\[[^\\[]*\\]|\\(.*\\)|[^\\s\\+>~\\[\\(])+|[\\+>~]","g");}catch(AM){y=/[^\s]+/g;}function Au(e){e=e||AW;for(var b=0,a=e.length;b0){AE=false;for(var AO=0,AQ=AP;AO0&&Al.test(V)){g=Al.exec(V);if(g){Aa=/^\w+/.exec(T[AL+1]);if(Aa){Aa=Aa[0];O=new RegExp("(^|\\s)"+Aa+"(\\s|$)","i");}for(var AJ=0,f;(f=AW[AJ]);AJ++){switch(g[0]){case">":var Ai=Ap(Aa,f);for(var AI=0,Ad;(Ad=Ai[AI]);AI++){if(Ad.parentNode===f){Am[Am.length]=Ad;}}break;case"+":while((f=f.nextSibling)&&f.nodeType!==1){}if(f){if(!Aa||O.test(f.nodeName)){Am[Am.length]=f;}}break;case"~":while((f=f.nextSibling)&&!f.added){if(!Aa||O.test(f.nodeName)){f.added=true;Am[Am.length]=f;}}break;}}AW=Am;Au();V=T[++AL];if(/^\w+$/.test(V)){continue;}AW.skipTag=true;}}var AZ=Z.exec(V);var Ak={tag:(!AZ[1]||AZ[3]==="*")?"*":AZ[1],id:(AZ[3]!=="*")?AZ[2]:null,allClasses:AZ[4],allAttr:AZ[6],allPseudos:AZ[11]};if(Ak.id){var AR=document.getElementById(Ak.id.replace(/#/,""));if(AR){Am=[AR];}AW=Am;}else{if(Ak.tag&&!AW.skipTag){if(AL===0&&!Am.length&&AW.length===1){AW=Am=E([],Ap(Ak.tag,AW[0]));}else{for(var AH=0,As=AW.length,Ae,Ab;AH0&&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(J,N){if(N){this.innerHTML+=J;}else{var F=this.all||this.getElementsByTagName("*");for(var H=0,L,K;(L=F[H]);H++){K=L.attributes;if(K){for(var G=0,I=K.length,M;G"," "+C+"="+E+">"));case"style":F.style.cssText=E;return F;default:F[DOMAssistant.camel[C]||D]=E;return F;}};DOMAssistant.Content.setAttributes=function(C){var G=this;var F=this.parentNode;for(var E in C){if(typeof C[E]==="string"||typeof C[E]==="number"){var D=B(G,E,C[E]);if(F&&/(name|type)/i.test(E)){if(G.innerHTML){D.innerHTML=G.innerHTML;}F.replaceChild(D,G);}G=D;}}return DOMAssistant.$(G);};}else{DOMAssistant.Content.setAttributes=function(C){for(var D in C){if(/class/i.test(D)){this.className=C[D];}else{this.setAttribute(D,C[D]);}}return this;};}return DOMAssistant.Content.setAttributes.call(this,A);},addContent:function(A){if(typeof A==="string"||typeof A==="number"){this.innerHTML+=A;}else{if((typeof A==="object")||(typeof A==="function"&&typeof A.nodeName!=="undefined")){this.appendChild(A);}}return this;},replaceContent:function(B){var G=this.all||this.getElementsByTagName("*");for(var F=0,H,A;(H=G[F]);F++){A=H.attributes;if(A){for(var D=0,E=A.length,C;D<\/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