/* General HTML elements */
body {	
	background: #8C470C;
	margin: 0; padding: 0 0 10px;
	font-family: "Trebuchet MS", Geneva, Arial, Helvetica, sans-serif;
	line-height: 1em;
	font-size: small; /* Lies for IE 5 Win */
	voice-family: "\"}\""; 
	voice-family:inherit;
	font-size: medium; /* Let there be truth */
}
html>body { /* Let Opera in on the secret */
	font-size: medium;
}
img {
	display: block;
	border: 0;
}
a {
	color: #8C0C11;
	text-decoration: underline;
	background-color: transparent;
}
a:hover {
	color: #fff;
}

h1, h2, h3, h4, h5 {
	color: #222;
	font-weight: bold;
	margin: 0;
	padding: 0;
}

h1 {
	font-size: 150%;
	margin: .5em 0 1em;
}
h2 {
	font-size: 130%;
	margin: .6em 0;
	color: #C52A30;
	text-align: left;
}
h3 {
	font-size: 110%;
	margin: .3em 0 .4em;
	border-bottom: 1px solid #777;
}
html>body h3 {
	border-bottom: 1px dotted #555;
}
h4 {
	font-size: 100%;
	margin: .1em 0 .2em;
	padding: 0;
}
/* Hide the Version 4 browser upgrade notice */
div#v4notice {
	display: none;
}

/* Clearing elements */
.clearing {
	clear: both;
}

/* Layout Wrapper */
div#wrapwholepage {
	position: relative;
	margin: 0 auto;
	max-width: 1200px;
}

div#wrapper {
	background: #8C470C url(../img/homepage/page-bg.gif) left repeat-y;
	margin: 0 auto;
	padding: 0 0 0 186px;
}
/* Top Matter */
div#masthead {
	background: transparent url(../img/homepage/masthead.gif) left center no-repeat;
	height: 46px;
	width: 100%;
	position: absolute;
	top: 12px; /* for IE */
	left: 0px;
	z-index: 99;
	margin-right: 11px;
}
body>div#masthead {
	/* Happy browsers get truth */
	top: 27px;
}
body#home div#masthead { background-image: url(../img/homepage/masthead.gif); }
body#services div#masthead { background-image: url(../img/homepage/masthead-services.gif); }
body#clients div#masthead { background-image: url(../img/homepage/masthead-clients.gif); }
body#rates div#masthead { background-image: url(../img/homepage/masthead-rates.gif); }
body#resources div#masthead { background-image: url(../img/homepage/masthead-resources.gif); }
body#contact div#masthead { background-image: url(../img/homepage/masthead-contact.gif); }
body#client-section div#masthead { background-image: url(../img/homepage/masthead-client-section.gif); }
body#articles div#masthead { background-image: url(../img/homepage/masthead-articles.gif); }

div#masthead h1 {
	display: none;
}
div#masthead #rightcap {
	margin: 0; 
	padding: 0;
	float: right;
}
/* Placate the good browsers */
body>div#masthead #rightcap {
	padding-top: 0;
}
div#masthead p {
	text-align: right;
	font-style: italic;
	display: block;
	margin: 0 1.5em 0 0;
	height: 45px;
	padding-top: 1em;
	voice-family: "\"}\""; 
	voice-family:inherit;
	padding-top: 30px;
}

/* Placate the good browsers again */
body>div#masthead p {
	padding-top: 15px;
}
div#nav {
	margin: 0;
	padding: 156px 0 0;
	width: 162px;
	position: absolute;
	top: 0;
	left: 11px;
	z-index: 1;
	background: transparent url(../img/homepage/left_logo_cap.jpg) top left no-repeat;
}
div#nav a#skipnav {
	/* display: none hides the link from screen readers, 
	   so just throw it out to left field visually. */
	display: block;
	background-image: none;
	position: absolute;
	left: -900px;
	top: -900px;
}
div#nav p {
	margin: .5em .75em .5em;
	padding: 0;
	color: #eee;
	font-size: 75%;
	display: block;
}
div#nav p.testimonial {
	font-style: italic;
}

/* make sure links within testimonial text are not button-ized */
div#nav p.testimonial a {
	color: #eee;
	text-decoration: underline;
	background: none;
}
div#nav p.testimonial a:hover {
	color: white;
}
div#nav p cite {
	display: block;
	text-align: right;
}
div#nav p cite a {
	text-align: right;
}
div#nav ul {
	display: block;
	margin: 0 0 12px;
	padding: 0 0 5px 3px;
	list-style: none;
	width: 159px;
	font-size: .9em;
	line-height: 1.1em;
}
div#nav li {
	margin: 2px 0 0;
	padding: 0;
	float: left;
	clear: both;
}
div#nav a {
	display: block;
	text-align: center;
	text-decoration: none;
	color: #000;
	padding: 4px 9px;
	background: transparent url(../img/homepage/nav-btn-two-state.gif) 12px 0px no-repeat;
	width: 151px; /* IE 5 */
	voice-family: "\"}\""; 
	voice-family:inherit;
	width: 133px; /* truth */
}
div#nav a:hover {
	background-position: 12px -75px;
}

/* Determine which nav button to show as "down" according to ID of body tag. */
body#home li#btn-home a, body#services li#btn-services a, body#clients li#btn-clients a, body#rates li#btn-rates a, body#resources li#btn-resources a, body#contact li#btn-contact a, body#client-section li#btn-client-section a, body#articles li#btn-articles a {
	background: transparent url(../img/homepage/nav-btn-down-two-state.gif) 12px 0px no-repeat;
}
body#home li#btn-home a:hover, body#services li#btn-services a:hover, body#clients li#btn-clients a:hover, body#rates li#btn-rates a:hover, body#resources li#btn-resources a:hover, body#contact li#btn-contact a:hover, body#client-section li#btn-client-section a:hover, body#articles li#btn-articles a:hover  {
	background-position: 12px -75px;
}


div#content {
	background: #C2B4AB url(../img/homepage/bg-gears.jpg) top left;
	padding: 80px 3em 20px;
	margin: 0 11px 0 0;
	font-size: 90%;
	line-height: 1.3em;
	min-height: 450px;
}
div#content p {
	margin: .5em 0 1.4em;
}
div#content em.mainpoint {
	font-style: normal;
	/*font-variant: small-caps; */
	font-weight: bold;
}
body#home div#content { background-image: url(../img/homepage/bg-gears.jpg); }
body#services div#content { background-image: url(../img/homepage/bg-services.jpg); }
body#clients div#content { background-image: url(../img/homepage/bg-clients.jpg); }
body#resources div#content { background-image: url(../img/homepage/bg-resources.jpg); }
body#articles div#content { background-image: url(../img/homepage/bg-typewriter.jpg); }
body#rates div#content { background-image: url(../img/homepage/bg-rates.jpg); }
body#contact div#content { background-image: url(../img/homepage/bg-contact.jpg); }
body#client-section div#content { background-image: url(../img/homepage/bg-client-section.jpg); }

div#content p.rightfloat {
	display: block;
	float: right;
	margin: 0 0 3px 10px;
	width: 15em;
	padding: .5em;
	background: #6D899A;
	border: 1px solid #000;
	font-size: .85em;
}
div#content p.rightfloat cite {
	display: block;
	text-align: right;
	font-style: italic;
}
div#content p.rightfloat img {
	float: right;
	border: 1px solid #333;
}
/*	homeslice imgs are a stack of varied-width imgs 
	floated so text wraps around the image contour */
div#content img.homeslice {
	float: right;
	clear: right;
	margin: 0 0 0 0.2em;
    display: block;
}
div#content div.homeslicewrap { /* only on the clients page */ 
float: right;
width: 310px;
}
html>body div#content img.homeslice {
	margin-left: .7em;
}
div#content img#bottomslice {
	clear: both;
}
div#content ul.layoutlist {
	margin: 0;
	padding: 0;
	list-style: none;
	/* margin-right: 220px; */
}

div#wrapper>div#content ul.layoutlist {
	margin: 0;
}
div#content ul.layoutlist li {
	margin: 0 0 1em; padding:0;
	list-style: none;
	width: 100%;
}
div#content ul.layoutlist p {
	display: block;
	margin: 1px 0 2px;
}

div#content ul.layoutlist p img {
	border: 1px solid #000;
	border-color: #bbb #444 #222 #888;
	float: right;
	clear: right;
	margin: 2px;
}
div#content img.layoutimage {
	float: right;
	margin-left: 1em;
}
div#content ul.sellingpoints {
	margin: -1em 0 1em;
	padding: 0;
	list-style: none;
	/*margin-left: 20px;*/
}
div#content ul.sellingpoints li {
	margin: 0;
	padding: 0 0 3px 25px;
	background: transparent url(../img/widgets/orange_bullet.gif) 10px 5px no-repeat;
}
/****************** Clients Page ****************/

div.clientinfo {
clear: left;
}
div.clientinfo img {
    display: block;
    float: left;
margin: 0 10px 5px 0;
}
/*********** Resources Page *************/
.resources img {
	float: right;
	clear: right;
	margin: 0 0 10px 1em;
}

/******************** Contact Form *****************/
div#contactformwrap {
	display: block;
}
body#contact p.rightfloat {
	float: right;
	width: 14em;
	margin-right: -1em;
	margin-top: 1em;
}
div#contactformwrap fieldset {
	width: 50%;
	border: 1px dotted #336;
	padding: 2px;
	display: block;
}
div#contactformwrap legend {
	padding: 2px .4em;
	font-weight: bold;
	color: black;
	background-color: #BBB1A8;
}
div#contactformwrap input, 
div#contactformwrap textarea,
div#contactformwrap select {
	background: #E3E9C1;
	font-family: "Trebuchet MS", Verdana, Geneva, Arial, Helvetica, sans-serif;
	font-size: .9em;
	border: 1px solid #333;
	margin: 1px 1em 1px 2em;
}
div#contactformwrap input {
	width: 15em;
}
div#contactformwrap textarea {
	width: 20em;
	height: 6em;
}
div#contactformwrap label {
	display: block;
	margin: 1em 1em 1px 2em;
}
div#contactformwrap input#submit{
	width: 60px;
	font-weight: bold;
	text-align: center;
	font-size: .9em;
	border: 1px solid #333;
	background-color: #BDD63C;
	margin: 10px 10px 10px 2em;
}
div#contactformwrap input#submit:hover {
	border-color: yellow;
}
div#contactformwrap input:focus, div#contactformwrap textarea:focus {
	background: white;
}
div#captcha img {
	float: right;
	display: block;
	margin: 1em 2em 0 1em;
}


/* ********************* Footer **************************** */
div#footer {
	margin: 10px 0 20px 300px; padding: 0 1em 0 4em;
	line-height: 24px;
	height: 24px;
	background: #C36411;
	border: 1px solid #000;
	border-width: 1px 0 1px 1px;
	font-size: .8em;
	font-style: italic;
	position: relative;
}
div#footer span#validators {
	padding-left: 2em;
	font-style: normal;
	padding-bottom: 2px;
}
div#footer span#validators a {
	text-decoration: none;
}
div#footer span#siteurl {
	display: none;
}
div#browsehappy {
	margin-right: 1em;
}
div#browsehappy ul li {
	float: right;
	list-style: none;
	text-align: right;
	margin: 0 1em 1em;
}
