/* ---------------------------------------
   browser/plugin check for Angel
   copied from angelstaging home page by PW on 12/15/2006
----------------------------------- */

var issues;
issues = "";
if (navigator.appName.toUpperCase() == "NETSCAPE")
{
	if (navigator.appVersion.toUpperCase().indexOf("SAFARI") > 0)
	{
		issues = issues + "\r\n- You appear to be running a browser that is not fully supported. Fully supported browsers are Internet Explorer, Firefox, and Mozilla on a Windows OS and Firefox or Mozilla on a non-Windows OS.\r\n" ;
	}
}
else if (navigator.appName.toUpperCase() == "MICROSOFT INTERNET EXPLORER")
{
	if (navigator.appVersion.toUpperCase().indexOf("WINDOWS") < 0)
	{
		issues = issues + "\r\n- You appear to be running a browser that is not fully supported. Fully supported browsers are Internet Explorer, Firefox, and Mozilla on a Windows OS and Firefox or Mozilla on a non-Windows OS.\r\n";
	}
}
else
{
	issues = issues + "\r\n- You appear to be running a browser that is not fully supported. Fully supported browsers are Internet Explorer, Firefox, and Mozilla on a Windows OS and Firefox or Mozilla on a non-Windows OS.\r\n";
}

if (navigator.cookieEnabled == 0) {
  issues = issues + "\r\n- You currently have cookies disabled.\r\n";
}

/*
Don't check for other things at this time

if(!navigator.javaEnabled())
{
	issues = issues + "\r\n- You currently do not have Java installed or enabled.\r\n";
}

var objChild;                           // Window
var reWork = new RegExp('object','gi');	// Regular expression

try {
	objChild = window.open('','child','width=50,height=50,status=no,resizable=yes'); 

	objChild.close();
}
catch(e) { }

if(!reWork.test(String(objChild)))
	issues = issues + "\r\n- You have a pop-up blocker enabled.\r\n";

if (window.ActiveXObject && !window.XMLHttpRequest) {
  window.XMLHttpRequest = function() {
    var msxmls = new Array('Msxml2.XMLHTTP.5.0','Msxml2.XMLHTTP.4.0','Msxml2.XMLHTTP.3.0','Msxml2.XMLHTTP','Microsoft.XMLHTTP');
    for (var i = 0; i < msxmls.length; i++) {
      try { return new ActiveXObject(msxmls[i]); } catch (e) { }
    }
    return null;
  };
}

try
{
	var url = 'http://206.53.229.249/ajaxtest.html';
	var oXMLHTTP = new XMLHttpRequest;
	oXMLHTTP.open("GET",url,false);
	oXMLHTTP.send(null);
}
catch (e)
{
	issues = issues + "\r\n- You have the XMLHTTP ActiveX object disabled.\r\n";
}
*/

if (issues != '')
{
	alert("Based on your current browser configuration, some features of this site will be disabled or will not work correctly. Please fix the issue(s) before logging on.\r\n" + issues);
}
