var Win = navigator.userAgent.indexOf("Win") != -1 ? true : false 
var Mac = navigator.userAgent.indexOf("Mac") != -1 ? true : false 
var X11 = navigator.userAgent.indexOf("X11") != -1 ? true : false 

if (document.getElementById) {

	if (Win) {
	  if (window.opera) {
		cssurl = "../common/style_winopera.css"			// Win W3C対応(Win Opera)ブラウザ用
	  } else if (navigator.userAgent.indexOf('Gecko') != -1)  {
		cssurl = "../common/style_winfirefox.css"		// Win W3C対応(Win Firefox,nn7.1)ブラウザ用
	  } else {
		cssurl = "../common/style_winie.css"				// Win W3C対応(Win IE)ブラウザ用
	  }
	}
	else if(Mac) cssurl = "../common/style_macie.css"	// Mac W3C対応ブラウザ用
	else if(X11) cssurl = "../common/style_winie.css"	// X11 W3C対応ブラウザ用

} else if (document.all) {

	if (Win)     cssurl = "../common/style_winie.css"	// Win IE
	else if(Mac) cssurl = "../common/style_macie.css"	// Mac IE

} else if (document.layers) {

	if (Win)     cssurl = "../common/style_winie.css"	// Win N4
	else if(Mac) cssurl = "../common/style_macnn.css"	// Mac N4
	else if(X11) cssurl = "../common/style_winie.css"	// X11 N4

} else {
               cssurl ="./common/style_winie.css"		// その他
}

document.write('<link rel="stylesheet" ')
document.write('      type="text/css"  ')
document.write('      href="'+cssurl+'"')
document.write('>')