// Give suggestion to upgrade

function info_release()
	{
	var vers = navigator.appVersion.toLowerCase();
		return vers;
	}

// The script below must be used in combination with commenting out IE7 in the xsl template

function version_tell()
{
  var vs = info_release();
  var vs_string = new String(vs);
  var release = vs_string.indexOf('msie');
  {
    if ( (release != -1) )
      {
	alert('Your browser is ' + vs_string + '. \n\nPlease upgrade your browser to IE 7+ or change to Firefox\n\nYour version of IE may fail to display pages on this web site correctly');
      }
  }
}

function info_agent()
	{
	var vers = navigator.userAgent.toLowerCase();
		return vers;
	}

function agent_tell()
{
var ver = info_agent();
var ver_string = new String(ver);
var ver_1 = ver_string.indexOf('opera');
var ver_2 = ver_string.indexOf('safari');
if ( ver_1 != -1)
{
alert('Information:\n\nSome pages on this site may not display fully.\n\nYour Opera browser might have trouble negotiating the technology used.\n\nThe site is most reliably viewed with IE 7 or Firefox');
}
else if ( ver_2 != -1)
{
alert('Information:\n\nSome pages on this site may not display fully.\n\nYour Safari browser might have trouble negotiating the technology used.\n\nThe site is most reliably viewed with IE 7 or Firefox');
}
}

function browserUpgradeAdvice()
{
	version_tell();
}


browserUpgradeAdvice();
