//Shockwave detection

function swDetect_Netscape()
{
	//Look for Shockwave 8.5 or higher in the plugin list
	if (navigator.mimeTypes && navigator.mimeTypes["application/x-director"] && navigator.mimeTypes["application/x-director"].enabledPlugin) {
		if (navigator.plugins && navigator.plugins["Shockwave for Director"] && (versionIndex = navigator.plugins["Shockwave for Director"].description.indexOf(".")) != -1) {
			var versionString = navigator.plugins["Shockwave for Director"].description.substring(versionIndex - 2, versionIndex);
			var subVersString = navigator.plugins["Shockwave for Director"].description.substring(versionIndex + 1, versionIndex + 2);
			versionIndex = parseInt(versionString);
			subVersIndex = parseInt(subVersString);
			if (versionIndex > 8) {
				return 1;
			}
			else if (versionIndex = 8) {
				if (subVersIndex >= 5) {
					return 1;
				}
			}
		}
	}
	return 0;
}

function swDetect_ActiveX(varName)
{
	//Attempt to create a Shockwave 8.5 ActiveX object:
	//Write VBScript to the document, and pass result into var 'varName'
	if (navigator.userAgent && navigator.userAgent.indexOf("MSIE") >= 0) {
	//&& (navigator.userAgent.indexOf("Windows 95") >= 0 || navigator.userAgent.indexOf("Windows 98") >= 0 || navigator.userAgent.indexOf("Windows NT") >= 0 )) {
		var str = '<script type="text/vbscript"> \n';
		str += 'on error resume next \n';
		str += varName+' = 1 \n';//varName+' = (IsObject(CreateObject("SWCtl.SWCtl.8.5"))) \n'
		str += '</script> \n';
		document.write(str);
	}
}