//new school
var acrobat=new Object();
acrobat.installed=false;
acrobat.seven=false;
var agent = navigator.userAgent.toLowerCase();
if (agent){
	if (agent.indexOf("msie") != -1 && parseInt(navigator.appVersion) >= 4 && agent.indexOf("win")!=-1 && agent.indexOf("16bit")==-1) {
		try
		{
			oAcro7=new ActiveXObject('AcroPDF.PDF.1');
			if (oAcro7)
			{
				acrobat.installed=true;
				acrobat.seven=true;
			}
		}
		catch(e) {} 
	} else {
		if (navigator.plugins != null && navigator.plugins.length > 0) {
			// Navigator-compatible browser
			for (i=0; i < navigator.plugins.length; i++ ) {
				var plugin = navigator.plugins[i];
				if ((plugin.description == "Adobe Acrobat Plug-In Version 7.00 for Netscape") || 							// Acrobat/Reader 7.x on Windows (tested with Netscape 7.0+, Firefox 1.0+, Safari 3.0+)
					(plugin.description == "Adobe PDF Plug-In For Firefox and Netscape") || 								// Acrobat/Reader 8.x on Windows (tested with Netscape 7.0+, Firefox 1.0+, Safari 3.0+)
					(plugin.description.substring(0,60) == "Adobe Acrobat and Reader Plug-in for Web Browsers, Version 8"))	// Acrobat/Reader 8.x only for Safari on Mac OS/X
					{
						acrobat.installed=true;
						acrobat.seven=true;
				}
			}
		}
	}
}