fieldset {
	background: #EDEDED;
	border: 1px solid #979797;
	margin-bottom: .75em;
	padding: 1em;
}

fieldset a {
	color: #BA670A;
}

fieldset legend {
	font-size: 125%;
	font-variant: small-caps;
}

fieldset legend strong {
	margin: 0 0.5em;
}

fieldset ol {
	list-style-type: none;
	margin-left: 0;
	padding: 0 0 .5em 0;
}

div#content fieldset p,
div#content fieldset ol {
	margin-bottom: 0px;				/* overrides style as necessary from above */
}

fieldset ol li {
	display: block;
	float: left;
	
	min-height: 20px;
	height: auto !important;
	height: 20px;
	
	margin-bottom: .5em;
	width: 100%;
}

fieldset li label {
	float: left;
	margin-right: 1.5em;
	position: relative;
	top: 2px;
	width: 10em;
}

fieldset label span {
	left: -500000000px;
	position: absolute;
}

fieldset li label.inline {
	float: none;
	margin-right: 0;
	width: auto;
	top: 1px;
}

fieldset label.hidden {
	visibility: hidden;
	white-space: nowrap;			/* lets us jam as much into a hidden label (for accessibility) as necessary */
}

fieldset label img {
	border-style: none;
	left: 10.5em;
	position: absolute;
}

fieldset label strong {
	color: #C00;
	display: block;
	font-size: 90%;
	font-weight: normal;
	text-transform: uppercase;
}

fieldset li.full_label,
fieldset li.wide_label {
	height: auto;
}

/*  The following 4 selectors will help the display of some forms which require wider or full-sized labels for fields. */

fieldset li.wide_label label {
	width: 20em;
}

fieldset li.wide_label label img {
	left: 20.5em;
}

fieldset li.full_label label {
	width: 100%;
}

fieldset li.full_label label img {
	display: inline;
	position: static;
}

fieldset.horizontal {
	background: transparent;
	border-style: none;
	display: inline;
	margin:  0px;
	padding: 0px;
	width: auto;
}

fieldset ol.horizontal li {
	display: inline;
	width: auto;
}

fieldset ol.horizontal li label {
	width: auto;
}

fieldset fieldset label {
	float: none;
	width: auto;
}

fieldset fieldset {
	border-style: none;
	margin: 0;
	padding: 0;
}

fieldset fieldset legend {
	font-size: 100%;
	font-variant: normal;
	line-height: 115%;
}

fieldset fieldset legend strong {
	left: 1em;
	position: absolute;
	width: 10.5em;
}

fieldset li.full_label fieldset legend strong {
	width: 100%;
}

fieldset fieldset ol {
	left: 11.5em;
	position: relative;
	padding: 0;
}

fieldset fieldset ol.horizontal li {
	white-space: nowrap;
}

div#content fieldset fieldset ol {					/* this one and the next override other div#content styles above */
	padding: 0;
}

div#content fieldset fieldset ol.horizontal li {
	margin-bottom: 0px;
}

fieldset li.full_label fieldset ol {
	left: 0em;
	top: 1.25em;
}

fieldset fieldset label {
	top: 0px;
}

fieldset fieldset li input[type=radio],
fieldset fieldset li input[type=checkbox] {
	position: relative;
	top: 2px;
}

fieldset.sidebar label {
	width: 4.5em;
}

/* here we're going to define some nifty :hover and :focus styles for the appropriate input elements.  not all
   browser weill use them, but those that do will reap some visual benefit from having them. */
   
select:hover,
textarea:hover,
input[type=text]:hover,
input[type=password]:hover {
	border-color: #248FFF;
}

select:focus,
textarea:focus,
input[type=text]:focus,
input[type=password]:focus {
	border-color: #EF8A1C;
}

select.valid,
textarea.valid,
input[type=text].valid,
input[type=password].valid {
	background: #DFF;
	border-color: #990;
}

select.invalid,
textarea.invalid,
input[type=text].invalid,
input[type=password].invalid {
	background: #FDD;
	border-color: #900;
}

optgroup {
	font-style: normal;
	font-variant: bold;
	padding-bottom: 20px;
}

optgroup option {
	font-weight: normal;
}

input[type=submit].cancel {
	background-color: #FFB0BB;
	border-color: #FF7D8F;
}

input[type=submit].okay {
	background-color: #D0FFB0;	
	border-color: #85FF2F;
}

#content ul    { margin-left: 2.5em; }	
#content p, ul { margin-bottom: 1em; }
fieldset p     { margin-bottom: 1em !important; }
img            { border-style: none; }
fieldset fieldset { position: relative; }
fieldset fieldset legend strong { left: -0.5em; top: 1px; }
fieldset fieldset ol li { float: left; width: auto; margin-bottom: 0; }



