
var divMenu = new FSMenu('divMenu', false, 'visibility', 'visible', 'hidden');
divMenu.showDelay = 100;
divMenu.switchDelay = 100;
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';
}}};

function fixMacOpacity() {
  var userAgent = navigator.userAgent.toLowerCase();
  if (userAgent.indexOf('mac') != -1 && userAgent.indexOf('firefox')!=-1) {
    document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"styles/dropdown_mac.css\">')
  } else {
	document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"styles/dropdown.css\">')
  }
}

function fixModal() {
  var user = navigator.user.toLowerCase();
  if (user.indexOf('win') != -1 && user.indexOf('firefox')!=-1) {
    document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"styles/dropdown_mac.css\">')
  } else {
	document.write('<link rel=\"stylesheet\" type=\"text/css\" href=\"styles/dropdown.css\">')
  }
}
