function _cO(_co){return (_co!=null);}function _cY(_cy){return document.getElementById(_cy); }function _cI(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.firstChild; return _co; }function _cA(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.nextSibling; return _co; }function _ca(_co,_ci){if (!_cO(_ci))_ci=1; for (var i=0; i<_ci; i++)_co=_co.parentNode; return _co; }function _cE(_co){return _co.className; }function _ce(_co,_cU){_co.className=_cU; }function _cu(_co,_cU){_co.style.height=_cU+"px"; }function _cZ(_co){return parseInt(_co.style.height); }function _cz(_co,_cU){_co.style.display=(_cU)?"block": "none"; }function _cX(_co){return (_co.style.display!="none"); }function _cx(_cW,_cw,_cV){_ce(_cV,_cE(_cV).replace(_cW,_cw)); }function _cv(_co,_cT){if (_co.className.indexOf(_cT)<0){var _ct=_co.className.split(" "); _ct.push(_cT); _co.className=_ct.join(" "); }}function _cS(_co,_cT){if (_co.className.indexOf(_cT)>-1){_cx(_cT,"",_co);var _ct=_co.className.split(" "); _co.className=_ct.join(" "); }}function _cs(_cW,_cR){return _cR.indexOf(_cW); }var _ci03=window; function _cr(){return _cO(_ci03); }function _cQ(_cq,_cP,_cp,_cN){if (_cq.addEventListener){_cq.addEventListener(_cP,_cp,_cN); return true; }else if (_cq.attachEvent){if (_cN){return false; }else {var _cn= function (){_cp.apply(_cq,[window.event]); };if (!_cq["ref"+_cP])_cq["ref"+_cP]=[]; else {for (var _cM in _cq["ref"+_cP]){if (_cq["ref"+_cP][_cM]._cp === _cp)return false; }}var _cm=_cq.attachEvent("on"+_cP,_cn); if (_cm)_cq["ref"+_cP].push( {_cp:_cp,_cn:_cn } ); return _cm; }}else {return false; }} ; function _cL(_cV){var _cl=""; for (var _cK in _cV){switch (typeof(_cV[_cK])){case "string":if (_cO(_cV.length))_cl+="'"+_cV[_cK]+"',"; else _cl+="'"+_cK+"':'"+_cV[_cK]+"',"; break; case "number":if (_cO(_cV.length))_cl+=_cV[_cK]+","; else _cl+="'"+_cK+"':"+_cV[_cK]+","; break; case "object":if (_cO(_cV.length))_cl+=_cL(_cV[_cK])+","; else _cl+="'"+_cK+"':"+_cL(_cV[_cK])+","; break; }}if (_cl.length>0)_cl=_cl.substring(0,_cl.length-1); _cl=(_cO(_cV.length))?"["+_cl+"]": "{"+_cl+"}"; if (_cl=="{}")_cl="null"; return _cl; }var _ck= {_cJ:function (){ this._cj=new Array(); this._cH=new Array(); this._ch=new Array(); this._cG=new Array(); this._cg=new Array(); this._cF=10; } ,_cf:function (_cD){var _cd=_cY(this._cj[_cD]); var _cC=_cA(_cI(_cd)); if (!_cO(_cC) || _cr()){ this._ch[_cD]=1; return; }_cC.style.overflow="hidden"; _cv(_cd,"ksmEffect"); _cz(_cC,1); this._cG[_cD]=(new SlideMenuPanel(this._cj[_cD])).getSlideMenu()._cc; this._cg[_cD]=_cC.offsetHeight-((this._cG[_cD]<0)?_cC.scrollHeight: this._cG[_cD])+1; if (this._cH[_cD]){_cu(_cC,1); }else {_cu(_cC,((this._cG[_cD]<0)?_cC.scrollHeight: this._cG[_cD])-this._cg[_cD]); }} ,_cB:function (_cb,_co0){if (this._cO0()){var _cD=-1; for (var i=0; i=((this._cG[i]<0)?_cC.scrollHeight: this._cG[i])-this._cg[i]){ this._ch[i]=1; _cC.style.height=""; _cC.style.display=""; _cC.style.overflow=""; _cS(_cd,"ksmEffect"); }}else {var _cl1=_cZ(_cC)-this._ci0; _cu(_cC,(_cl1<0)?0:_cl1); if (_cZ(_cC)<=0){ this._ch[i]=1; _cC.style.height=""; _cC.style.display=""; _cC.style.overflow=""; _cS(_cd,"ksmEffect"); }}}}if (_cO1){ this._ci1(); }else { this._cI0=setTimeout( function (){_ck._co1();} ,this._cF); }} ,_ci1:function (){clearTimeout(this._cI0); this._cI0=null; this._cJ(); } ,_cO0:function (){return _cO(this._cI0); }};_ck._cJ(); function SlideMenuParent(_cy){ this._cy=_cy; }SlideMenuParent.prototype= {expand:function (){if (!this.isExpanded()){if (!this.getSlideMenu()._cI1("OnBeforeExpand", { "ItemId": this._cy } ))return; var _co2=this.getSlideMenu(); var _cd=_cY(this._cy); if (_co2._cO2){var _cl2=_ca(_cd); for (var i=0; i<_cl2.childNodes.length; i++){var _ci2=new SlideMenuParent(_cl2.childNodes[i].id); if (_ci2.isExpanded()){_ci2.collapse(); }}}_cS(_cd,"ksmCollapse"); if (!_ck._cO0()){_ck._cJ(); _ck._cB(this._cy,1); _ck._cl0(_co2._cI2); }else {_ck._cB(this._cy,1); } this.getSlideMenu()._cI1("OnExpand", { "ItemId": this._cy } ); }} ,collapse:function (){if (this.isExpanded()){if (!this.getSlideMenu()._cI1("OnBeforeCollapse", { "ItemId": this._cy } ))return; var _cd=_cY(this._cy); var _cC=_cA(_cI(_cd)); _cv(_cd,"ksmCollapse"); if (!_ck._cO0()){_ck._cJ(); _ck._cB(this._cy,0); _ck._cl0(this.getSlideMenu()._cI2); }else {_ck._cB(this._cy,0); } this.getSlideMenu()._cI1("OnCollapse", { "ItemId": this._cy } ); }} ,isExpanded:function (){var _cd=_cY(this._cy); return (_cs("Collapse",_cE(_cd))<0);} ,getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,_cO3:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; } ,_cl3:function (_ci3){if (this.isExpanded())this.collapse(); else this.expand(); } ,_cI3:function (_ci3){ this.getSlideMenu()._cI1("OnParentMouseOver", { "ItemId": this._cy } ); } ,_co4:function (_ci3){ this.getSlideMenu()._cI1("OnParentMouseOut", { "ItemId": this._cy } ); }};function SlideMenuChild(_cy){ this._cy=_cy; }SlideMenuChild.prototype= {select:function (){var _co2=this.getSlideMenu(); var _cO4=_co2._cl4(); var _ci4=_cO4.selectedId; if (_cI4!=this._cy){if (!this.getSlideMenu()._cI1("OnBeforeSelect", { "ItemId": this._cy } ))return; if (_ci4!=""){var _cI4=new SlideMenuChild(_ci4); _cI4.unselect(); }var _co5=_cI(_cY(this._cy)); _cv(_co5,"ksmSelected"); _cO4.selectedId=this._cy; _co2._cO5(_cO4); this.getSlideMenu()._cI1("OnSelect", { "ItemId": this._cy } ); }} ,unselect:function (){var _co2=this.getSlideMenu(); var _cO4=_co2._cl4(); var _ci4=_cO4.selectedId; if (_ci4==this._cy){if (!this.getSlideMenu()._cI1("OnBeforeUnselect", { "ItemId": this._cy } ))return; var _co5=_cI(_cY(this._cy)); _cS(_co5,"ksmSelected"); _cO4.selectedId=this._cy; _co2._cO5(_cO4); this.getSlideMenu()._cI1("OnUnselect", { "ItemId": this._cy } ); }} ,_cl5:function (){var _co5=_cI(_cY(this._cy)); return (_cs("smSelected",_cE(_co5))>0); } ,getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,_cO3:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; } ,_cl3:function (_ci3){if (this.getSlideMenu()._ci5){if (!this._cl5()){ this.select(); }}} ,_cI3:function (_ci3){ this.getSlideMenu()._cI1("OnChildMouseOver", { "ItemId": this._cy } ); } ,_co4:function (_ci3){ this.getSlideMenu()._cI1("OnChildMouseOut", { "ItemId": this._cy } ); }};function SlideMenuPanel(_cy){ this._cy=_cy; }SlideMenuPanel.prototype= {getSlideMenu:function (){var _co3=_cY(this._cy); while (_cs("KSM",_cE(_co3))<0){_co3=_ca(_co3); }return eval(_co3.id); } ,_cO3:function (){var _co3=_ca(_cY(this._cy)); while (_cs("smParent",_cE(_cI(_co3)))<0){_co3=_ca(_co3); }return _co3.id; }};function KoolSlideMenu(_cy,_ci5,_cI2,_cO2,_cc,_cI5){ this._cy=_cy; this._cO2=_cO2; this._cc=_cc; this._cI2=_cI2; this._ci5=_ci5; this._co6=new Array(); _cY(_cy+".clientState").value=_cI5; this._cO6(); }KoolSlideMenu.prototype= {_cO6:function (){var _co2=_cY(this._cy); var _cl6=_co2.getElementsByTagName("li"); for (var i=0; i<_cl6.length; i++){if (_cs("smLI",_cE(_cl6[i]))>0){var _co5=_cI(_cl6[i]); if (_cs("smParent",_cE(_co5))>0 || _cs("smChild",_cE(_co5))>0){_cQ(_co5,"click",_ci6, false); _cQ(_co5,"mouseover",_cI6, false); _cQ(_co5,"mouseout",_co7, false); }}}} ,_cl4:function (){var _cO7=_cY(this._cy+".clientState"); var _cl7=eval("__="+_cO7.value); return _cl7; } ,_cO5:function (_cl7){var _cO7=_cY(this._cy+".clientState"); _cO7.value=_cL(_cl7); } ,collapseAll:function (){var _co2=_cY(this._cy); var _cl6=_co2.getElementsByTagName("li"); for (var i=0; i<_cl6.length; i++){if (_cs("smLI",_cE(_cl6[i]))>0){if (_cs("smParent",_cE(_cI(_cl6[i])))>0){var _ci2=new SlideMenuParent(_cl6[i].id); if (_ci2.isExpanded()){_ci2.collapse(); }}}}} ,expandAll:function (){var _co2=_cY(this._cy); var _cl6=_co2.getElementsByTagName("li"); for (var i=0; i<_cl6.length; i++){if (_cs("smLI",_cE(_cl6[i]))>0){if (_cs("smParent",_cE(_cI(_cl6[i])))>0){var _ci2=new SlideMenuParent(_cl6[i].id); if (!_ci2.isExpanded()){_ci2.expand(); }}}}} ,getItem:function (_ci7){var _cT=_cE(_cI(_cY(_ci7))); var _cI7=null; if (_cs("smParent",_cT)>0){_cI7=new SlideMenuParent(_ci7); }else if (_cs("smChild",_cT)>0){_cI7=new SlideMenuChild(_ci7); }else if (_cs("smPanel",_cT)>0){_cI7=new SlideMenuPanel(_ci7); }return _cI7; } ,getSelectedId:function (){return this._cl4().selectedId; } ,registerEvent:function (_cK,_co8){if (!_cr())this._co6[_cK]=_co8; else return true; } ,_cI1:function (_cK,_cO8){if (_cr())return true; return (_cO(this._co6[_cK]))?this._co6[_cK](this,_cO8): true; }};function _ci6(_ci3){if (_cs("smChild",_cE(this ))>0){var _cI7=new SlideMenuChild(_ca(this ).id); }else {var _cI7=new SlideMenuParent(_ca(this ).id); }_cI7._cl3(_ci3); }function _cI6(_ci3){if (_cs("smChild",_cE(this ))>0){var _cI7=new SlideMenuChild(_ca(this ).id); }else {var _cI7=new SlideMenuParent(_ca(this ).id); }_cI7._cI3(_ci3); }function _co7(_ci3){if (_cs("smChild",_cE(this ))>0){var _cI7=new SlideMenuChild(_ca(this ).id); }else {var _cI7=new SlideMenuParent(_ca(this ).id); }_cI7._co4(_ci3); } var _ci03=null;