// JavaScript Document
//check for JavaScript
document.write("<p>JavaScript: <img src='data/images/tick.gif' alt='tick' width='18' height='20' /></p>");


//browser ok?
if (document.getElementById){
document.write("<p> Browser: <img src='data/images/tick.gif' alt='tick' width='18' height='20' /></p>");
} else
{document.write("<p> Browser: Your browser may have some problems displaying some content. To get the best from business one : one, it is recommended that you download the latest version of your browser</p>")
}
//browser ok end


//flash check

//check for all but ie
var flashinstalled = 0;
var flashversion = 0;

if (navigator.plugins && navigator.plugins.length)
{
	
	x = navigator.plugins["Shockwave Flash"];
	if (x)
	{
		flashinstalled = 2;
		if (x.description)
		{
			y = x.description;
			flashversion = y.charAt(y.indexOf('.')-1);
		}
	}
	else
		flashinstalled = 1;
	if (navigator.plugins["Shockwave Flash 2.0"])
	{
		flashinstalled = 2;
		flashversion = 2;
	}
}
else if (navigator.mimeTypes && navigator.mimeTypes.length)
{
	x = navigator.mimeTypes['application/x-shockwave-flash'];
	if (x && x.enabledPlugin)
		flashinstalled = 2;
	else
		flashinstalled = 1;
}

else if (window.ActiveXObject)
{
for (i=6; i<10; i++)
{
try
{
oFlash=new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + i);
if (oFlash)
{
flashinstalled=2;
flashversion=i;
}
}
catch(e) {}
}
}


//If flash exists and the version is 6 or above
if  (flashinstalled=2 && flashversion>5){
	document.write("<p>Flash Player: <img src='data/images/tick.gif' alt='tick' width='18' height='20' /></p>")
	
	} else {
		
		document.write("<p>Flash Player: You may need to <a href='http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash' title='get Flash Player'>download Flash Player</a> from the Adobe website.</p>")
					}
		
		


////adobe check

var acrobat=new Object();

acrobat.installed=false;
acrobat.version='0.0';

//check for all but ie
if (navigator.plugins && navigator.plugins.length)
{
for ( var x = 0, l = navigator.plugins.length; x < l; 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;
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';
}
}
catch(e) {}
}

try
{
oAcro4=new ActiveXObject('PDF.PdfCtrl.1');
if (oAcro4)
{
acrobat.installed=true;
acrobat.version='4.0';
}
}
catch(e) {}

try
{
oAcro7=new ActiveXObject('AcroPDF.PDF.1');
if (oAcro7)
{
acrobat.installed=true;
acrobat.version='7.0';
}
}
catch(e) {}

}

//If Adobe Acrobat, write out the message OR not
if (acrobat.installed=true && acrobat.version>4){
	document.write("<p>Adobe Acrobat Reader: <img src='data/images/tick.gif' alt='tick' width='18' height='20' /></p>")
	} else {
		
		document.write("<p>Adobe Acrobat Reader: You may need to <a href='http://www.adobe.com/products/acrobat/readstep2.html'title='get Adobe Acrobat'>download Adobe Acrobat Reader</a> from the Adobe website.</p>")
		
		
		}