function yadm(){var _1="isParent";var _2="isActive";var _3="nohover";var _4="dhtml";var _5="hiddenChild";var _6="shownChild";var _7="current";var d=document.getElementById("nav");if(!document.getElementById&&!document.createTextNode){return;}if(d){d.className+=d.className==""?_4:" "+_4;var _9,i,firstUL,j,apply;_9=d.getElementsByTagName("li");for(i=0;i<_9.length;i++){firstUL=_9[i].getElementsByTagName("ul")[0];if(firstUL){_9[i].childNodes[0].onclick=function(){return false;};_9[i].className+=_9[i].className==""?_1:" "+_1;apply=true;if(new RegExp("\\b"+_7+"\\b").test(_9[i].className)){apply=false;}if(apply){for(j=0;j<firstUL.getElementsByTagName("li").length;j++){if(new RegExp("\\b"+_7+"\\b").test(firstUL.getElementsByTagName("li")[j].className)){apply=false;break;}}}if(apply){firstUL.className+=firstUL.className==""?_5:" "+_5;if(new RegExp("\\b"+_3+"\\b").test(d.className)){_9[i].onclick=function(){doyadm(this);};}else{_9[i].onclick=function(){doyadm(this);};_9[i].onmouseover=function(){doyadm(this);};_9[i].onmouseout=function(){doyadm(null);};}}else{_9[i].keepopen=1;firstUL.className+=firstUL.className==""?_6:" "+_6;_9[i].className=_9[i].className.replace(_1,_2);}}}}function doyadm(o){var _b,isobj,swap;_9=d.getElementsByTagName("li");for(i=0;i<_9.length;i++){isobj=_9[i]==o;swap=function(_c,_d,_e){_c.className=_c.className.replace(_d,_e);};if(!_9[i].keepopen){_b=_9[i].getElementsByTagName("ul")[0];if(_b){if(new RegExp("\\b"+_3+"\\b").test(d.className)){if(new RegExp("\\b"+_2+"\\b").test(_9[i].className)){swap(_b,isobj?_6:_5,isobj?_5:_6);swap(_9[i],isobj?_2:_1,isobj?_1:_2);}else{swap(_b,isobj?_5:_6,isobj?_6:_5);swap(_9[i],isobj?_1:_2,isobj?_2:_1);}}else{swap(_b,isobj?_5:_6,isobj?_6:_5);swap(_9[i],isobj?_1:_2,isobj?_2:_1);}}}}}}
