/*/ now do browser detect 
	Template: x51getbrowser.js
	Authors: Alex Zui Daniel Inston and Tim Macdonald of x51 Pty Ltd
	Creation Date: 2001-12-02
        Modification Date: 2002-06-23
	Version: v2.4
/*/

var isBrowserDetected = false;
var isNS, isIE, isMac, isPC, isDOM, isNS6, isPCNS, isMacNS, isPCNS6, isMacNS6, isMacIE, isMacIE4, isMacIE45, isMACIE5;
var isPCIE, isPCIE3, isPCIE4, isPCIE5, isPCIE6, isPCIE7, isPCIE8, isPCIE9;

function browserDetect() {
	if (isBrowserDetected) return;
	isNS = (document.layers && (navigator.appName == "Netscape")) ? true : false;
	isIE = (document.all && (navigator.userAgent.indexOf("MSIE") >= 0) && (navigator.userAgent.indexOf("Opera") < 0)) ? true : false;
	isMac = (navigator.userAgent.indexOf("Mac") >= 0);
	isPC = (navigator.userAgent.indexOf("Windows") >= 0);
	isDOM = (document.getElementById) ? true : false;
	isNS6 = (isDOM && (navigator.appName == "Netscape"));
	isMacNS = (isNS && isMac);
	isPCNS = (isNS && isPC);
	isMacNS6 = (isNS6 && isMac);
	isPCNS6 = (isNS6 && isPC);
	isMacIE = (isIE && isMac);
	isPCIE = (isIE && isPC);
	isPCIE4 = (isPCIE && (navigator.userAgent.indexOf("MSIE 4") >= 0));
	isPCIE5 = (isPCIE && (navigator.userAgent.indexOf("MSIE 5") >= 0));
	isPCIE6 = (isPCIE && (navigator.userAgent.indexOf("MSIE 6") >= 0));
	isPCIE7 = (isPCIE && (navigator.userAgent.indexOf("MSIE 7") >= 0));
	isPCIE8 = (isPCIE && (navigator.userAgent.indexOf("MSIE 8") >= 0));
	isPCIE9 = (isPCIE && (navigator.userAgent.indexOf("MSIE 9") >= 0));
	isMacIE45 = (isMacIE && (navigator.userAgent.indexOf("MSIE 4.5") >= 0));
	isMacIE4 = (!isMacIE45 && (navigator.userAgent.indexOf("MSIE 4") >=0 ));
	isMacIE5 = (isMacIE && (navigator.userAgent.indexOf("MSIE 5") >=0 ));
  isPCIE3 = (isPCIE && (!isPCIE4) && (!isPCIE5) && (!isPCIE6) && (!isPCIE7) && (!isPCIE8) && (!isPCIE9));
	isDynamic = (isNS) || (isPCIE) || (isMacIE45);
	isBrowserDetected = true;
}