var mac_IE_style = "mac_IE_style.css";
var win_IE_style = "win_IE_style.css";
var mac_Other_style = "mac_Other_style.css";
var win_Other_style = "win_Other_style.css";

var theRel = "stylesheet";
var theType = "text/style";

var codeName = navigator.appCodeName;
var minorVersion = navigator.appMinorVersion;
var theName = navigator.appName;
var theVersion = navigator.appVersion;
var thePlatform = navigator.platForm;
var theProd = navigator.product;
var theProdSub = navigator.productSub;
 
function writeNavigatorData(){
  document.write("The Code Name: " + codeName + "<br />");
  document.write("The Minor Version: " + minorVersion + "<br />");
  document.write("The Application Name: " + theName + "<br />");
  document.write("The Version Number: " + theVersion + "<br />");
  document.write("The Platform: " + thePlatform + "<br />");
  document.write("The Product: " + theProd + "<br />");
  document.write("The Product Sub: " + theProdSub + "<br />");
  document.write("<br />");
}

if(theVersion.indexOf("PPC") != -1){
  if(theVersion.indexOf("MSIE") != -1){
	document.write("<link rel='stylesheet' href='" + mac_IE_style + "' type='text/css'>");
  }else{
	document.write("<link rel='stylesheet' href='" + mac_Other_style + "' type='text/css'>");
  }
	  
}else if(theVersion.indexOf("Windows") != -1){
  if(theVersion.indexOf("MSIE") != -1){
	document.write("<link rel='stylesheet' href='" + win_IE_style + "' type='text/css'>");
  }else{
	document.write("<link rel='stylesheet' href='" + win_Other_style + "' type='text/css'>");
  }
}
