//detect the browserfunction getBrowser()  // get the browser program name  {  if (navigator.appName == null || navigator.appName == "")    return "other";  else if (navigator.appName == "Netscape")    return "netscape";  else if (navigator.appName == "Microsoft Internet Explorer")    return "ie";  else    return "other";  }//detect the platformfunction getPlatform() // get the browser platform (OS)  {  if (navigator.platform == null || navigator.platform == "")    return "other";  else if (navigator.platform.indexOf("Mac") >= 0)    return "mac";  else if (navigator.platform.indexOf("Win") >= 0)    return "win";  else if (navigator.platform.indexOf("Unix") >= 0)    return "unix";  else    return "other";  }//Select appropriate stylesheet  styleurl='<link rel="stylesheet" href="http://hosted.ap.org/specials/stylesheets/';if (getPlatform() == "mac")    styleurl += "m_";if (getPlatform() == "win")    styleurl += "w_";if (getBrowser() == "netscape") {    styleurl +=  "nn_";    if (navigator.appVersion.indexOf('4') == 0)       styleurl += "4_" ;}if (getBrowser() == "ie")    styleurl += "ie_" ;styleurl += 'style.css" type="text/css">'//alert (styleurl);document.write(styleurl);