/*
JAVASCRIPT LIBARARY -- CHECK BROWSER
Author: Hari Khalsa
Created: 01.01.03

Checks client's browser.

*/
//Get browser name and version
//function getUA(){
	var bName = navigator.appName;
	var bVer = parseInt(navigator.appVersion);
	
	//Netscape Checks
	var ns = (bName == "Netscape");
	var ns3 = (bName == "Netscape" && bVer < 4);
	var ns4 = (bName == "Netscape" && bVer == 4);
	var ns6 = (bName == "Netscape" && bVer >= 5);
	
	//Internet Explorer Checks
	var ie = (bName == "Microsoft Internet Explorer");
	var ie3 = (bName == "Microsoft Internet Explorer" && bVer < 4);
	var ie4 = (bName == "Microsoft Internet Explorer" && bVer >= 4);
	
	//Platform Checks
	var ua = navigator.userAgent.toLowerCase();
	var platform = "";
	if(ua.indexOf("win")>-1){
		platform = "win32";
	}
	if(ua.indexOf("mac")>-1) {
		platform = "mac";
	}
	if(platform == ""){
		platform = "other"
	}
//}
