var divMenu = new FSMenu('divMenu', false, 'visibility', 'visible', 'hidden');
divMenu.showDelay = 250;
divMenu.switchDelay = 250;
divMenu.hideDelay = 300;
divMenu.cssLitClass = 'highlighted';
divMenu.showOnClick = 1;

FSMenu.prototype.onshow = function(mN) 
{ 
	with (this)
	{
		var m = menus[mN];
	
		if (!isIE || !window.createPopup) return;
	
		// Create a new transparent IFRAME if needed, and insert under the menu.
		if (!m.ifr)
 		{
  			m.ifr = document.createElement('iframe');
  			m.ifr.src = 'about:blank';
  			with (m.ifr.style)
  			{
   				position = 'absolute';
   				border = 'none';
   				filter = 'progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)';
  			}
  			m.lyr.ref.parentNode.insertBefore(m.ifr, m.lyr.ref);
 		}
 	
 		// Position and show it on each call.
 		with (m.ifr.style)
 		{
  			left = m.lyr.ref.offsetLeft + 'px';
  			top = m.lyr.ref.offsetTop + 'px';
  			width = m.lyr.ref.offsetWidth + 'px';
  			height = m.lyr.ref.offsetHeight + 'px';
  			visibility = 'visible';
 		}
	}
};


FSMenu.prototype.onhide = function(mN) 
{
	with (this)
	{
 		if (!isIE || !window.createPopup) return;
 		var m = menus[mN];
 		if (m.ifr) m.ifr.style.visibility = 'hidden';
	}
};
