//For information of multiple IE on a single PC, refer to:
//http://webdesign.about.com/b/a/049411.htm

//*****************************************************************************
//http://www.quirksmode.org/js/detect.html
function checkIt(string)
{
	place = detect.indexOf(string) + 1;
	thestring = string;
	return place;
}

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('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";
}

//*****************************************************************************

	//using the browser sniffing code above, obtained at:
	//http://www.quirksmode.org/js/detect.html
	//we can now apply this rule only to IE
	if( "Internet Explorer" == browser )
	{
		document.writeln('<style type="text/css">');

		document.writeln(".contentForm, .formGroup{-moz-border-radius: 4%;}");

		document.writeln(".formHeader{-moz-border-radius: 15% 15% 0 0;}");

		document.writeln(".formFooter{-moz-border-radius: 0 0 15% 15%;}");

		document.writeln('body { behavior: url(/Styles/cssHover.htc); }');

		document.writeln("<" + "/style>");
	}

