function detectBrowser() {

		var detect = navigator.userAgent.toLowerCase();
		var OS,browser,version,total,thestring, myVar;
		
		if (checkIt('konqueror'))
		{
			browser = "Konqueror";
			OS = "Linux";
		}
		else if (checkIt('camino')) browser = "Camino"
		else if (checkIt('safari')) browser = "Safari"
		else if (checkIt('omniweb')) browser = "OmniWeb"
		else if (checkIt('opera')) browser = "Opera"
		else if (checkIt('webtv')) browser = "WebTV";
		else if (checkIt('icab')) browser = "iCab"
		else if (checkIt('firefox')) browser = "FireFox"
		else if (checkIt('msie')) browser = "InternetExplorer"
		else if (!checkIt('compatible'))
		{
			browser = "Netscape Navigator"
			version = detect.charAt(8);
		}
		else browser = "An unknown browser";
		
		if (!version) version = detect.charAt(place + thestring.length);
		
		if (!OS)
		{
			if (checkIt('linux')) OS = "Linux";
			else if (checkIt('x11')) OS = "Unix";
			else if (checkIt('mac')) OS = "Mac"
			else if (checkIt('win')) OS = "Windows"
			else OS = "an unknown operating system";
		}
		
		function checkIt(string)
		{
			place = detect.indexOf(string) + 1;
			thestring = string;
			return place;
			
		}


if(browser == "FireFox"){
	
			if(OS=="Windows") {
				if(document.cookie.indexOf('style=1')>=0) { // if this is the small style sheet on windows
					myVar ='<style type="text/css" media="screen">body {font-size: 11px;} html>body { font-size: 11px;}</style>';

				} else if(document.cookie.indexOf('style=2')>=0) { // if this is the medium style sheet on windows
						myVar ='<style type="text/css" media="screen">body {font-size: 14px;} html>body { font-size: 14px;}</style>';	

				} else if(document.cookie.indexOf('style=3')>=0) { // if this is the large style sheet on windows
								myVar ='<style type="text/css" media="screen">body {font-size: 17px;} html>body { font-size: 17px;}</style>';

				} else {
					myVar ='<style type="text/css" media="screen"></style>';
				}
			} else {
				myVar = '<style type="text/css" media="screen"></style>';
			}	
		
	}

if (browser == "Camino") {	
	myVar	='<style type="text/css" media="screen"></style>';				
	}

if (browser == "Safari") {	
	myVar	='<style type="text/css" media="screen"></style>';				
	}

if (browser == "Opera") {
		myVar	='<style type="text/css" media="screen"></style>';
					}


if (browser == "InternetExplorer") {
	/*myVar ='<style type="text/css" media="screen">#mainContent #mainContentColumn { width: 200%; }#subNavTable #subNavHeader{width: 100%; }#subNavTable #subNavFooter{ width:100%; } #subHighlightsTable #subHighlightsHeader { width:100%; } #subHighlightsTable #subHighlightsFooter { width:100%; }</style>';
	*/
	if(document.cookie.indexOf('style=1')>=0) { // if this is the small style sheet on windows
		myVar ='<style type="text/css" media="screen">body {font-size: 11px;} html>body { font-size: 11px;} #mainContent #mainContentColumn { width: 200%; }#subNavTable #subNavHeader{width: 100%; }#subNavTable #subNavFooter{ width:100%; } #subHighlightsTable #subHighlightsHeader { width:100%; } #subHighlightsTable #subHighlightsFooter { width:100%; }</style>';
	
	} else if(document.cookie.indexOf('style=2')>=0) { // if this is the medium style sheet on windows
			myVar ='<style type="text/css" media="screen">body {font-size: 14px;} html>body { font-size: 14px;} #mainContent #mainContentColumn { width: 200%; }#subNavTable #subNavHeader{width: 100%; }#subNavTable #subNavFooter{ width:100%; } #subHighlightsTable #subHighlightsHeader { width:100%; } #subHighlightsTable #subHighlightsFooter { width:100%; }</style>';	
			
	} else if(document.cookie.indexOf('style=3')>=0) { // if this is the large style sheet on windows
					myVar ='<style type="text/css" media="screen">body {font-size: 17px;} html>body { font-size: 17px;} #mainContent #mainContentColumn { width: 200%; }#subNavTable #subNavHeader{width: 100%; }#subNavTable #subNavFooter{ width:100%; } #subHighlightsTable #subHighlightsHeader { width:100%; } #subHighlightsTable #subHighlightsFooter { width:100%; }</style>';
		
	} else {
		myVar ='<style type="text/css" media="screen">#mainContent #mainContentColumn { width: 200%; }#subNavTable #subNavHeader{width: 100%; }#subNavTable #subNavFooter{ width:100%; } #subHighlightsTable #subHighlightsHeader { width:100%; } #subHighlightsTable #subHighlightsFooter { width:100%; }</style>';
	}
	// end if cookie check
	

}



document.write(myVar);

}