// JavaScript Document

//alert(navigator.userAgent);

if (navigator.userAgent.indexOf("Firefox")!=-1)
{
    if (navigator.platform.indexOf('Mac') != -1)
	{
		document.write('<style type="text/css">ul#topnav li a {height:23px;padding-top:6px;}</style>');
		document.write('<style type="text/css">ul#topnav li span {top:28px;height:33px;padding-top:5px;}</style>');
	}
	else
	{
		document.write('<style type="text/css">#navspace {height:17px;}</style>');
		document.write('<style type="text/css">ul#topnav li span {height:40px;padding-bottom:3px;margin-bottom:3px;}</style>');
		document.write('<style type="text/css">ul#topnav li a {height:29px;padding-top:5px;}</style>');
	}
}
else if (navigator.userAgent.indexOf("MSIE")!=-1)
{
	 document.write('<style type="text/css">ul#topnav li a {height:24px;padding-top:5px;}</style>');
	 document.write('<style type="text/css">ul#topnav li span {top:28px;height:33px;}</style>');
}
else if (navigator.userAgent.indexOf("Chrome")!=-1)
{
	//alert("using chrome");
	document.write('<style type="text/css">ul#topnav li a {height:22px;padding-top:5px;}</style>');
	 document.write('<style type="text/css">ul#topnav li span {top:28px;height:25px;}</style>');
}
else if (navigator.userAgent.indexOf("Safari")!=-1)
{
	//alert("using chrome");
	document.write('<style type="text/css">ul#topnav li a {height:24px;padding-top:6px;}</style>');
	 document.write('<style type="text/css">ul#topnav li span {top:27px;height:30px;padding-top:5px;}</style>');
}
else if (navigator.userAgent.indexOf("iPhone")!=-1)
{
	//alert("using chrome");
	document.write('<style type="text/css">ul#topnav li a {height:30px;padding-top:3px;}</style>');
	 document.write('<style type="text/css">ul#topnav li span {top:29px;height:30px;}</style>');
}
