function sCl(c,o){if((o=o||gET('html')[0]).className==rCl(o,c))aCl(o,c)}
function aCl(o,c){o.className+=' '+c}
function rCl(o,c){return o.className=o.className.replace(new RegExp('\\b'+c+'\\b','g'),'')}

function gET(t,p){return(p||document).getElementsByTagName(t)}
function gId(i){return document.getElementById(i)}

function aEL(o,t,f){var a=[].slice.call(arguments,3)
o[t+f]=function(e){return !1===f.apply(o,[e||window.event].concat(a))?e.preventDefault?e.preventDefault():!1:1}
return(o.addEventListener)?o.addEventListener(t,o[t+f],!1):(o.x=o.attachEvent)?o.x('on'+t,o[t+f]):!1}


aEL(window,'load',function(c){
function emulateTarget(){if(this.hash&&(window.location.href.split('#')[0]==this.href.split('#')[0])){rCl(gId(c),'target');aCl(gId(c=this.hash.substr(1)),'target');return!1}}

c='menuMainL1'
for(i=0,a=gET('a',gId(c));a[i];i++){aEL(a[i],'click',emulateTarget)
if(a[i].parentNode.className=='current'){c=a[i].hash.substr(1);aCl(gId(c),'target')}} 
})


sCl('JSON')
