

M_ToolTipDelay=50    
M_maxWidth=0          
with(M_toolTipStyle=new mm_style()){
    offbgcolor = "#ffffa1";
    offcolor = "#000000";
    bordercolor = "#999999";
    borderstyle = "solid";
    padding = 1;
    borderwidth = 1;
    fontsize = "10px";
   fontstyle = "normal";
   fontfamily = "tahoma, verdana";   
    overfilter = "Fade(duration=0.2);Shadow(color='#777777', Direction=135, Strength=5)"
}
with(new menuname("M_toolTips"))
{
	top="offset=10"
	left="offset=10"
	style=M_toolTipStyle;
	aI("text=;type=ToolTip;");
}

drawMenus()

function buildTips(_ttext)               
{
	_Tmnu=getMenuByName("M_toolTips")     
	_Tgm=gmobj("menu"+_Tmnu)             
	if(!ns4&&(!_m[_Tmnu][23]&&!_startM))  
	{
		_m[_Tmnu][23]=_Tmnu               
		BDMenu(_Tmnu)                    
	}

	_el=_m[_Tmnu][0][0]                   
	_mi[_el][1]=_ttext                    
	if(ns4)
	{
		dte="<table width=1 cellpadding=0 cellspacing=0 border=0>"+drawItem(_el)+"</table>";
		with(_Tgm.document){open();write(dte);close()}
		_brd=gmobj("bord"+_Tmnu)
		_brdwid=(_m[_Tmnu][6].borderwidth*2)
		_brd.clip.width=_Tgm.clip.width+_brdwid
		_brd.clip.height=_Tgm.clip.height+_brdwid
		_brd.bgColor=_m[_Tmnu][6].bordercolor
		
	}
	else
	{
		_Tgm.innerHTML=_drawMenu(_Tmnu)   
	}
		
	_i=_itemRef
	popup("M_toolTips",1);                
	_itemRef=_i
	_gp=gpos(_gm)

	if((_gp[0]+_gp[2])>_bH)
	{
		spos(_gm,_Y-_gp[2])
	}
	
	if(ns4)
	{
		_brd.zIndex=_zi+1
		_zi++
		_Tgm.zIndex=_zi+1
	}
	else
	{
		_Tgm.style.zIndex=_zi+100
	}
	
}

function showtip(_ttext)                
{
	clearTimeout(_Mtip)	                  
	_Mtip=null                            
	if(!op5&&!op6)                        
	if(!inDragMode)
	{	
		_Mtip=setTimeout("buildTips('"+_ttext+"',1)",_menuOpenDelay+M_ToolTipDelay) 
	}
}


