
function showInstall(test) {
	var subdir = pidir();
	var cabver = cbver();
	var ua = navigator.userAgent.toLowerCase();
	var da = (document.all) ? 1 : 0;
	var mac = (ua.indexOf("mac") != -1);
	var unix = (ua.indexOf('unix') != -1 || ua.indexOf('sunos') != -1 || ua.indexOf('bsd') != -1 || ua.indexOf('x11') != -1 || ua.indexOf('linux') != -1);
   var tgval = tg();
 	//alert("showInstall...");
 	if (test && da && !mac) {
      var newTxt = "<p align='justify'>Please use the FileOpen installer below to ensure that the FileOpen plug-in is installed correctly. The installer may need to alter your Acrobat settings to allow non-Adobe plug-ins to be installed and to close Acrobat if it is running. You must agree to allow these changes for the install process to complete successfully.</p>" +
                   "<div align='center'>" +
                       "<OBJECT id='FoInstaller' title='FileOpen Installer' tabIndex='1' border='1'" +
                       "codeBase='" + subdir + "FileOpen.CAB#Version=" + cabver + "'" +
                       "classid='CLSID:CE8267C2-D41A-4A50-A69D-F32B5C289F14' VIEWASTEXT>" +
                       "<param name='TargetURL' value='" + tgval + "'>" +
                       "<param name='CookieURL' value='" + ck() + "'>" +
                       "<PARAM NAME='_cx' VALUE='7382'>" +
                       "<PARAM NAME='_cy' VALUE='4075'>" +
                       "</OBJECT>" +
                   "</div>" +
    	             "<p align='justify'>If you choose not to allow the signed ActiveX control to install and run or" +
    	             " if the download dialog did not appear and the installer is not visible above <a href='javascript:showInstall(0)'>please click here</a>.</p>" +
                   "<p class='invisible'>CAB Version: " + cabver + " mac=sit</p>";

   } else if (mac) {
      var newTxt = "<p align='justify'>Please use the FileOpen link below to access the plug-in installation program. We recommend that you select 'open' in the file download dialog to run the installer immediately. If you opt to save the program on your computer you will need to run it manually.</p>" +
                   "<p align='center'><a href='" + subdir + "FileOpenInstaller.sit'><img alt='FileOpen Installer' src='/images/design/plugin.jpg'><br>Click here to download the installer for Acrobat versions 4, 5 and 6.</a></p>" +
                   "<p align='center'>For Acrobat 7.0 or later, <a href='" + subdir + "FileOpen7.acroplugin.sit'><img alt='FileOpen Installer' src='/images/design/plugin.jpg'><br>Click here to download the installer.</a></p>" +
                   "<p align='justify'>The installer may need to alter your Acrobat settings to allow non-Adobe plug-ins to be installed and to close Acrobat if it is running. You must agree to allow these changes for the install process to complete successfully.</p>" +
                   "<p align='center'><a href='" + tgval + "' target='_blank'>Click here after installation has finished.</a></p>";

   } else if (unix) {
      var newTxt = "<p align='justify'>Please use the FileOpen link below to access the plug-in installation program. We recommend that you select 'open' in the file download dialog to run the installer immediately. If you opt to save the program on your computer you will need to run it manually.</p>" +
                   "<p align='center'><a href='" + subdir + "FileOpenInstaller.tar'> <img alt='FileOpen' src='images/fileopen.jpg'><br>Click here to download the installer.</a></p>" +
                   "<p align='justify'>The installer may need to alter your Acrobat settings to allow non-Adobe plug-ins to be installed and to close Acrobat if it is running. You must agree to allow these changes for the install process to complete successfully.</p>" +
                   "<p align='center'><a href='" + tgval + "' target='_blank'>Click here to test the installation before using the Library. </a></p>";

   } else {
      var newTxt = "<p align='justify'>Please use the FileOpen link below to access the plug-in installation program. We recommend that you select 'open' in the file download dialog to run the installer immediately. If you opt to save the program on your computer you will need to run it manually.</p>" +
                   "<p align='center'><a href='" + subdir + "FileOpenInstaller.exe'><img alt='FileOpen Installer' src='/images/design/plugin.jpg'><br>Click here to download the installer.</a></p>" +
                   "<p align='justify'>The installer may need to alter your Acrobat settings to allow non-Adobe plug-ins to be installed and to close Acrobat if it is running. You must agree to allow these changes for the install process to complete successfully.</p>" +
                   "<p align='center'><a href='" + tgval + "' target='_blank'>Click here to test the installation.</a></p>";
   }
   var elem = document.getElementById("installer");
   //alert(elem.innerHTML );
   elem.innerHTML = newTxt;

}

