var detect = navigator.userAgent.toLowerCase();
var OS,browser,total,thestring;
var version = 0;

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('msie')) browser = "Internet Explorer"
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 != "Internet Explorer")
{
	document.write("<style type='text/css'> #columnLink{top:0} #bodyDiv{width:698} #indexCopy{top:0px} #servicesTag{width:395px} #servicesCopy{left:95px} #copyTest{top:12px} #copyrightTest{top:62px} #testText{width:318} </style>");
	document.write("<style type='text/css'> #columnCopy{left:562;} #columnTextDiv{top:15}</style>");
	document.write("<style type='text/css'> #directContactDiv{top:25;} #logoContactDiv{top:15} #menuContactDiv{top:25} #indirectContactDiv{top:25} #copyContactDiv{top:25} #copyrightContact{top:30;left:560;}</style>");
	document.write("<style type='text/css'> #bioCopy{top:-5;} #bioLogo{top:-5} #bioCopyRight{top:-5}</style>");

} else{
	document.write("<style type='text/css'> #columnLink{top:5} #bodyDiv{width:700} #indexCopy{top:10px} #servicesTag{width:405px} #servicesCopy{left:100px} #copyTest{top:-6px} #copyrightTest{top:30px} #testText{width:330}</style>");
	document.write("<style type='text/css'> #columnCopy{left:220;top:10} #columnTextDiv{top:}</style>");
	document.write("<style type='text/css'> #directContactDiv{} #logoContactDiv{} #menuContactDiv{} #indirectContactDiv{} #copyContactDiv{top:-5} #copyrightContact{top:15;left:275;}</style>");
}

