/*
	You may configure what additional stylesheets are added to the page based on the browser and version here.
	Valid values for browser are: "IE", "Firefox", "Safari", "Opera".
	You may configure multiple stylesheet rules for different browsers.
*/
var ConditionalStyleSheets = [
	{href: "/projects/thetachi/homepage/repository/assets/styles/ie6.css", browser: "IE", version: "6"}
];

Browser = {};
Browser.version = parseFloat(navigator.appVersion);

if (navigator.userAgent.indexOf(' MSIE ') > -1) {
    Browser.version = parseFloat(navigator.userAgent.match(/MSIE (\d+\.\d+)/)[1]);
	Browser.name = "IE";
}
else if (navigator.userAgent.indexOf(' Firefox/') > -1) {
    Browser.version = parseFloat(navigator.userAgent.match(/ Firefox\/(\d+\.\d+)/)[1]);
    Browser.name = 'Firefox';
}
else if (navigator.userAgent.indexOf(' Safari/') > -1) {
    Browser.version = parseFloat(navigator.userAgent.match(/ Safari\/(\d+\.\d+)/)[1]);
    Browser.name = 'Safari';
}
else if (navigator.userAgent.indexOf('Opera/') > -1) {
	Browser.name = "Opera";
}

for (var i = 0; i < ConditionalStyleSheets.length; i++)
{
	var conditionalStyle = ConditionalStyleSheets[i];
	if ((Browser.name == conditionalStyle.browser) && (Browser.version == parseFloat(conditionalStyle.version)))
	{
		document.write('<link type="text/css" rel="stylesheet" href="' + conditionalStyle.href + '" />');
	}
}