
// This script detects the platform and browser version and applies the correct cascading style sheet

var browserVer = parseInt(navigator.appVersion);
var isIE5 = 0;
var isIE6 = 0;

if (navigator.userAgent.indexOf('IE 5') != -1){
	isIE5 = 1;
}

if (navigator.userAgent.indexOf('IE 6') != -1){
	isIE6 = 1;
}

if ((navigator.platform.indexOf('Mac') != -1) && (browserVer < 5)  && (isIE5 != 1)) {
	document.write('<link rel="stylesheet" href="css/large.css">');
}

else if ((navigator.platform.indexOf('Mac') != -1) && (browserVer < 6)  && (isIE5 == 1)) {
	document.write('<link rel="stylesheet" href="css/medium.css">');
}

else if ((browserVer < 6)  && (isIE5 != 1)  && (isIE6 != 1)) {
	document.write('<link rel="stylesheet" href="css/medium.css">');
}

else {
	document.write('<link rel="stylesheet" href="css/small.css">');
}


