var menuBaseHref = "";

// if NOT teamsite AND NOT www.gelighting, make menuBaseHref absolute.
var hoststring = window.location.host.toLowerCase();
if (hoststring.indexOf('teamsite') == -1 && hoststring.indexOf('www.gelighting') == -1) {
	menuBaseHref = "http://www.gelighting.com";
}

var aV = navigator.appVersion.toLowerCase();
var isMsie45 = aV.indexOf("msie 4.5");
var isMsie = aV.indexOf("msie");
var isNn = navigator.appName.toLowerCase().indexOf("netscape");

var isCompVersion = parseFloat(navigator.appVersion);
var isGenVersion = parseInt(navigator.appVersion);
var isVersion = isCompVersion - isGenVersion;

var cssFile = "nojs.css";

cssFile = (
	(aV.indexOf("win")!= -1)
		? cssFile = (isMsie != -1 && isVersion == 0 && document.all)
			? "winmac_ie_5plus.css"
			: (isNn != -1)
				? (isGenVersion >= 5 && document.getElementById)
					? "winmac_nn_6plus.css"
					: (isCompVersion >= 4.08)
						? "win_nn_4.08-mac_ie_4.5.css"
						: cssFile
				: cssFile
		: (aV.indexOf("mac")!= -1)
			? cssFile = (isMsie45!= -1)
				? "win_nn_4.08-mac_ie_4.5.css"
				: (isMsie != -1 && isVersion == 0 && document.all)
					? "winmac_ie_5plus.css"
					: (isNn!= -1)
						? (isVersion == 0 && document.getElementById)
							? "winmac_nn_6plus.css"
							: (isCompVersion <= 4.7)
								? "mac_nn_4.7-.css"
								: "mac_nn_4.72.css"
						: cssFile
			: cssFile
);

document.writeln('<link rel="stylesheet" href="' + menuBaseHref + '/na/css04/' + cssFile + '" type="text/css">');

//alert(cssFile);
