//File created by Emma Arce, 11/13/2001

//This file is used to serve the right style sheet depending on the browser and OS being used

//Place a copy of this file inside every directory and change the HREF paths so that they

//point to the css (cascading style sheet) files.



var NS4 = (document.layers);

var NS4_XP = (NS4 && navigator.appVersion.indexOf("WinNT")!=-1);

var IE4 = (document.all);

var ver4 = (NS4 || IE4);

var IE5 = (IE4 && navigator.appVersion.indexOf("5.")!=-1);

var IE6 = (IE4 && navigator.appVersion.indexOf("MSIE 6.0")!=-1);

var isMac = 0;

if (navigator.appVersion.indexOf("Mac")!=-1)

	{ isMac=1;}



if (isMac) {

	document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='stylesheets/stylesheet_mac.css'>");

}

else if (NS4_XP) {

		document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='stylesheets/stylesheet_winXP_nn.css'>");

}

else if (NS4) {

		document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='stylesheets/stylesheet_win_nn.css'>");

}

else if (IE6) {

	document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='stylesheets/stylesheet_winXP_ie6.css'>");

}

else if (IE4 || IE5) {

	document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='stylesheets/stylesheet_win_ie.css'>");

}

else {

	document.write("<LINK REL='stylesheet' TYPE='text/css' HREF='stylesheets/stylesheet_win_nn.css'>");

}



//The following function can be used to make sure the right style sheet is being loaded

//for a particular browser or operating system.



function printInfo() {

	if (isMac) {document.write("You are using a Macintosh computer.");}

	else if (NS4_XP) {document.write("You are using Netscape 4 on Windows NT");}

	else if (NS4) {document.write("You are using Netscape 4");}

	else if (IE6) {document.write("You are using IE6 on Windows");}

	else if (IE4 || IE5) {document.write("You are using IE4 or 5");}

	else {document.write("You are using an unknown browser");}

}