function getCookieVal (offset) {  
var endstr = document.cookie.indexOf (";", offset);  
if (endstr == -1)    
endstr = document.cookie.length;  
return unescape(document.cookie.substring(offset, endstr));
}
function GetCookie (name) {  
var arg = name + "=";  
var alen = arg.length;  
var clen = document.cookie.length;  
var i = 0;  
while (i < clen) {    
	var j = i + alen;    
	if (document.cookie.substring(i, j) == arg)      
	return getCookieVal (j);    
	i = document.cookie.indexOf(" ", i) + 1;    
	if (i == 0) break;   
	}  
	return null;
}
function SetCookie (name, value) {  
var argv = SetCookie.arguments;  
var argc = SetCookie.arguments.length;  
var expires = (argc > 2) ? argv[2] : null;  
var path = (argc > 3) ? argv[3] : null;  
var domain = (argc > 4) ? argv[4] : null;  
var secure = (argc > 5) ? argv[5] : false;  
document.cookie = name + "=" + escape (value) + 
((expires == null) ? "" : ("; expires=" + expires.toGMTString())) + 
((path == null) ? "" : ("; path=" + path)) +  
((domain == null) ? "" : ("; domain=" + domain)) +    
((secure == true) ? "; secure" : "");
}

if(typeof jsReport != 'undefined'){
jsVersion = new Array(
 'Browsercheck',
 '1.1',
 20010509,
 'l1_browsercheck',
 'Measure the capabilities of the browser, for use in choosing code variants.',
 new Array('browsercheck.js'),
 new Array('NS','MO','IE','OP'),
 new Array(
'1.1: two letter codes were introduced, one letter codes were retained for backwards compatibility',
'1.0: A modular version was compiled from code-scraps'
),
 new Array(
'<script language="JavaScript" src="/includes/browsercheck.js" type="text/javascript"></script>',
'<script language="JavaScript" type="text/javascript">',
'<!'+'--',
'if(ns){alert(\'netscape\')}',
'//'+'-->',
'</script>'
)
)

}else{
var ns=false;
var ie=false;
var mo=false;
var op=false;
var ko=false;
var v3=false;
var v4=false;
var v5=false;
var v6=false;
var dom = false;
var mc=false;
if (parseInt(navigator.appVersion)<4) {v3=true;}
if (navigator.userAgent.indexOf('4.')>-1) {v4=true;}
if (navigator.userAgent.indexOf(' 5.0')>-1) {v5=true;v4=false;}
if (navigator.userAgent.indexOf(' 5.5')>-1 || navigator.userAgent.indexOf(' 6.')>-1 || navigator.userAgent.indexOf(' 7.')>-1) {v6=true;v4=false;v5=false;}
if (navigator.appName=="Netscape" && document.getElementById) {mo=true;}
if (navigator.appName=="Netscape" && (v4 || v5)) {ns=true;}
if (document.all) {ie=true;}
if (navigator.userAgent.indexOf('Opera')>-1) {op=true;}
if (navigator.userAgent.indexOf("Konqueror")>-1) {ko=true;}
if (document.getElementById) {dom=true;}
if (navigator.appVersion.indexOf("Mac") != -1) {mc=true;}
}

function CheckTheBrowser(){

	var blnGoodBrowser = false;
	if(ie && (v6 || v5)){
		blnGoodBrowser = true;
	}else if(ns && v5){
		blnGoodBrowser = false;
	}else if(mo){
		blnGoodBrowser = true;
	}else if(ns && v7){
		blnGoodBrowser = true;
	}else if(op && v6){
		blnGoodBrowser = true;
	}else{
		blnGoodBrowser = true;
		if (!GetCookie("oldbrowser")) {
			alert('We were unable to detect your exact browser version. \nIf you experience any problems in viewing our website, we suggest you download the most recent version of your browser from the manufacturer\'s website.');
			SetCookie("oldbrowser",true);
		}
	}
	if(blnGoodBrowser == false){
	//window.location.href="/oldbrowser.asp"
	}				
}