// JavaScript Document			
	
	/*******************************************************
	ADOBE ACROBAT DETECT (INTERNET EXPLORER)
	*******************************************************/
	
	//Script type required to validate
	var displayString;
	
	
	var acrobat=new Object();
	
	acrobat.installed=false;
	acrobat.version='0.0';
	
	if (navigator.plugins && navigator.plugins.length) {
	for (x=0; x<navigator.plugins.length;x++) {
	if (navigator.plugins[x].description.indexOf('Adobe Acrobat')!= -1)
	{
		acrobat.version=parseFloat(navigator.plugins[x].description.split('Version ')[1]);
	
		if (acrobat.version.toString().length == 1) acrobat.version+='.0';
	
	acrobat.installed=true;
	displayString = 'Acrobat Version: '+acrobat.version;
	break;
	}
	}
	}
	
	else if (window.ActiveXObject)
	{
	for (x=2; x<10; x++)
	{
	try
	{
	oAcro=eval("new ActiveXObject('PDF.PdfCtrl."+x+"');");
	if (oAcro)
	{
	acrobat.installed=true;
	acrobat.version=x+'.0';
	displayString = 'Acrobat Version: '+acrobat.version;
	//alert(displayString);
	}
	}
	catch(e) {}
	}
	
	try
	{
	oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
	if (oAcro4)
	{
	acrobat.installed=true;
	acrobat.version='4.0';
	displayString = 'Acrobat Version: '+acrobat.version;
	}
	}
	catch(e) {}
	try
	{
	oAcro8=new ActiveXObject('PDF.PdfCtrl.1');
	if (oAcro8)
	{
	acrobat.installed=true;
	acrobat.version='8.0';
	displayString = 'Acrobat Version: '+acrobat.version;
	}
	}
	catch(e) {}
	try
	{
	oAcro7=new ActiveXObject('AcroPDF.PDF.1');
	if (oAcro7)
	{
	acrobat.installed=true;
	acrobat.version='7.0';
	displayString = 'Acrobat Version: '+acrobat.version;
	}
	}
	catch(e) {}
	
	}
	
	// Always do SOMETHING in case it goes wrong
	//if (! displayString)
	//{ displayString = 'Acrobat Installed: Information Not Available'; }
	
	// this alert is just to test if document.write doesn't work
	//alert(displayString);	
	
	<!--
	// detection for Netscape
	var useAcrobat = navigator.mimeTypes &&
	navigator.mimeTypes["application/pdf"]
	//-->
	
	<!--
   //on error resume next
   //useAcrobat = not IsNull(CreateObject("AcroExch.Document"))
				 // can be CreateObject("PDF.PdfCtrl.1") too!
	//-->
	
	
	/* ======================================================================== */
	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);
	if ((browser=="Microsoft Internet Explorer")&& (version>=4))
	{
		if (!displayString)
		{ 
			alert("Please Install Acrobat");
			document.write("<table><tr><td valign='top' class='pdfcontent'><table width='100%' ><tr><td class='PdfErrosmsg' valign='top'>In order to use our PDF schematic directory you need to have Adobe Acrobat installed on your computer. Please click here to get the latest version.</td></tr>" + "<tr><td valign='top'><a href='http://www.adobe.com/products/acrobat/readstep2.html' target='_blank'>http://www.adobe.com/products/acrobat/readstep2.html</a></td></tr></table></td></tr></table>");
		}
	}
	else
	{
	   if (!useAcrobat)
		   {
			 alert("Please Install Acrobat");
			  document.write("<table><tr><td valign='top' class='pdfcontent'><table width='100%' ><tr><td class='PdfErrosmsg' valign='top'>In order to use our PDF schematic directory you need to have Adobe Acrobat installed on your computer. Please click here to get the latest version.</td></tr>" + "<tr><td valign='top'><a href='http://www.adobe.com/products/acrobat/readstep2.html' target='_blank'>http://www.adobe.com/products/acrobat/readstep2.html</a></td></tr></table></td></tr></table>");
			}
	}
	
	// Always do an if in case something goes wrong in populating displayString. Errors are ugly.
	var browser=navigator.appName;
	var b_version=navigator.appVersion;
	var version=parseFloat(b_version);
	
	if ((browser=="Microsoft Internet Explorer")&& (version>=4))
	{
			if (displayString)
			{
			// alert("Acrobat reader ok");
			 document.write("<iframe id='mainFrame' frameborder='0' src='"+strpdfFileName+"' width='700px' height='800px' style='background-color:#FFFFFF;'>&nbsp;</iframe>")
			}
	}
	else
	{
			if (useAcrobat)
			{
			 //alert("Acrobat reader ok");
			 document.write("<iframe id='mainFrame' frameborder='0' src='"+strpdfFileName+"' width='700px' height='800px' style='background-color:#FFFFFF;'>&nbsp;</iframe>")
			}
	}
