var isBrowserDetected = false;
var isNS, isIE, isMac, isPC, isDOM, isNS6, isPCNS, isMacNS, isPCNS6, isMacNS6, isMacIE, isPCIE, isPCIE4, isPCIE5, isMacIE4, isMacIE45, isMACIE5;

function browserDetect() {
	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));
	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 ));
	isDynamic = (isNS) || (isPCIE) || (isMacIE45);
	isBrowserDetected = true;
}

