function wi_focus(Me)
{
   var Divs = Me.parentNode.getElementsByTagName('div');
   Divs[0].style.display = 'none';
}
function wi_blur(Me)
{
   var Divs = Me.parentNode.getElementsByTagName('div');
   if(Me.value == '' )
   {
      Divs[0].style.display = 'block';
   }
   else
   {
      Divs[0].style.display = 'none';
   }
}



var MM_contentVersion = 8;
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;
}

