var jwebMenu2={
	/********************************************/
	_delay:400,
	_timeout:0,
	_open:[],
	/********************************************/
	init:function(id){
		var wrap=document.getElementById(id),self=this;
		wrap.onmouseover=function(event){self._event(event)};
		wrap.onmouseout=function(event){self._event(event,this)};
		wrap.onclick=function(event){self._event(event)};
		},
	/********************************************/
	_event:function(e,w){
		e=jweb.event.get(e);
		var d=-1,a=0,self=this;
		if('mouseout'==e.type){
			if(jweb.event.isMouseLeave(e,w)){
				d=this._delay;
				}
			}
		else if('A'==e.target.tagName){
			a=e.target;
			d=(('click'==e.type)||('top'==a.id))?0:this._delay;
			}
		if(d>-1){
			clearTimeout(this._timeout);
			this._timeout=setTimeout(function(){self._draw(a)},d);
			}
		},
	/********************************************/
	_draw:function(a){
		// find parent table
		var pntTab=a;
		while(pntTab&&pntTab.tagName!='TABLE'){
			pntTab=pntTab.parentNode;
			}
		// close
		var tmpTab,tmpA,i=this._open.length;
		while(--i>-1){
			tmpTab=this._open[i][1];
			tmpA=this._open[i][0];
			if(pntTab==tmpTab){
				break;
				}
			tmpTab.style.display='none';
			tmpA.className='';
			jweb.ieWindowedsCover.uncover(tmpTab);
			if('top'==tmpA.id){
				jwebDeco.unmake(tmpA);
				}
			this._open.pop();
			}
		// is mouse out
		if(!a)return;
		// find sub tab
		if('top'==a.id){
			tmpTab=a.parentNode.getElementsByTagName('TABLE')[0];
			}
		else{
			tmpTab=a.parentNode.parentNode.cells[1].getElementsByTagName('TABLE')[0];
			}
		// has no sub tab
		if(!tmpTab)return;
		// open
		a.className='path'
		tmpTab.style.display='block';
		jweb.ieWindowedsCover.cover(tmpTab);
		if('top'==a.id){
			jwebDeco.make(a,'R6S4,100',1);
			}
		jwebDeco.make(tmpTab,'R6S4,100');
		this._open.push([a,tmpTab]);
		}
	/********************************************/
	};