    //verify plugins, browser version
    //requires NN3+, IE4+, Real Player G2, Flash 4
	//IE3 is excluded because it doesn't support SMIL
		
	//v 2.0 otp.com
	
	var	browserOK = 0;
	var FlashMode=0;
	var Flash = 0;
	var browserName;
	
	//acceptable browser detection
	if((navigator.appName == "Netscape") && (navigator.appVersion >= "3")) {browserOK = 1; browserName="NN"}
	if((navigator.appName == "Opera") && (navigator.appVersion >= "3")) {browserOK = 1; browserName="OP"}
    if((navigator.appName == "Microsoft Internet Explorer") && (navigator.appVersion >= "3")) {browserOK = 1; browserName="IE"}

	//Flash 4

	//Navigator plugin detection
	if (navigator.userAgent.indexOf("MSIE")<0 ){
		var plugin = (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"]) ? navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin : 0;
		if ( plugin && parseInt(plugin.description.substring(plugin.description.indexOf(".")-1)) >= 4 ){
			FlashMode = 1;
		} 
	}
	
	//IE plugin detection 
	if((navigator.userAgent.indexOf("MSIE")>= 0) &&	(navigator.userAgent.indexOf("Mac")< 0)){
   	document.write('<SCRIPT LANGUAGE=VBScript\> \n');
	document.write('on error resume next \n');
	//may need editing for version number.  VBScript for subString = ??
	document.write('Flash = (NOT IsNull(CreateObject("ShockwaveFlash.ShockwaveFlash.4")))\n');
	document.write('\<\/SCRIPT\>');
	}
	

	//IE plugin confirmation for Mac
function MacIE()	{
		if((navigator.userAgent.indexOf("MSIE")>= 0) &&	(navigator.userAgent.indexOf("Mac")>= 0)){return true;}
		else{return false;}
						}

//runs on call from page function
function FlashVerify() {
	if (FlashMode || Flash)
				{
		if(browserOK)  {return true;}
		else 	{ /*alert(alertmsg);*/ return false; }
				}
	
	else if(MacIE() && browserOK)	{
		i= confirm("This presentation requires Macromedia* Flash 4, available from www.macromedia.com.\nIf you have this plugin, click \'OK\' to view this presentation.");
			if(i) {return true;} 
			else {return false;}
						}

	else 	{ /*alert(alertmsg);*/ return false; }
					}

if(!FlashVerify()) {alert('this presentation requires Flash 4')	}
							

