document.writeln("<script language=\"JavaScript\" type=\"text\/javascript\">");
document.writeln("<!--");
document.writeln("\/\/v1.7");
document.writeln("\/\/ Flash Player Version Detection");
document.writeln("\/\/ Detect Client Browser type");
document.writeln("\/\/ Copyright 2005-2008 Adobe Systems Incorporated.  All rights reserved.");
document.writeln("var isIE  = (navigator.appVersion.indexOf(\"MSIE\") != -1) ? true : false;");
document.writeln("var isWin = (navigator.appVersion.toLowerCase().indexOf(\"win\") != -1) ? true : false;");
document.writeln("var isOpera = (navigator.userAgent.indexOf(\"Opera\") != -1) ? true : false;");
document.writeln("function ControlVersion()");
document.writeln("{");
document.writeln("	var version;");
document.writeln("	var axo;");
document.writeln("	var e;");
document.writeln("	\/\/ NOTE : new ActiveXObject(strFoo) throws an exception if strFoo isn\'t in the registry");
document.writeln("	try {");
document.writeln("		\/\/ version will be set for 7.X or greater players");
document.writeln("		axo = new ActiveXObject(\"ShockwaveFlash.ShockwaveFlash.7\");");
document.writeln("		version = axo.GetVariable(\"$version\");");
document.writeln("	} catch (e) {");
document.writeln("	}");
document.writeln("	if (!version)");
document.writeln("	{");
document.writeln("		try {");
document.writeln("			\/\/ version will be set for 6.X players only");
document.writeln("			axo = new ActiveXObject(\"ShockwaveFlash.ShockwaveFlash.6\");");
document.writeln("			");
document.writeln("			\/\/ installed player is some revision of 6.0");
document.writeln("			\/\/ GetVariable(\"$version\") crashes for versions 6.0.22 through 6.0.29,");
document.writeln("			\/\/ so we have to be careful. ");
document.writeln("			");
document.writeln("			\/\/ default to the first public version");
document.writeln("			version = \"WIN 6,0,21,0\";");
document.writeln("			\/\/ throws if AllowScripAccess does not exist (introduced in 6.0r47)		");
document.writeln("			axo.AllowScriptAccess = \"always\";");
document.writeln("			\/\/ safe to call for 6.0r47 or greater");
document.writeln("			version = axo.GetVariable(\"$version\");");
document.writeln("		} catch (e) {");
document.writeln("		}");
document.writeln("	}");
document.writeln("	if (!version)");
document.writeln("	{");
document.writeln("		try {");
document.writeln("			\/\/ version will be set for 4.X or 5.X player");
document.writeln("			axo = new ActiveXObject(\"ShockwaveFlash.ShockwaveFlash.3\");");
document.writeln("			version = axo.GetVariable(\"$version\");");
document.writeln("		} catch (e) {");
document.writeln("		}");
document.writeln("	}");
document.writeln("	if (!version)");
document.writeln("	{");
document.writeln("		try {");
document.writeln("			\/\/ version will be set for 3.X player");
document.writeln("			axo = new ActiveXObject(\"ShockwaveFlash.ShockwaveFlash.3\");");
document.writeln("			version = \"WIN 3,0,18,0\";");
document.writeln("		} catch (e) {");
document.writeln("		}");
document.writeln("	}");
document.writeln("	if (!version)");
document.writeln("	{");
document.writeln("		try {");
document.writeln("			\/\/ version will be set for 2.X player");
document.writeln("			axo = new ActiveXObject(\"ShockwaveFlash.ShockwaveFlash\");");
document.writeln("			version = \"WIN 2,0,0,11\";");
document.writeln("		} catch (e) {");
document.writeln("			version = -1;");
document.writeln("		}");
document.writeln("	}");
document.writeln("	");
document.writeln("	return version;");
document.writeln("}");
document.writeln("\/\/ JavaScript helper required to detect Flash Player PlugIn version information");
document.writeln("function GetSwfVer(){");
document.writeln("	\/\/ NS\/Opera version >= 3 check for Flash plugin in plugin array");
document.writeln("	var flashVer = -1;");
document.writeln("	");
document.writeln("	if (navigator.plugins != null && navigator.plugins.length > 0) {");
document.writeln("		if (navigator.plugins[\"Shockwave Flash 2.0\"] || navigator.plugins[\"Shockwave Flash\"]) {");
document.writeln("			var swVer2 = navigator.plugins[\"Shockwave Flash 2.0\"] ? \" 2.0\" : \"\";");
document.writeln("			var flashDescription = navigator.plugins[\"Shockwave Flash\" + swVer2].description;");
document.writeln("			var descArray = flashDescription.split(\" \");");
document.writeln("			var tempArrayMajor = descArray[2].split(\".\");			");
document.writeln("			var versionMajor = tempArrayMajor[0];");
document.writeln("			var versionMinor = tempArrayMajor[1];");
document.writeln("			var versionRevision = descArray[3];");
document.writeln("			if (versionRevision == \"\") {");
document.writeln("				versionRevision = descArray[4];");
document.writeln("			}");
document.writeln("			if (versionRevision[0] == \"d\") {");
document.writeln("				versionRevision = versionRevision.substring(1);");
document.writeln("			} else if (versionRevision[0] == \"r\") {");
document.writeln("				versionRevision = versionRevision.substring(1);");
document.writeln("				if (versionRevision.indexOf(\"d\") > 0) {");
document.writeln("					versionRevision = versionRevision.substring(0, versionRevision.indexOf(\"d\"));");
document.writeln("				}");
document.writeln("			}");
document.writeln("			var flashVer = versionMajor + \".\" + versionMinor + \".\" + versionRevision;");
document.writeln("		}");
document.writeln("	}");
document.writeln("	\/\/ MSN\/WebTV 2.6 supports Flash 4");
document.writeln("	else if (navigator.userAgent.toLowerCase().indexOf(\"webtv\/2.6\") != -1) flashVer = 4;");
document.writeln("	\/\/ WebTV 2.5 supports Flash 3");
document.writeln("	else if (navigator.userAgent.toLowerCase().indexOf(\"webtv\/2.5\") != -1) flashVer = 3;");
document.writeln("	\/\/ older WebTV supports Flash 2");
document.writeln("	else if (navigator.userAgent.toLowerCase().indexOf(\"webtv\") != -1) flashVer = 2;");
document.writeln("	else if ( isIE && isWin && !isOpera ) {");
document.writeln("		flashVer = ControlVersion();");
document.writeln("	}	");
document.writeln("	return flashVer;");
document.writeln("}");
document.writeln("\/\/ When called with reqMajorVer, reqMinorVer, reqRevision returns true if that version or greater is available");
document.writeln("function DetectFlashVer(reqMajorVer, reqMinorVer, reqRevision)");
document.writeln("{");
document.writeln("	versionStr = GetSwfVer();");
document.writeln("	if (versionStr == -1 ) {");
document.writeln("		return false;");
document.writeln("	} else if (versionStr != 0) {");
document.writeln("		if(isIE && isWin && !isOpera) {");
document.writeln("			\/\/ Given \"WIN 2,0,0,11\"");
document.writeln("			tempArray         = versionStr.split(\" \"); 	\/\/ [\"WIN\", \"2,0,0,11\"]");
document.writeln("			tempString        = tempArray[1];			\/\/ \"2,0,0,11\"");
document.writeln("			versionArray      = tempString.split(\",\");	\/\/ [\'2\', \'0\', \'0\', \'11\']");
document.writeln("		} else {");
document.writeln("			versionArray      = versionStr.split(\".\");");
document.writeln("		}");
document.writeln("		var versionMajor      = versionArray[0];");
document.writeln("		var versionMinor      = versionArray[1];");
document.writeln("		var versionRevision   = versionArray[2];");
document.writeln("        	\/\/ is the major.revision >= requested major.revision AND the minor version >= requested minor");
document.writeln("		if (versionMajor > parseFloat(reqMajorVer)) {");
document.writeln("			return true;");
document.writeln("		} else if (versionMajor == parseFloat(reqMajorVer)) {");
document.writeln("			if (versionMinor > parseFloat(reqMinorVer))");
document.writeln("				return true;");
document.writeln("			else if (versionMinor == parseFloat(reqMinorVer)) {");
document.writeln("				if (versionRevision >= parseFloat(reqRevision))");
document.writeln("					return true;");
document.writeln("			}");
document.writeln("		}");
document.writeln("		return false;");
document.writeln("	}");
document.writeln("}");
document.writeln("function AC_AddExtension(src, ext)");
document.writeln("{");
document.writeln("  if (src.indexOf(\'?\') != -1)");
document.writeln("    return src.replace(\/\\?\/, ext+\'?\'); ");
document.writeln("  else");
document.writeln("    return src + ext;");
document.writeln("}");
document.writeln("function AC_Generateobj(objAttrs, params, embedAttrs) ");
document.writeln("{ ");
document.writeln("  var str = \'\';");
document.writeln("  if (isIE && isWin && !isOpera)");
document.writeln("  {");
document.writeln("    str += \'<object \';");
document.writeln("    for (var i in objAttrs)");
document.writeln("    {");
document.writeln("      str += i + \'=\"\' + objAttrs[i] + \'\" \';");
document.writeln("    }");
document.writeln("    str += \'>\';");
document.writeln("    for (var i in params)");
document.writeln("    {");
document.writeln("      str += \'<param name=\"\' + i + \'\" value=\"\' + params[i] + \'\" \/> \';");
document.writeln("    }");
document.writeln("    str += \'<\/object>\';");
document.writeln("  }");
document.writeln("  else");
document.writeln("  {");
document.writeln("    str += \'<embed \';");
document.writeln("    for (var i in embedAttrs)");
document.writeln("    {");
document.writeln("      str += i + \'=\"\' + embedAttrs[i] + \'\" \';");
document.writeln("    }");
document.writeln("    str += \'> <\/embed>\';");
document.writeln("  }");
document.writeln("  document.write(str);");
document.writeln("}");
document.writeln("function AC_FL_RunContent(){");
document.writeln("  var ret = ");
document.writeln("    AC_GetArgs");
document.writeln("    (  arguments, \".swf\", \"movie\", \"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\"");
document.writeln("     , \"application\/x-shockwave-flash\"");
document.writeln("    );");
document.writeln("  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);");
document.writeln("}");
document.writeln("function AC_SW_RunContent(){");
document.writeln("  var ret = ");
document.writeln("    AC_GetArgs");
document.writeln("    (  arguments, \".dcr\", \"src\", \"clsid:166B1BCA-3F9C-11CF-8075-444553540000\"");
document.writeln("     , null");
document.writeln("    );");
document.writeln("  AC_Generateobj(ret.objAttrs, ret.params, ret.embedAttrs);");
document.writeln("}");
document.writeln("function AC_GetArgs(args, ext, srcParamName, classid, mimeType){");
document.writeln("  var ret = new Object();");
document.writeln("  ret.embedAttrs = new Object();");
document.writeln("  ret.params = new Object();");
document.writeln("  ret.objAttrs = new Object();");
document.writeln("  for (var i=0; i < args.length; i=i+2){");
document.writeln("    var currArg = args[i].toLowerCase();    ");
document.writeln("    switch (currArg){	");
document.writeln("      case \"classid\":");
document.writeln("        break;");
document.writeln("      case \"pluginspage\":");
document.writeln("        ret.embedAttrs[args[i]] = args[i+1];");
document.writeln("        break;");
document.writeln("      case \"src\":");
document.writeln("      case \"movie\":	");
document.writeln("        args[i+1] = AC_AddExtension(args[i+1], ext);");
document.writeln("        ret.embedAttrs[\"src\"] = args[i+1];");
document.writeln("        ret.params[srcParamName] = args[i+1];");
document.writeln("        break;");
document.writeln("      case \"onafterupdate\":");
document.writeln("      case \"onbeforeupdate\":");
document.writeln("      case \"onblur\":");
document.writeln("      case \"oncellchange\":");
document.writeln("      case \"onclick\":");
document.writeln("      case \"ondblclick\":");
document.writeln("      case \"ondrag\":");
document.writeln("      case \"ondragend\":");
document.writeln("      case \"ondragenter\":");
document.writeln("      case \"ondragleave\":");
document.writeln("      case \"ondragover\":");
document.writeln("      case \"ondrop\":");
document.writeln("      case \"onfinish\":");
document.writeln("      case \"onfocus\":");
document.writeln("      case \"onhelp\":");
document.writeln("      case \"onmousedown\":");
document.writeln("      case \"onmouseup\":");
document.writeln("      case \"onmouseover\":");
document.writeln("      case \"onmousemove\":");
document.writeln("      case \"onmouseout\":");
document.writeln("      case \"onkeypress\":");
document.writeln("      case \"onkeydown\":");
document.writeln("      case \"onkeyup\":");
document.writeln("      case \"onload\":");
document.writeln("      case \"onlosecapture\":");
document.writeln("      case \"onpropertychange\":");
document.writeln("      case \"onreadystatechange\":");
document.writeln("      case \"onrowsdelete\":");
document.writeln("      case \"onrowenter\":");
document.writeln("      case \"onrowexit\":");
document.writeln("      case \"onrowsinserted\":");
document.writeln("      case \"onstart\":");
document.writeln("      case \"onscroll\":");
document.writeln("      case \"onbeforeeditfocus\":");
document.writeln("      case \"onactivate\":");
document.writeln("      case \"onbeforedeactivate\":");
document.writeln("      case \"ondeactivate\":");
document.writeln("      case \"type\":");
document.writeln("      case \"codebase\":");
document.writeln("      case \"id\":");
document.writeln("        ret.objAttrs[args[i]] = args[i+1];");
document.writeln("        break;");
document.writeln("      case \"width\":");
document.writeln("      case \"height\":");
document.writeln("      case \"align\":");
document.writeln("      case \"vspace\": ");
document.writeln("      case \"hspace\":");
document.writeln("      case \"class\":");
document.writeln("      case \"title\":");
document.writeln("      case \"accesskey\":");
document.writeln("      case \"name\":");
document.writeln("      case \"tabindex\":");
document.writeln("        ret.embedAttrs[args[i]] = ret.objAttrs[args[i]] = args[i+1];");
document.writeln("        break;");
document.writeln("      default:");
document.writeln("        ret.embedAttrs[args[i]] = ret.params[args[i]] = args[i+1];");
document.writeln("    }");
document.writeln("  }");
document.writeln("  ret.objAttrs[\"classid\"] = classid;");
document.writeln("  if (mimeType) ret.embedAttrs[\"type\"] = mimeType;");
document.writeln("  return ret;");
document.writeln("}");
document.writeln("\/\/ -->");
document.writeln("<\/script>");

