var d=document;(function(){var H=function(J){return new Array(J+1).join("&nbsp;")},I=function(J){return d.getElementsByTagName(J)},B=function(J){return J.replace(/^\s+|\s+$/g,"")},E=function(J,Q,O){var L="",R=Q.split("\n");for(var P=0,M=R.length;P<M;P++){var K=R[P];if((K=B(R[P]))!==""){if(K.indexOf("{")!=-1){L+=H(2);if(K.indexOf("}")!=-1){L=L.slice(0,L.length-12);if(K.indexOf("{}")==-1){K=L.slice(0,L.length-12)+K}else{K=L+K}}else{K=L.slice(0,L.length-12)+K}}else{if(K.indexOf("}")!=-1){L=L.slice(0,L.length-12);K=L+K}else{K=L+K}}for(var N in O){if(N==="tag"){K=K.replace(O[N],"<<span class="+N+">$1</span>")}else{if(N!=="mulComment"){K=K.replace(O[N],"<span class="+N+">$1</span>")}}}R[P]=K+"<br />"}}J.innerHTML=R.join("").replace(O.mulComment,"<span class='comment mulComment'>$1</span>")};var C=function(J){var K=J.className,L=d.createElement("div");L.className="pretty-code";J.parentNode.insertBefore(L,J);J.parentNode.removeChild(J);switch(K){case"brush: jscript;":E(L,J.innerHTML,{str:/("[\s\S]*?"|'[\s\S]*?')/g,keyword:/(function|var\s|new\s|return\s|for\s|else if|else\s|this|break|try\s|catch\s|finally|switch\s|continue|false|true|instanceof\s|typeof\s|throws\s|null|while|do\s|if\s|case\s)/g,attr:/(getElementById|childNodes|getElementsByTagName|hasChildNodes|firstChild|lastChild|nextSibling|previousSibling|parentNode|removeChild|replaceChild|createElement|createTextNode|setAttribute|getAttribute|removeAttribute|appendChild|nodeType|nodeName|nodeValue|addEventListener|removeEventListener|attachEvent|detachEvent|insertBefore|attributes|cloneNode)/g,comment:/(\/\/.*|\/<s[^>]+>.*)/g,mulComment:/(\/\*([\S\s]*?)\*\/)/g});break;case"brush: xml;":E(L,J.innerHTML,{str:/((&quot;|")[\s\S]*?(&quot;|")|'[\s\S]*?')/g,tag:/&lt;(\/?\w+)/g,mulComment:/(&lt;\!--[\S\s]*?--\&gt;)/g});break;case"brush: php;":E(L,J.innerHTML,{reg:/(\/[^\/][\s\S]*\/[igm]{0,3})/g,str:/("[\s\S]*?"|'[\s\S]*?')/g,keyword:/(function|var\s|new\s|return|for\s|this|break|try|catch|finally|switch\s|continue|foreach\s|if\s|else\s|else if|class\s|typeof\s|throws\s|null|while\s|do\s|switch|case\s|true|false)/g,comment:/(\/\/.*|\/<s[^>]+>.*)/g,"var":/(\$\w+)/g,mulComment:/(\/\*([\S\s]*?)\*\/)/g});break}};var G=I("pre"),D=G.length,A=[];while(D--){if(G[D].className){A.push(G[D])}}for(var F=0,D=A.length;F<D;F++){C(A[F])}})();
