
var MM_contentVersion = 7;
var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
if ( plugin ) {
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");
		for (var i = 0; i < words.length; ++i)
		{
		if (isNaN(parseInt(words[i])))
		continue;
		var MM_PluginVersion = words[i]; 
		}
	var MM_FlashCanPlay = MM_PluginVersion >= MM_contentVersion;
}
else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 
   && (navigator.appVersion.indexOf("Win") != -1)) {
	document.write('<SCR' + 'IPT LANGUAGE=VBScript\> \n'); //FS hide this from IE4.5 Mac by splitting the tag
	document.write('on error resume next \n');
	document.write('MM_FlashCanPlay = ( IsObject(CreateObject("ShockwaveFlash.ShockwaveFlash." & MM_contentVersion)))\n');
	document.write('</SCR' + 'IPT\> \n');
}


var FO_Count = 0;
function FlashObject( Path )
{
  this.ID = FO_Count++;
  
  this.Path = Path;
  this.Width = "100%";
  this.Height = "100%";
  this.FlashVars = null;
  this.BgColor = "#ffffff";
  this.Alt = "";
  this.SwfId = "FO_" + this.ID;
  this.WMode = "opaque";
  this.Quality = "high";
  this.Scale = "noscale";
  this.SAlign = "lt";
  this.Menu = "false";

  this.insertSwf = FO_insSwf;
  this.getSwf = FO_getSwf;
}


function FO_insSwf()
{
	document.write( this.getSwf() );
}
function FO_getSwf()
{
	if( typeof(MM_FlashCanPlay) == "undefined" || MM_FlashCanPlay == false )
	{
		return this.Alt;
	}

	var FlashHtml = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="' + this.Width + '" height="' + this.Height + '" id="' + this.SwfId + '" align="middle"><param name="allowScriptAccess" value="sameDomain" /><param name="movie" value="' + this.Path + '" />';
	if( typeof(this.FlashVars) == "string" && this.FlashVars != '')
		FlashHtml += '<param name="FlashVars" value="' + this.FlashVars + '" />';
		FlashHtml += '<param name="menu" value="'+this.Menu+'" /><param name="wmode" value="'+this.WMode +'" /><param name="quality" value="'+this.Quality+'" /><param name="scale" value="'+this.Scale+'" /><param name="salign" value="'+this.SAlign+'" /><param name="bgcolor" value="' + this.BgColor + '" />';
		FlashHtml += '<embed src="' + this.Path + '" '
		if( typeof(this.FlashVars) == "string" && this.FlashVars != '')
			FlashHtml += 'FlashVars="' + this.FlashVars + '" ';
	FlashHtml += 'menu="'+this.Menu+'" wmode="'+this.WMode+'" quality="'+this.Quality+'" scale="'+this.Scale+'" salign="'+this.SAlign+'" bgcolor="' + this.BgColor + '" width="' + this.Width + '" height="' + this.Height + '" name="' + this.SwfId + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
	FlashHtml += '</object>';
  //alert(FlashHtml)
	return FlashHtml;
}
function addEvent(elm, evType, fn, useCapture)
{
   if(elm.addEventListener)
   {
      elm.addEventListener(evType, fn, useCapture);
      return true;
   }
   else if(elm.attachEvent)
   {
      var r = elm.attachEvent('on'+evType, fn);
      //EventCache.add(elm, evType, fn);
      return r;
   }
   else
   {
      elm['on'+evType] = fn;
   }
}

sM = {
   init: function()
   {
      return;
   },
   getmover: function(n)
   {
      return function (e){ sM.mover(e, n) };
   },
   getmout:  function(n)
   {
      return function (e){ sM.mout(e, n) };
   },
   mover: function(e,cTarget)
   {
      var el = window.event ? cTarget : e ? e.currentTarget : null;
      if(!el) return;
      
      while(el.nodeName.toLowerCase() != "li" && el.nodeName.toLowerCase() != "body")
      {
         el = el.parentNode;
      }
      if(el.nodeName.toLowerCase() == "body") return;
      
      clearTimeout(el.T);
      
      for(var i=0; i<el.childNodes.length; i++)
      {
         var node = el.childNodes[i];
         if(node.nodeName.toLowerCase() == "ul" )
         {
            node.style.display = 'block';
         }
      }
   },
   mout: function(e,cTarget)
   {
      var el = window.event ? cTarget : e ? e.currentTarget : null;
      if(!el) return;
      
      while(el.nodeName.toLowerCase() != "li" && el.nodeName.toLowerCase() != "body")
      {
         el = el.parentNode;
      }
      if(el.nodeName.toLowerCase() == "body") return;
      
      el.T = setTimeout( 
      
         function(){
            for(var i=0; i<el.childNodes.length; i++)
            {
               var node = el.childNodes[i];
               if(node.nodeName.toLowerCase() == "ul" )
               {
                  node.style.display = 'none';
               }
            }
         },
         100);
   }
};
addEvent(window, "load", sM.init, false);

