/* K Place* Java Script for font select */
/* user Agent select section : (!= -1) is mach. ( = -1) is NOT mach. */
/* "k_place_master.css" is base CSS. Windows browser is read only this CSS. */
/* "fonts_for_mac_ie.css" is additional CSS for Internet Explorer Mac edition (X and 9) */
/* "fonts_for_mac_webkit.css" is additional CSS for Apple WebKit (ex. Safari, OmniWeb, etc.) */
/* "fonts_for_mac_carbon.css" is additional CSS for Mac OS Carbon blowser (ex. Netscape 6, mozilla, etc.) */

function createStylesheetLink(cssname){
	document.writeln('<link href="'+cssname+'.css" rel="stylesheet" type="text/css" />');
}

userAgent=navigator.userAgent;

if ((userAgent.indexOf('MSIE 5') != -1) && (userAgent.indexOf('Mac') != -1)) {
	/* IE 5.xx for Mac OS */
	createStylesheetLink("http://www.k-place.net/css/fonts_for_mac_ie");

} else if ((userAgent.indexOf('Mozilla') != -1) && (userAgent.indexOf('Mac OS X') != -1)) {
	if (userAgent.indexOf('AppleWebKit') != -1){
		/* Apple Safari or OmniWeb 4.5 */
		createStylesheetLink("http://www.k-place.net/css/fonts_for_mac_webkit");

	}else{
		/* Netscape 6 or rater */
		createStylesheetLink("http://www.k-place.net/css/fonts_for_mac_carbon");
	}
}
