function analyzeUA(){
	var ua = navigator.userAgent;
	var browser = "";
	//Safari 1.2
	if( ua.toUpperCase().indexOf("SAFARI") > -1 ){
		browser = "safari";
	//Firefox
	} else if( ua.toUpperCase().indexOf("FIREFOX") > -1 ){
		browser = "firefox";
	//Opera 3, 4, 5, 6, 7, 8, 9
	} else if( ua.toUpperCase().indexOf("OPERA") > -1 ){
		browser = "opera";
	//Netscape 6, 7, 8
	} else if( ua.toUpperCase().indexOf("NETSCAPE") > -1 ){
		//Win
		if(ua.toUpperCase().indexOf("WIN") > -1 ){
			browser = "win-nn";
		//Mac
		} else if(ua.toUpperCase().indexOf("MAC") > -1 ){
			browser = "mac-nn";
		}
	//IE 4, 5, 6, 7
	} else if( ua.toUpperCase().indexOf("MSIE") > -1 ){
		//except ver.4
		if(navigator.appVersion.match(/MSIE 4/)) {
			location.href = rootPath + "netscape.html";
			return false;
		}
		
		//Win
		if(ua.toUpperCase().indexOf("WIN") > -1 ){
			browser = "win-ie";
		//Mac
		} else if(ua.toUpperCase().indexOf("MAC") > -1 ){
			//browser = "mac-ie";
			location.href = rootPath + "netscape.html";
			return false;
		}
	//Netscape 4
	} else if( ua.toUpperCase().indexOf("MOZILLA/4") > -1 ){
		//except ver.4
		location.href = rootPath + "netscape.html";
		return false;
	//Mozilla 1
	} else if( ua.toUpperCase().indexOf("MOZILLA") > -1 ){
		browser = "mozilla";
	}
	
	if( browser == "" ){
		browser = "point";
	}
	return browser;
}



function loadCSS(){
	var csslink	= '<link rel="stylesheet" type="text/css" href="' + rootPath + "css/ua/" + browser + '_m.css" media="screen,print">';
	document.write(csslink);
}




