/**
 *	Class to encapsulate a floating menu item.
 *
 *	@author		Unknown
 *	@version	1.0
 *	@copyright	Katana Productions Pty Ltd 2002
*/
function FloatingMenuItem(text, link)
{
  this.text = text;
  this.link = link;
}

/**
 *	Get the HTML for the floating menu item.
*/
FloatingMenuItem.prototype.getHTML = function()
{
  var html = '<div style="padding-top:1px;padding-bottom:1px;padding-left:21px;padding-right:21px;cursor:default;" onmouseover=FloatingMenuItem.mouseover() onmouseout=FloatingMenuItem.mouseout() onclick="' + this.link + '" noWrap>' + this.text + '</div>';
  return html;
}

/**
 *	Event handler for mouseover event.
*/
FloatingMenuItem.mouseover = function()
{
  var elm = event.srcElement;
  elm.style.color = "white";
  elm.style.backgroundColor = "highlight";
}

/**
 *	Event handler for mouseout event.
*/
FloatingMenuItem.mouseout = function()
{
  var elm = event.srcElement;
  elm.style.color = "black";
  elm.style.backgroundColor = "";
}