
// styleApply2.1
// http://www.auklet.co.jp

// ----- Set Variables -----
if(typeof(BaseDir) !="string")
   BaseDir = "./styles/";

// ----- Check Client -----
var cType = "";

if(navigator.appName.indexOf("Microsoft") != -1) {
   if (navigator.appVersion.indexOf("MSIE 3.") >=0) cType = "";
   if (navigator.appVersion.indexOf("MSIE 4.") >=0) cType = "i4";

   if (navigator.appVersion.indexOf("MSIE 5.") >=0) {
      if (navigator.platform.indexOf("Mac") != -1)  
         cType = "i5m";
      else
         cType = "i5w";
   }

   if (navigator.appVersion.indexOf("MSIE 6.") >=0) cType = "i6";
   if (navigator.appVersion.indexOf("MSIE 7.") >=0) cType = "i6";
   if (navigator.appVersion.indexOf("MSIE 8.") >=0) cType = "i6";
   if (navigator.appVersion.indexOf("MSIE 9.") >=0) cType = "i6";
}
if(navigator.appName.indexOf("Netscape") != -1) {
   if (navigator.appVersion.charAt(0) == "4") {
      if(navigator.appVersion.charAt(2) < 5)
         cType = "";
      else
         cType = "n4";
   }
   if (navigator.appVersion.charAt(0) == "5") {
      cType = "n6";
   }
}

if(navigator.userAgent) {
   if(navigator.userAgent.indexOf("Gecko/") != -1) {
      cType = "n6";
    }
	if(navigator.userAgent.indexOf("Safari") != -1) {
	   cType = "safari";
	}
}

if(cType != "") {
   document.write('<LINK rel="stylesheet" type="text/css" href="'+BaseDir+cType+'.css" charset="Shift_JIS">');
}


