<!-- Hide script from older browsers

/*	csm2001bCSS.js
	Function that detects browser & platform, and serves up 
	the correct stylesheet. Used on every page of 2003 redesign. */
/*	when transfering this js live, make the hrefs absolute  */

var browser = navigator.appName;
var version = parseFloat(navigator.appVersion);
var platform = navigator.platform;
var vendor = navigator.vendor;
var isIE = false;
var isPC = false;
var isLinux = false;
var isUnix = false;
var isFIVEO = false;
var isMac = false;

// testing

var infoToParse = navigator.appVersion;
var pattern = /((\d\.\d)\s\(([a-z]+)\W\s([a-z]+\s)(\d\.\d)\W)/i;
var result = infoToParse.match(pattern);
if (result != null) var ie_real_version_number = result[5];
if ((ie_real_version_number >= 5.0) || (version >= 5.0)) isFIVEO = true;

if (browser == "Microsoft Internet Explorer") {
	isIE = true;
} else if (browser == "Netscape") {
	if (vendor == "Apple Computer, Inc.") {
		isIE = true;
	} else {
		isIE = false;
	}
}

if ((platform == "Win32") || (platform == "Win16")) {
	isPC = true;
} else if (platform == "MacPPC") {
	isMac = true;
}

var StringToParse = platform;
var pattern = /linux/i; // regular expression
var result = StringToParse.match(pattern);
if (result != null) isLinux = true;	
pattern = /unix/i; // regular expression
result = StringToParse.match(pattern);
if (result != null) isUnix = true;
if (!(isPC) && !(isLinux) && !(isUnix)) {
	isMac = true;
} 

// writing

if ((isPC) && (isIE)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmpc_ie2001b.css\" type=\"text/css\">");
} else if ((isPC) && !(isIE)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmpc_ns2001b.css\" type=\"text/css\">");
} else if ((isMac) && (isIE) && (isFIVEO)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmmac_ie2001b.css\" type=\"text/css\">");
} else if ((isMac) && (isIE) && !(isFIVEO)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmmac_ns2001b.css\" type=\"text/css\">");
} else if ((isMac) && !(isIE)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmmac_ns2001b.css\" type=\"text/css\">");
} else if ((isLinux) || (isUnix)) {
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmux_ns2001b.css\" type=\"text/css\">");
} else { 
	document.write("<LINK rel=\"stylesheet\" href=\"/lib/css/csmpc_ie2001b.css\" type=\"text/css\">"); //default is PC IE for all other browsers, platforms.

} // end else ifs

// End hiding script -->










