/*User Agent Checker*/
var jsList=
		'<script type="text/javascript" src="common/js/plugin/jquery.js"></script>' +
		'<script type="text/javascript" src="common/js/plugin/jquery.scrollto.js"></script>' +
		'<script type="text/javascript" src="common/js/plugin/jquery.easing.1.3.js"></script>' +

		'<script type="text/javascript" src="common/js/common/static.js"></script>' +
		'<script type="text/javascript" src="common/js/common/common.js"></script>' +

		/* twitter */
		'<link rel="stylesheet" type="text/css" href="common/js/plugin/twitter_ticker/style.css" media="screen,print">' +	
		'<script type="text/javascript" src="common/js/plugin/twitter_ticker/twitter_ticker.js"></script>' +
		/* --------- */
		
		/* BLOG dropdown */
		'<link rel="stylesheet" type="text/css" href="common/js/plugin/dropdown/dropdown.css">' +	
		'<script type="text/javascript" src="common/js/plugin/dropdown/dropdown.js"></script>' +
		/* --------- */	
		
		
		'<script type="text/javascript" src="common/js/common/function.js"></script>'

;

var fontCo='<link rel="stylesheet" type="text/css" href="common/css/font/font-common.css" media="screen,print">';
var fontIe='<link rel="stylesheet" type="text/css" href="common/css/font/font-ie.css" media="screen,print">';
var ie6Fix='<script type="text/javascript" src="common/js/plugin/DD_belatedPNG_0.0.8a.js"></script>';

if (navigator.userAgent.indexOf("Mac")>=0){
	/*mac ie*/
	if(navigator.userAgent.indexOf('MSIE ')>=0) {}
	/*other mac*/
	else {
		document.write(fontCo + jsList);
		/*Firefox before 2*/
		if(navigator.userAgent.indexOf('Firefox/')>=0) {
			var p=navigator.userAgent.indexOf('Firefox/');
			var v=parseInt( navigator.userAgent.substring(p+8, p+9) );
			if(v<3) {
				document.write(ff2Fix);
			}
		}
	}
}
/*win ie*/
else if(navigator.userAgent.indexOf('MSIE ')>=0) {
	var p=navigator.userAgent.indexOf('MSIE ');
	var v=parseInt( navigator.userAgent.substring(p+5, p+6) );
	/*win before ie6*/
	if(v<6) {
	}
	/*win other ie*/
	else {
		document.write(fontIe + jsList);
	}
}
/*other win*/
else {
	document.write(fontCo + jsList);
	/*Firefox before 2*/
	if(navigator.userAgent.indexOf('Firefox/')>=0) {
		var p=navigator.userAgent.indexOf('Firefox/');
		var v=parseInt( navigator.userAgent.substring(p+8, p+9) );
		if(v<3) {
		document.write(ff2Fix);
		}
	}
}
