function sh_isEmailAddress(a){return/^mailto:/.test(a)?!1:-1!==a.indexOf("@")}function sh_setHref(a,b,c){var d=c.substring(a[b-2].pos,a[b-1].pos);d.length>=2&&"<"===d.charAt(0)&&">"===d.charAt(d.length-1)&&(d=d.substr(1,d.length-2)),sh_isEmailAddress(d)&&(d="mailto:"+d),a[b-2].node.href=d}function sh_konquerorExec(a){var b=[""];return b.index=a.length,b.input=a,b}function sh_highlightString(a,b){var c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,A,B,C,D,E,F,G,H,I,J;if(/Konqueror/.test(navigator.userAgent)&&!b.konquered){for(c=0;ck;){for(p=k,s=n.exec(a),null===s?(q=o,r=o):(q=s.index,r=n.lastIndex),t=a.substring(p,q),u=[];;){for(v=k-p,x=j.length,w=0===x?0:j[x-1][2],y=b[w],z=y.length,A=u[w],A||(A=u[w]=[]),B=null,C=-1,D=0;z>D&&(Dv&&m(t.substring(v,B.index),null),G=y[C],H=G[1],H instanceof Array)for(J=0;J0)for(d=c.split(" "),e=0;e0&&b.push(d[e]);return b}function sh_extractTagsFromNodeList(a,b){var d,e,f,c=a.length;for(d=0;c>d;d++)switch(e=a.item(d),e.nodeType){case 1:"br"===e.nodeName.toLowerCase()?(f=/MSIE/.test(navigator.userAgent)?"\r":"\n",b.text.push(f),b.pos++):(b.tags.push({node:e.cloneNode(!1),pos:b.pos}),sh_extractTagsFromNodeList(e.childNodes,b),b.tags.push({pos:b.pos}));break;case 3:case 4:b.text.push(e.data),b.pos+=e.length}}function sh_extractTags(a,b){var c={};return c.text=[],c.tags=b,c.pos=0,sh_extractTagsFromNodeList(a.childNodes,c),c.text.join("")}function sh_mergeTags(a,b){var d,e,f,g,h,i,c=a.length;if(0===c)return b;if(d=b.length,0===d)return a;for(e=[],f=0,g=0;c>f&&d>g;)h=a[f],i=b[g],h.pos<=i.pos?(e.push(h),f++):(e.push(i),b[g+1].pos<=h.pos?(g++,e.push(b[g]),g++):(e.push({pos:h.pos}),b[g]={node:i.node.cloneNode(!1),pos:h.pos}));for(;c>f;)e.push(a[f]),f++;for(;d>g;)e.push(b[g]),g++;return e}function sh_insertTags(a,b){for(var j,k,l,c=document,d=document.createDocumentFragment(),e=0,f=a.length,g=0,h=b.length,i=d;h>g||f>e;)f>e?(j=a[e],k=j.pos):k=h,g>=k?(j.node?(l=j.node,i.appendChild(l),i=l):i=i.parentNode,e++):(i.appendChild(c.createTextNode(b.substring(g,k))),g=k);return d}function sh_highlightElement(a,b){var c,d,e,f,g;for($(a).parent("pre").addClass("sh_sourceCode"),c=[],d=sh_extractTags(a,c),e=sh_highlightString(d,b),f=sh_mergeTags(c,e),g=sh_insertTags(f,d);a.hasChildNodes();)a.removeChild(a.firstChild);a.appendChild(g)}function sh_getXMLHttpRequest(){if(window.ActiveXObject)return new ActiveXObject("Msxml2.XMLHTTP");if(window.XMLHttpRequest)return new XMLHttpRequest;throw"No XMLHttpRequest implementation available"}function sh_load(language,element,prefix,suffix){var request,url;return language in sh_requests?(sh_requests[language].push(element),void 0):(sh_requests[language]=[element],request=sh_getXMLHttpRequest(),url=prefix+"sh_"+language+suffix,request.open("GET",url,!0),request.onreadystatechange=function(){var elements,i;if(4===request.readyState)try{if(request.status&&200!==request.status)throw"HTTP error: status "+request.status;for(eval(request.responseText),elements=sh_requests[language],i=0;i