// Detect the browser type
// Amended by icy on 16/4/03 to check for Netscape version 7
function detectBrowser() {
   var thing = new its();
   var browser = "incorrect";

	if(thing.opera)
	{
		broswer = "incorrect";
	}
   // If MAC
   // Valid browsers NN 4.7 to less than 7.19 and IE 5.1 to 5.14
	// MAC operating systems cannot be detected.
	else if (thing.mac) {
  		if ((thing.nn && thing.minor >= 4.7 && thing.minor <= 7.19) || (thing.ie && thing.minor >= 5 || thing.minor <= 5.14) || (thing.safari)) {
      	browser = "correct";
    	}
  	}
   // If PC and either win95, win98 or winnt.
   // Valid browsers NN 4.7 to less than 7.19 and IE 4.01 to 6.0.
   else if (thing.win95 || thing.win98 || thing.winnt) {
		if ((thing.nn && thing.minor >= 4.7 && thing.minor <= 7.19) || (thing.ie && thing.minor >= 4.01 && thing.minor <= 6)) {
      	browser = "correct";
      }
   }
   // If PC and either winme or win00.
   // Valid browsers NN 4.7 to 7.19 and IE 5.0 to 6.0.
   else if (thing.winme || thing.win00) {
		if ((thing.nn && thing.minor >= 4.7 && thing.minor <= 7.19) || (thing.ie && thing.minor >= 4.01 && thing.minor <= 6)) {
      	browser = "correct";
      }
   }
   // If PC and winxp.
   // Valid browsers NN 4.7 to 7.19 and IE 6.0.
   else if (thing.winme || thing.win00) {
		if ((thing.nn && thing.minor >= 4.7 && thing.minor <= 7.19) || (thing.ie && thing.minor == 6)) {
      	browser = "correct";
      }
   }

   return browser;
}
