// CSS Write Action Script 
// By Matt Ridley
//  Changes in version 1.1
//   * Now deals specifically with IE5 Mac
//   * Now allows choosing a StyleSheet for all other browsers (v4 or later)
//   * Now doesn't write a StyleSheet if the URL is "(Empty Reference!)"
// Modify for appropriate style sheet file names

function isMSIE() {
	if ((navigator.appName.indexOf("Explorer") != -1) && (parseInt(navigator.appVersion) >= 4)) {
		return true; }
	else {return false;}
}
function isNS() {
	if ((navigator.appName.indexOf("Netscape") != -1) && (parseInt(navigator.appVersion) >= 4)) {
		return true; }
	else {return false;}
}
function isNN6() {
	if (document.getElementById && !document.all && !window.opera) {
		return true; }
	else {return false;}
}
function isPC() {
	if (navigator.userAgent.indexOf("Win") != -1) {
		return true; }
	else {return false;}
}
function isMac() {
	if (navigator.appVersion.indexOf("PPC") != -1) {
		return true; }
	else {return false;}
}

theStr="";
	if (isNN6()) {
		theStr="BayStateGasIE.css"
	}
	if (isNS()) {
		if (isMac()) {
			theStr="BayStateGasNetscape.css";
		}
		else if (isPC()) {
			theStr="BayStateGasNetscape.css";
		}
	}
	if (isMSIE()) {
		if (isMac()) {
			theStr="BayStateGasIE.css";
			if (navigator.userAgent.indexOf("MSIE 5") != -1) {
				theStr="BayStateGasIE.css";
			}
		}
		else if (isPC()) {
			theStr="BayStateGasIE.css";
		}
	}
	
	if ((theStr!="") && (theStr!="(Empty Reference!)")) {
		document.write("<LINK HREF=\""+theStr+"\" REL=\"styleSheet\" TYPE=\"text/css\">");
	}



