// Global Operations And Variables @ djxmmx.net
// Copyright 2006 - 2009 DJXMMX Ltd.

function DetectPlugin(InternetExplorer,Netscape)
{
	var Agnt = navigator.userAgent.toLowerCase();
	var Browser = navigator.appName.toLowerCase();

	if (Agnt.indexOf('msie') != -1 && (Agnt.indexOf('win') != -1 || Agnt.indexOf('32bit') != -1))
		{
		Result = false;
		var VBScript = '<script language="VBScript" type="text\/vbscript">\n'
			+ 'On Error Resume Next\n'
			+ 'Result = IsObject(CreateObject("' + InternetExplorer + '"))\n'
			+ 'On Error GoTo 0\n'
			+ '<\/script>'
		document.write(VBScript);

		return (Result ? 'Yes' : 'No');
		}
	else if (Browser.indexOf('netscape') != -1 || Agnt.indexOf('win') == -1 && Agnt.indexOf('32bit') == -1)
		{
		if (navigator.mimeTypes[Netscape] && navigator.mimeTypes[Netscape].enabledPlugin != null)
		{
			return 'Yes';
		}
		return 'No';
	}else{
		return 'N/A';
	}
}

var DetectPluginJava = (navigator.javaEnabled() ? 'Yes' : 'No')
var DetectPluginFlash = DetectPlugin('ShockwaveFlash.ShockwaveFlash.1', 'application/x-shockwave-flash')
var DetectPluginWMP = DetectPlugin ('MediaPlayer.MediaPlayer.1', 'application/x-mplayer2')
var DetectPluginPDF = DetectPlugin ('PDF.PdfCtrl.1', 'application/pdf');

// Last Modified: November 3, 2008 (11/03/09)