function doneFn (name, result)
	{
	if (result != 0 && result != 999)
     alert("The install didn't seem to work, you could maybe try " +
           "a manual install instead.\nFailure code was " + result + ".");
	else
     alert("Installation complete, please restart your browser.");
	}
function check_installation()
	{
	if (IsZipInstalled!=undefined) // Already installed
	return;
	var agt=navigator.userAgent.toLowerCase();
	var winos=(agt.indexOf('windows') != -1);
	var mse=(((agt.indexOf("msie") != -1) && (agt.indexOf("opera") == -1)));
	var linuxos = (agt.indexOf("inux")!=-1);
	var firefox=(agt.indexOf('gecko') != -1);
	if(winos && mse)
		{
		alert("Please Make sure your browser is Java  Enabled to continue.");
		document.write('<div style="visibility:visible" onload="doneFn(0,0)"><APPLET id ="SVGPaint" code="SVGPaint" archive="SVGPaint.jar" width=350 height=200 MAYSCRIPT="MAYSCRIPT" ></APPLET></div>');
		}
	else 
		{
		if(winos && firefox)
			{
			alert("Please allow FireFox/Windows to install Zip Protocol.");
			var xpi = new Object( );
			xpi["ZipProtocol"] = "Zipwind.zip";
			InstallTrigger.install(xpi, doneFn);
			}
		else if(linuxos  && firefox)
			{
			alert("Please allow FireFox/Linux to install Zip Protocol.");
			var xpi = new Object( );
			xpi["ZipProtocol"] = "ZipLinux.zip";
			InstallTrigger.install(xpi, doneFn);
			}
		else
			alert("Your browser is not supported ... YET ...");
		}
	}	