FlashMode = 0;
if (navigator.plugins && navigator.plugins.length > 0)
{
	if (navigator.plugins["Shockwave Flash"])
	{
		var plugin_version = 0;
		var words = navigator.plugins["Shockwave Flash"].description.split(" ");

		for (var i = 0; i < words.length; ++i)
		{
			if (isNaN(parseInt(words[i])))
			continue;
			plugin_version = words[i];
		}
		if (plugin_version >= 3)
		{
			var plugin = navigator.plugins["Shockwave Flash"];
			var numTypes = plugin.length;
			for (j = 0; j < numTypes; j++) 
			{
				mimetype = plugin[j];
				if (mimetype)
				{
					if (mimetype.enabledPlugin && (mimetype.suffixes.indexOf("swf") != -1))
						FlashMode = 1;
					// Mac wierdness
					if (navigator.mimeTypes["application/x-shockwave-flash"] == null)
						FlashMode = 0;
				}
			}
		}
	}
}


   	DOM = (document.getElementById) ? true : false;
   	NS4 = (document.layers) ? true : false;
    IE = (document.all) ? true : false;
   	IE4 = IE && !DOM;
   	Mac = (navigator.appVersion.indexOf("Mac") != -1);
  	IE4M = IE4 && Mac;
 	Opera = (navigator.userAgent.indexOf("Opera")!=-1);
	Konqueror = (navigator.userAgent.indexOf("Konqueror")!=-1);

	
	IsIEX = !Opera && !Konqueror && !Mac && !NS4 && (DOM  || IE4);
	IsELSE = !IE4 && (Opera  || Konqueror || IE4M  || NS4 || Mac);

	
	
if(IsIEX) {
	document.write("<script language=\"JavaScript\" src=../SubTemplate/includes//%22includes/flashdetect.js/%22></script>");
	document.write("<script type=\"text/vbscript\" language=\"VBScript\" src=../SubTemplate/includes//%22includes/flashdetect.vbs/%22></script>");
	document.write("<script language=\"JavaScript\" src=../SubTemplate/includes//%22../includes/flashdetect.js/%22></script>");
	document.write("<script type=\"text/vbscript\" language=\"VBScript\" src=../SubTemplate/includes//%22../includes/flashdetect.vbs/%22></script>");
	
}

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

function bookmarkPage(host, bookmarkName) {
	  if (navigator.userAgent.indexOf("MSIE") != -1) {
		  window.external.AddFavorite(host,bookmarkName);
	  } else {
		  alert('Netscape Users press Control+D to bookmark this site.');
	  }
	}