Agent = window.navigator.userAgent;
isIE = (Agent.indexOf("MSIE") > 0)&& !( (navigator.userAgent.indexOf("Opera")!=-1)||(navigator.userAgent.indexOf("iCab")!=-1) );
if (isIE) {
	AgVers = parseInt(Agent.substr(Agent.indexOf("MSIE")+5, 3));
} else {
	AgVers = parseInt(Agent.charAt(Agent.indexOf("/")+1),10);
}
isPCNN = isMacNN = false;

if (Agent.indexOf("Mac") > 0) {	//Mac
	if (isIE) {
		if(AgVers >= 5) {
//------------------------------------------- Mac IE 5
			//do nothing
		} else {
//------------------------------------------- Mac IE 3 or 4
			with(document.classes) {
				maintained.all.fontSize="x-small";
				text.all.fontSize="small";
				smallText.all.fontSize="x-small";
			}
			with(document.tags) {
				ul.fontSize="small";
				ol.fontSize="small";
				li.fontSize="small";
			}
		}
	} else {
		if(AgVers < 5) {
//------------------------------------------- Mac NN 4.x or less
			if(Agent.indexOf("Mozilla") >= 0)
				isMacNN = true;
		} else {
//------------------------------------------- Mac NN 6
			//put code for NN6 here when it supports CSS better
			//NS6 uses a funky DOM that doesn't work yet
		}
	}
} else {								//PC
	if (isIE) {
//------------------------------------------- PC IE
	} else {
		if(AgVers < 5) {
//------------------------------------------- PC NN 4.x or less
			if(Agent.indexOf("Mozilla") >= 0)
				isPCNN = true;
		} else {
//------------------------------------------- PC NN 6
			//See above NN6 notes
		}
	}
}

if (isPCNN || isMacNN) {
	document.writeln("<SCRIPT LANGUAGE=\"JavaScript1.1\" SRC=\"http://www.carleton.edu/global_stock/css/CarlStyleNS.js\"></SCRIPT>");
}
