function getBrowser()
{
	var agt=navigator.userAgent.toLowerCase();
	var v_maj=parseInt(navigator.appVersion);
	var v_min=parseFloat(navigator.appVersion);
	is_ie=(agt.indexOf("msie")!=-1);
	is_ie3=(is_ie&&(v_maj<4));
	is_ie4=(is_ie&&(v_maj==4)&&(agt.indexOf("msie 5.0")==-1));
	is_ie4up=(is_ie&&(v_maj>=4));
	is_ie5=(is_ie&&(v_maj==4)&&(agt.indexOf("msie 5.0")!=-1)); 
	is_ie5up=(is_ie&&!is_ie3&&!is_ie4);
	is_win=((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1));
	is_win95=((agt.indexOf("win95")!=-1)||(agt.indexOf("windows 95")!=-1));
	is_win98=((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1));
	is_winnt=((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1));
	is_win32=(is_win95||is_winnt||is_win98||
		((v_maj>=4)&&(navigator.platform=="Win32"))||
		(agt.indexOf("win32")!=-1)||(agt.indexOf("32bit")!=-1));
	
	//debugger
	is_mac=(agt.indexOf("mac")!=-1);
	is_macPPC=(is_mac&&((agt.indexOf("ppc")!=-1)||(agt.indexOf("powerpc")!=-1)));
	is_ie6 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 6.")!=-1)) ? true : false;
	is_ie7 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 7.")!=-1)) ? true : false;
	is_ie8 = ((document.all)&&(navigator.appVersion.indexOf("MSIE 8.")!=-1)) ? true : false;
	

}

function checkAndGetIE6(){
	getBrowser();

	if (is_ie8) document.writeln('<a align=center class=left_table>Internet Explorer 8 is installed.</a><br>');
	else if (is_ie7) document.writeln('<a align=center class=left_table>Internet Explorer 7 is installed.</a><br>');
	else if (is_ie6) document.writeln('<a align=center class=left_table>Internet Explorer 6 is installed.</a><br>');
	else if (is_ie5) document.writeln('<a align=center class=labelerror>Internet Explorer 5 is installed.</a><br>');
	else if (is_ie4) document.writeln('<a align=center class=labelerror>Internet Explorer 4 is installed.</a><br>');
	if(!(is_ie6) && !(is_ie7) && !(is_ie8))
	{
	  document.writeln('<a align=center class=labelerror href=http://www.microsoft.com/ie>This site requires Internet Explorer ver 6. Click here to install.</a><br>');
	  alert('This site requires at least Internet Explorer ver 6.');
	}
}

function checkAndGetSVGViewer() {
	if (isSVGControlInstalled())
		document.writeln('<a align=center class=left_table>SVG Plugin is installed.</a>');
	else
	{
	  document.writeln('<a align=center class=labelerror  href=http://www.adobe.com/svg/viewer/install/auto/?"'+location+'">This site requires an SVG viewer. Click here for installation of SVG or get more information.</a>');
	  alert('This site requires an SVG Viewer.');
	}
}

function check_IE6_SVG() {
	checkAndGetIE6();
	checkAndGetSVGViewer();
}