var iclMenu={info:{},_rootId:function(c){var b=c.toString().split(",");return b[0]},_level:function(c){var b=c.toString().split(",");return b[1].length},getMenu:function(d){var b=iclElt(d),a,f;if(!b){alert("menu "+d+" NOT FOUND");return}for(a in b.childNodes){f=b.childNodes[a];if(f.tagName=="DIV"&&f.className=="mi"){return f}}return null},show:function(a,b){var d=a.substr(0,a.lastIndexOf(",")),c=this.info[d];if(!c){c=this.info[d]={}}this._show(d,1)},reset:function(b,a){var e;for(e in this.info){if(b<=""||this._rootId(e)==b){this.resetItem(e)}}if(a){var c=window,d=c.parent;if(c!=d&&d.iclMenu){d.iclMenu.reset(b,1)}}},resetItem:function(c){var a,b=this.info[c];if(a=b.open_to){clearTimeout(a);this.info[c].open_to=0}if(a=b.close_to){clearTimeout(a);this.info[c].close_to=0}if(a=b.vis){this._show(c,0)}},showItem:function(d,a){var c=iclElt(d);if(c){var b=c;while(b=b.parentNode){if(b.tagName=="LI"){b.style.display=a?"block":"none";return c}if(b.tagName!="A"&&b.tagName!="SPAN"){break}}}alert("menu:showItem("+d+"): not found");return 0},hov:function(d,g){var c=d.id.substr(0,d.id.lastIndexOf(",")),b=this.info[c],f,a=this._level(c)>1;if(!b){b=this.info[c]={}}f=b.close_to;if(g){if(f){clearTimeout(f);this.info[c]["close_to"]=0}if(a){f=b.open_to;if(!f){this.info[c]["open_to"]=setTimeout("iclMenu.onTimer('"+c+"',1)",200)}}else{this._show(c,1)}}else{if(!f){this.info[c]["close_to"]=setTimeout("iclMenu.onTimer('"+c+"',0)",a?100:50)}}this.info[c]["open"]=g},onTimer:function(a,c){var b=c?"open_to":"close_to";this.info[a][b]=0;this._show(a,this.info[a].open)},_show:function(n,j){var i=this.info[n].vis;if(j){if(i){return}}else{if(!i){return}}var k=iclElt(n+",ti"),d=iclElt(n+",mi"),c=iclElt(n+",dn");this.info[n].vis=j;if(!c){return}if(j){var e=this._level(n);this.setOpen(d,1);if(c){if(e>1){var h=n.substr(0,n.length-1),g=iclElt(h+",ti"),m=iclElt(h+",dn"),p=g.offsetTop-g.offsetHeight,f=m.offsetWidth-m.offsetLeft;c.style.top=p+"px";c.style.left=(f-5)+"px"}else{var a=k.parentNode,o=300;if(c.offsetWidth<o&&c.offsetWidth<a.offsetWidth){var b=a.offsetWidth;if(b>o){b=o}c.style.width=b+"px"}}}}else{this.setOpen(d,0)}c.style.visibility=j?"visible":"hidden"},setOpen:function(b,d){var c=b.className,a=c.indexOf("open");if(d){if(a<0){b.className=c+(c>""?" open":"open")}}else{if(a>=0){b.className=c.substr(0,a>0?a-1:a)}}}};