
var ua = navigator.userAgent;
var d = document;

// load an additional style sheet if the UA is IE 7
if ( ( ua.indexOf ( 'MSIE 7' ) != -1 ) && ( ua.indexOf ( 'Mac OS X' ) == -1 ) ) {
	d.write ( '<link rel="stylesheet" rev="stylesheet" ' +
		'href="http://www.soe.ucsc.edu/_css/IE7fixes.css" media="screen" />' );
}

// load an additional style sheet if the UA is IE 6
if ( ( ua.indexOf ( 'MSIE 6' ) != -1 ) && ( ua.indexOf ( 'Mac OS X' ) == -1 ) ) {
	d.write ( '<link rel="stylesheet" rev="stylesheet" ' +
		'href="http://www.soe.ucsc.edu/_css/IE6fixes.css" media="screen" />' );
}

// load an additional style sheet if the UA is Opera 8.* on Win
if ( ( ua.indexOf ( 'Opera/8' ) != -1 ) && 
		( ua.indexOf ( 'Windows' ) != -1 ) &&
		( ! document.location.href.match ( /\.edu\/?(index\.html)?$/ ) ) ) {
	d.write ( '<link rel="stylesheet" rev="stylesheet" ' +
		'href="http://www.soe.ucsc.edu/_css/OperaWinFixes.css" media="screen" />' );
}

// Firefox on linux (unix?) has a 
if ( ( ua.indexOf ( 'Linux' ) != -1 ) && 
		( ua.indexOf ( 'Firefox' ) != -1 ) ) {
	d.write ( '<link rel="stylesheet" rev="stylesheet" ' +
		'href="http://www.soe.ucsc.edu/_css/FirefoxLinuxFixes.css" media="screen" />' );
}

