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"){
		myVar = '<style type="text/css" media="screen">.navSection a{ background-image:url(images/sub_nav_indicator.gif); background-position:20px 10px;} .navSection a:hover{ background-image:url(images/sub_nav_indicator_over.gif); background-position:20px 10px; }</style>';
					}


if (browser == "Safari") {
//	myVar = '<style type="text/css" media="screen">body{font-size:9px;}</style>';	
	myVar	='<style type="text/css" media="screen">.navSection a{ background-image:url(images/sub_nav_indicator.gif); background-position:20px 10px;} .navSection a:hover{ background-image:url(images/sub_nav_indicator_over.gif); background-position:20px 10px; }</style>';				
	}

if (browser == "Opera") {
//		myVar = '<style type="text/css" media="screen">body{font-size:9px;}.nav{font-size:10px;}</style>';
		myVar	='<style type="text/css" media="screen">.navSection a{ background-image:url(images/sub_nav_indicator.gif); background-position:20px 10px;} .navSection a:hover{ background-image:url(images/sub_nav_indicator_over.gif); background-position:20px 10px; }</style>';
					}


if (browser == "InternetExplorer") {
	myVar ='<style type="text/css" media="screen"> body {font-size:12px; } ul.sectionTree li ul li a{background-image:url(images/sub_nav_indicator.gif); background-position:0px 15px;} .sectionTree li ul li a:hover{ background-image:url(images/sub_nav_indicator_over.gif); background-position:0px 15px;} ul.sectionTree li ul li.last a{ background-image:url(images/sub_nav_indicator.gif); background-position:0px 15px; } ul.sectionTree li ul li.last a:hover{ background-image:url(images/sub_nav_indicator_over.gif); background-position:0px 15px;}   </style>';
					}
/*

*/
// document.write(myVar + ' b-> '  + browser + ', ver ' + version + ', OS ' + OS + ' orig --> ' + detect);


document.write(myVar);

}