// Custom JavaScript ~ Grant William Naylor ~ Copyright SHU & CME (http://www.shu.ac.uk/cme)

// Define browser variable for CSS and browser compatibility detection
// 0 = Supported browser version and/or type
// 1 = Unsupported browser version and/or type
var browserVersion = 1 // Declare as unsupported browser version and/or type
// Detect supported browser version and/or types
// Internet Explorer version 5.5 and higher
if (navigator.userAgent.indexOf("MSIE 5.5") != -1){
	browserVersion = 0
}
// Internet Explorer version 6.0 and higher
if (navigator.userAgent.indexOf("MSIE 6.0") != -1){
	browserVersion = 0
}
// Netscape 6.0 and higher
if (navigator.userAgent.indexOf("Netscape6") != -1){
	browserVersion = 0 
}
// Netscape 6.0 and higher
if (navigator.userAgent.indexOf("Netscape/7") != -1){
	browserVersion = 0 
}
/*
if (navigator.userAgent.indexOf("MSIE 5.0") != -1){
	browserVersion = 0
}

*/
// Redirect to error page if browser is not supported
if (browserVersion == 1){
	window.location="http://www2.shu.ac.uk/hosted/netSurve/error.html"
}


