
var detect = navigator.userAgent.toLowerCase();
var OS,browser,version,total,thestring;

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('mozilla'))
{
	browser = "Mozilla"
	version = detect.charAt(8);
}

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 (OS == "Windows")
{
	
	if (browser == "Internet Explorer" && version >= 6)
		{
			document.write("<div style='margin-top:58px;'>");
		}
	
	else if (browser == "Internet Explorer" && version <= 5.5)
		{
			document.write("<div style='margin-top:58px;'>");
		}	
	
	else if (browser == "Netscape Navigator" && version >= 5)
		{
			document.write("<div style='margin-top:58px;'>");
		}
}

if (OS == "Mac")
{

	if (browser == "Internet Explorer" && version >= 5)
		{
			document.write("<div style='margin-top:58px;'>");
		}
	
	else if (browser == "Netscape Navigator" && version >= 5)
		{
			document.write("<div style='margin-top:59px;'>");
		}
	
	else if (browser == "Safari")
		{
			document.write("<div style='margin-top:58px;'>");
		}
		
}

if (browser == "Opera")
	{
		document.write("<div style='margin-top:38px;'>");
	}
