function detectBrowser() {

		
		var detect = navigator.userAgent.toLowerCase();
		var OS,browser,version,total,thestring, myVar;
		
		
		
					
		
		if (checkIt('konqueror'))
		{
			browser = "Konqueror";
			OS = "Linux";
		}
		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") {
		myVar ='<style type="text/css" media="screen">body{font-size:xx-small;} .navCell {font-weight: normal; }</style>';
	} else {

		myVar = '<style type="text/css" media="screen">body{font-size:xx-small;} </style>';
	}	
		
		}


if (browser == "Safari") {	
	myVar	='<style type="text/css" media="screen">body{font-size:xx-small;}#bodyHome {font-size: 180%; font-weight:lighter;}</style>';				
	}

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

	
if (browser == "InternetExplorer") {
	myVar ='<style type="text/css" media="screen">.bodyCell {padding: 20px 10px 90px 5px;}.navCell { width: 350px;font-weight: normal;} .navCell p {padding: 0px 10px 0px 20px;margin: 0px 0px 20px 15px; font-weight: bolder;} .navCell a {padding: 0px 10px 0px 20px;margin: 0px 0px 20px 15px;}.subNav {padding: 0px 0px 0px 10px; margin: -12px 0px 20px 0px;}.subNav p {font-size: 9.5px;margin: 0px 0px 7px 10px; font-weight: bolder;}.subNav a {font-size: 9.5px; margin: 0px 0px 7px 10px;}.subNav a:hover {font-size: 9.5px; margin: 0px 0px 7px 10px;} #mainNavInSection {margin: 0px 0px 20px 15px; padding: 0px 10px 0px 20px;}</style>';


					}



document.write(myVar);

}