

M_ToolTipDelay=700    // Milliseconds after menu has been displayed before showing tooltip
M_maxWidth=0          // Sets the maximum width, set to 0 for 100%


with(M_toolTipStyle=new mm_style()){
    offbgcolor = "#99FF33";
      offcolor = "#000000";
   bordercolor = "#3366FF";
   borderstyle = "solid";
       padding = 1
   borderwidth = 2
      fontsize = "10px";
     fontstyle = "normal";
    fontfamily = "tahoma, verdana";   
    overfilter = "gradientwipe(size=1.00, wipestyle=1, motion=Up, duration=0.7)Fade(duration=0.2);Alpha(opacity=85);"
}
with(new menuname("M_toolTips"))
{
	top="offset=-30"
	left="offset=20"
	style=M_toolTipStyle;
	aI("text=;type=ToolTip;");
}

//drawMenus()



function buildTips(_ttext)                // Function for showing Tooltips
{
	_Tmnu=getMenuByName("M_toolTips")     // Get a reference to the tooltips menu
	_Tgm=gmobj("menu"+_Tmnu)              // Get the object reference to the tooltips menu
	if(!ns4&&(!_m[_Tmnu][23]&&!_startM))  // If the menu hasn't been built yet, build it
	{
		_m[_Tmnu][23]=_Tmnu               // Set the menu built flag
		BDMenu(_Tmnu)                     // Build the menu, this only happens once, or at least should do.
	}

	_el=_m[_Tmnu][0][0]                   // Set the menu element reference for building the menu items
	_mi[_el][1]=_ttext                    // Set the menu items text. This is the text that will be displayed
	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)   // Change the menu item for browsers other than Netscape 4
	}
		
	_i=_itemRef
	popup("M_toolTips",1);                // Display the menu based on MouseX and MouseY coordinates	
	_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
	{
		//alert()
		_Tgm.style.zIndex=_zi+100
	}
	
}

function showtip(_ttext)                  // This function that sets the timer for showing the tooltip
{
	clearTimeout(_Mtip)	                  // Clear the ToolTop timer
	_Mtip=null                            // Need to set the timer to null for Konquerers sake.
	if(!op5&&!op6)                        // Don't bother with Opera 5 or Opera 6, these browsers do not support dynamic change of text
	if(!inDragMode)
	{	
		_Mtip=setTimeout("buildTips('"+_ttext+"',1)",_menuOpenDelay+M_ToolTipDelay) // Set the tooltip timer
	}
}

////////////////////////////////////////DISP

M_ToolTipDelay_disp=10    // Milliseconds after menu has been displayed before showing tooltip
M_maxWidth_disp=0          // Sets the maximum width, set to 0 for 100%


with(M_toolTipStyle_disp=new mm_style()){
    offbgcolor = "#0099FF";
      offcolor = "#000000";
   bordercolor = "#0033CC";
   borderstyle = "solid";
       padding = 0
   borderwidth = 0
      fontsize = "10px";
     fontstyle = "normal";
	fontfamily="Verdana, Tahoma, Arial";
    overfilter = "Fade(duration=0.6);Alpha(opacity=97);"
}
with(new menuname("M_toolTips_disp"))
{
	top="offset=-35"
	left="offset=5"
	style=M_toolTipStyle_disp;
	aI("text=;type=ToolTip;");
}
///////////////////////////BOXES
M_ToolTipDelay_boxes=5    // Milliseconds after menu has been displayed before showing tooltip
M_maxWidth_boxes=0          // Sets the maximum width, set to 0 for 100%


with(M_toolTipStyle_boxes=new mm_style()){
    offbgcolor = "#99FF33";
      offcolor = "#000000";
   bordercolor = "#3366FF";
   borderstyle = "solid";
       padding = 0
   borderwidth = 0
      fontsize = "10px";
     fontstyle = "normal";
	fontfamily="Verdana, Tahoma, Arial";
	overfilter="gradientwipe(size=1.00, wipestyle=0, motion=Forward, duration=0.7);Alpha(opacity=90);Shadow(color='#3366FF', Direction=315, Strength=6);Shadow(color='#FF9900', Direction=135, Strength=6);";
}
with(new menuname("M_toolTips_boxes"))
{
	top="offset=-20"
	left="offset=20"
	style=M_toolTipStyle_boxes;
	aI("text=;type=ToolTip;");
}



//drawMenus()



function buildTips_disp(_ttext)                // Function for showing Tooltips
{
	_Tmnu=getMenuByName("M_toolTips_disp")     // Get a reference to the tooltips menu
	_Tgm=gmobj("menu"+_Tmnu)              // Get the object reference to the tooltips menu
	if(!ns4&&(!_m[_Tmnu][23]&&!_startM))  // If the menu hasn't been built yet, build it
	{
		_m[_Tmnu][23]=_Tmnu               // Set the menu built flag
		BDMenu(_Tmnu)                     // Build the menu, this only happens once, or at least should do.
	}

	_el=_m[_Tmnu][0][0]                   // Set the menu element reference for building the menu items
	_mi[_el][1]=_ttext                    // Set the menu items text. This is the text that will be displayed
	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)   // Change the menu item for browsers other than Netscape 4
	}
		
	_i=_itemRef
	popup("M_toolTips_disp",1);                // Display the menu based on MouseX and MouseY coordinates	
	_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
	{
		//alert()
		_Tgm.style.zIndex=_zi+100
	}
	
}

function buildTips_boxes(_ttext)                // Function for showing Tooltips
{
	_Tmnu=getMenuByName("M_toolTips_boxes")     // Get a reference to the tooltips menu
	_Tgm=gmobj("menu"+_Tmnu)              // Get the object reference to the tooltips menu
	if(!ns4&&(!_m[_Tmnu][23]&&!_startM))  // If the menu hasn't been built yet, build it
	{
		_m[_Tmnu][23]=_Tmnu               // Set the menu built flag
		BDMenu(_Tmnu)                     // Build the menu, this only happens once, or at least should do.
	}

	_el=_m[_Tmnu][0][0]                   // Set the menu element reference for building the menu items
	_mi[_el][1]=_ttext                    // Set the menu items text. This is the text that will be displayed
	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)   // Change the menu item for browsers other than Netscape 4
	}
		
	_i=_itemRef
	popup("M_toolTips_boxes",1);                // Display the menu based on MouseX and MouseY coordinates	
	_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
	{
		//alert()
		_Tgm.style.zIndex=_zi+100
	}
	
}
function showtip_disp(_ttext)                  // This function that sets the timer for showing the tooltip
{
	clearTimeout(_Mtip)	                  // Clear the ToolTop timer
	_Mtip=null                            // Need to set the timer to null for Konquerers sake.
	if(!op5&&!op6)                        // Don't bother with Opera 5 or Opera 6, these browsers do not support dynamic change of text
	if(!inDragMode)
	{	
		_Mtip=setTimeout("buildTips_disp('"+_ttext+"',1)",_menuOpenDelay+M_ToolTipDelay_disp) // Set the tooltip timer
	}
}

function showtip_boxes(_ttext)                  // This function that sets the timer for showing the tooltip
{
	clearTimeout(_Mtip)	                  // Clear the ToolTop timer
	_Mtip=null                            // Need to set the timer to null for Konquerers sake.
	if(!op5&&!op6)                        // Don't bother with Opera 5 or Opera 6, these browsers do not support dynamic change of text
	if(!inDragMode)
	{	
		_Mtip=setTimeout("buildTips_boxes('"+_ttext+"',1)",_menuOpenDelay+M_ToolTipDelay_boxes) // Set the tooltip timer
	}
}
