function CheckXAppl()
{
	return(navigator.userAgent.indexOf('X-Appl 1.0') > -1)
}

function showNeedDownload()
{
	if (CheckXAppl() == false)
	{
		document.write('<div class="download">');
		document.write('<b>Note:</b> This page contains links to one or more web applications. ');
		document.write('To view these web applications you need to have the X-Appl web application browser installed. ');
		document.write('The download is only 3.5MB and will enable you to interactively experience the web applications on this and other web sites. ');
		if (navigator.userAgent.indexOf('Firefox') > -1)
			document.write('If you have X-Appl installed try our extension to let Firefox and X-Appl work seamlessly. The extension is included builds after 107');
		else if (navigator.userAgent.indexOf('Opera') > -1)
			document.write('If the web applications does not work please read the <a href="http://www.alfega.com/support/frequently-asked-questions/69-how-to-use-x-appl-in-opera.html">AQ</a>');
		else 
			document.write('If the web applications are opening incorrecly and you have X-Appl installed, you are using a browser that we do not support currently');
		document.write('<br/><br/>');
		document.write('<center><a href="http://www.alfega.com/download-x-appl-freeware-edition.html">Download your free copy of the X-Appl web application browser by clicking here.</a></center>');
		document.write('</div>');
	}
}

function downloadXAppl()
{
	if (window.confirm('You need to install the X-Appl web application browser to view this application. Do you wish to download it now?'))
		window.location = 'http://www.alfega.com/download-x-appl-freeware-edition.html';
}

function runXApplet(url)
{
	window.location = url;
}

function runXApplication(url)
{
	window.location = url;
}
