/* CSS Document */

/*

The Housebreaking Bible  colors

blue text: 1B5975
rollovers, headers: 980000
body cream color: E8E3B0
dark brown: 503010
yellow: FFF949
red: 980000
subnav blue bg: 688D9E

*/

/* Pages will resize strangely, losing the illusion of a constant header, if the horizontal scrollbar doesn't display (on short pages)*/
/* force right scrollbar */
html { 
    height: 100%;
    margin-bottom: 1px;
}
/*end*/

body {
	color: #1B5975; /*#5C7986;*/
	background-color: #503010;
	font-size: 1em;
	background-repeat: repeat-x;
	font-family: Arial, Helvetica, sans-serif;
}

/* fix for png24 tranparency in ie. see http://designoahu.com/ie-png-transparency for more info*/
img {
	behavior:url('pngbehavior.htc');
}
/* end fix for png24 tranparency in ie.*/
div#container {
	background-color: #E8E3B0; /*E8DAB0 #E3EFF4 #EBF1F4;*/
}
	
a {
	color: #1B5975;
}

a:active, a:hover {
	color: #980000;
}

a.red {
	font-size: 1.2em;
	color: #980000;
}

a.red:active, a.red:hover {
	color: #980000;
}

div#main a.product:link, div#main a.product:visited {
	color: #4f2700;
}

div#main a.product:hover, div#main a:active {
	color: #980000;/*#814000;*/
}


h1, h2, h3 {
	color: #980000;
	line-height: 1.5em;
	
}

h1 {
	font-size: 1.5em;
	text-align: center;
	margin-bottom: 35px;
}

h2 {
	font-size: 1.3em;
}

h3 {
	font-size: 1.1em;
}

h4 {
	font-size: 1em;
}

a img {
	border: none;
}

table, table td, table th {
	border-collapse: collapse;
}

p.right {
	float: right;
	clear: right;
}

p.left {
	float: left;
	clear: left;
}

p.next {
	text-align: right;
	line-height: 2em;
	margin: 20px 30px 0px 0px;
}

*.indigo {
	color: #003DAD;
	font-size: 1.1em;
	font-weight: bold;
}

*.red {
	color: #980000;
	font-size: 1.1em;
	font-weight: bold;
}

*.link {
	color: #980000;
	background-color: #FFFF66;
	font-size: 1.1em;
	font-weight: bold;
}

/* XXXXXXXXXXXXXXXXXXXXXX the following styles are for the header with navigation and search tool XXXXXXXXXXXXXXXXXXXXXx */

div#header {
	width: 870px;
	height: 157px;
	background-color: #E8E3B0;
	font-size: .8em;
	line-height: 1.5em;
	margin: 0px;
	padding: 0px;
}

table.header {
	width: 870px;
	margin: 0px;
	padding: 0px;
	border: none;
	border-collapse: collapse;
	background-image: url(../images/HBB-header-870.jpg);
	background-repeat: no-repeat;
}

table.header td {
	margin: 0px; 
	padding: 0px;
	border: none;
	border-collapse: collapse;
}

.searchBox {
	width: 175px;
	padding: 3px 2px;
	margin: 0px;
	border: 1px solid #ccc;
	color: #958c82;/*#4f463c or #6d645b;*/
	font-size: 10px;
}


/*main nav starts here*/

div#mainnav {
	width: 870px;
	background-color: #503010;
	margin: 0px 0px -2px 0px; /*trick to fix IE spacing bug*/
	padding: 0px 0px 2px 0px; /*trick to fix IE spacing bug*/
	font-size: 1em;
	line-height: 1.5em;
}

div#mainnav a {
	color: #99CCCC;
	text-decoration: none;
}


div#mainnav table {
	margin: -1px auto -2px auto;
}

ul#mainnav {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

ul#mainnav li {
	margin: 0px;
	padding: 0px;
	display: inline;
	float: left;  /*recomended in Lynda tutorial- something about mac browser bug recognising inline*/
}

ul#mainnav a:link, ul#mainnav a:visited, ul#mainnav a:active, ul#mainnav a:hover {
	margin: 0px;
	padding: 3px 0px;
	width: 151px;
	display: block;
	text-align: center;
	border-right: 3px solid #688D9E;
	background-color: #503010;
	
}

 ul#mainnav a:active, ul#mainnav a:hover {
	background-color: #688D9E;
	border-right: 3px solid #503010;

	
}

/* rollover */

ul#mainnav a.current:link, ul#mainnav a.current:visited, ul#mainnav a.current:hover, ul#mainnav a.current:active {
	background-color: #688D9E;
	border-right: 3px solid #503010;
	}
	
ul#mainnav a.current-end {
	background-color: #688D9E;
	border-right: none;
	width: 151px;
}

ul#mainnav a.mainnav-end {
	border-right: none;
}

/*end of main nav*/

/* sub nav*/

div#subnav {
	width: 870px;
	background-color: #688D9E;
	margin: -1px 0px -3px 0px; /*trick to fix IE spacing bug*/
	padding: 1px 0px 3px 0px; /*trick to fix IE spacing bug*/
	font-size: 0.83em;
	line-height: 1.5em;

}

div#subnav a {
	color: #503010;
	text-decoration: none;
}

div#subnav table {
	margin: 0px auto;
}

ul#subnav {
	list-style-type: none;
	margin: 0px;
	padding: 0px;
}

ul#subnav li {
	margin: 0px;
	padding: 0px;
	display: inline;
	float: left; /* recomended in Lynda tutorial- something about mac browser bug recognising inline*/
}

ul#subnav a:link, ul#subnav a:visited, ul#subnav a:active, ul#subnav a:hover {
	margin: 0px;
	padding: 0px;
	width: 120px;
	display: block;
	text-align: center;
}


/*
ul#subnav a.current:link, ul#subnav a.current:visited, ul#subnav a.current:hover, ul#subnav a.current:active {
	background-color: #688D9E;
	font-size: 1em;
	font-weight: normal;
	color: #503010;
	}
	*/

/*subnav color*/

ul#subnav a:link, ul#subnav a:visited {
	background-color: #688D9E;
	color: #503010;
}

ul#subnav a:active, ul#subnav a:hover {
	/*background-color: #76A1B4;*/
	color: #99CCCC;
}

ul#subnav a.subnav-end {
	border-right: none;
}

td.spacer {
	width: 52px;
}

/*end of sub nav*/

/* end styles for header div with search box and navigation*/

div#container {
	width: 870px;
	margin: -10px auto;
	padding: 0px;
}

div#main {
	font-size: .8em;
	width: 830px;
	line-height: 1.6em;
	margin: 0px;
	padding: 20px 20px 0px 20px;
	text-align: justify;

}

div#main a {
	color: #1B5975;
	font-weight: bold;
}

div#main a:active, div#main a:hover {
	color: #980000;
	font-weight: bold;
}

div#main h2 a {
	color: #980000;
	font-weight: bold;
}

div#main h2 a:active, div#main h2 a:hover {
	color: #980000;
	font-weight: bold;
}

div#main a.red {
	font-size: 1.2em;
	color: #980000;
}

div#main a.red:active, div#main a.red:hover {
	font-size: 1.2em;
	color: #980000;
}

table.layout {
	width: 830px;
	margin: 0px;
	padding: 0px;
}

table.layout td.left {
	width: 570px;
	margin: 0px;
	padding:  0px 20px 0px 0px;
}

table.layout td.right {
	width: 240px;
	margin: 0px;
	padding: 0px;
}


table.layout-left-ad {
	width: 830px;
	margin: 0px;
	padding: 0px;
}

table.layout-left-ad td.left {
	width: 190px;
	margin: 0px;
	padding:  75px 0px 0px 10px;
	vertical-align: top;
}

table.layout-left-ad td.right {
	width: 620px;
	margin: 0px;
	padding: 0px;
}


/*divider footer seperates left and right divs from content that follows.  needed for page to flow properly*/

div#footer {
	width: 850px;
	padding: 10px 0px 10px 0px;
	margin: 0px auto;
	font-size: .8em;
	text-align: center;
	vertical-align: middle;
	clear: both;


}

div#footer table {
	margin: 0px auto;
}



/* footer nav*/

div#footernav {
width: 850px;
font-size: 1em;
margin-bottom: 10px;

}

div#footernav a {
color: #1B5975;
text-decoration: underline;
}

div#footernav table {
margin: 0px auto;
}

ul#footernav {
list-style-type: none;
margin: 0px;
padding: 0px;
}

ul#footernav li {
margin: 0px;
padding: 0px;
display: inline;
float: left; /* recomended in Lynda tutorial- something about mac browser bug recognising inline*/
}

ul#footernav a:link, ul#footernav a:visited, ul#footernav a:active, ul#footernav a:hover {
margin: 0px;
padding: 0px;
width: 120px;
display: block;
text-align: center;
border-right: 1px solid #1B5975;
}

ul#footernav a:link, ul#footernav a:visited {
color: #1B5975;
}

ul#footernav a:active, ul#footernav a:hover {
color: #980000;
}

td.spacer {
width: 52px;
}

/*end of footer nav*/



div#left {
	width: 480px;
	padding: 10px;
	margin: 0px;
	float: left;
}

div#right {
	width: 300px;
	padding: 0px 5px 0px 0px;
	margin: 0px 10px 0px 0px;
	float: right;
}

/*spacer gives a little white space between left/right divs and footer*/

div.spacer {
	width: 870px;
	height: 20px;
	clear: both;
	background-color: #E3EFF4;
}

div.bottom {
	width: 750px;
	padding: 0px;
	clear: both;
}

div.note {
	border: 1px solid #1B5975;
	width: 600px;
	margin: 10px auto;
	padding: 10px;
}

div.note p {
	margin: 0px;
	padding: 5px 0px 0px 0px;
}

div.code {
	margin: 0px 50px 20px 50px;
	padding: 0px 10px;
	background-color:#FFFFFF;
}

div.code p {
	color: #666666;
	font: Comic Sans MS, sans-serif;
	text-align: left;
	padding: 2px 0px;
}

div.sidebar {
	border: 1px solid #1B5975;
	width: 275px;
	margin: 20px 0px;
	padding: 10px;
	line-height: 1.2em;
}

div.ad-right {
	 float: right;
	 clear: right;
	 padding: 20px 0px 20px 20px;
	 line-height: 1.1em;
	 text-align: center;
	 color: #503010;
}

div.sidebar2 {
	border: 1px solid #7DB2CE;
	width: 275px;
	margin: 20px 0px;
	padding: 10px;
	line-height: 1.2em;
}

div.floating-sidebar {
	border: 1px solid #1B5975;
	width: 275px;
	margin: 20px 0px 40px 20px;
	padding: 10px;
	line-height: 1.2em;
	float: right;
	clear: right;
}

div.sidebar h3, div.floating-sidebar h3 {
	font-size: 1.1em;
	font-weight: bold;
}

div.sidebar p, div.floating-sidebar p, div.sidebar2 p {
	margin: 0px;
	padding: 5px 0px 0px 0px;
}


table.chart {
	margin: 10px auto;
	border: none;
	border-collapse: collapse;
}

table.chart th {
	margin: 0px; 
	padding: 5px 10px;
	border: none;
	border-collapse: collapse;
}

table.chart td {
	margin: 0px; 
	padding: 5px 10px;
	border: 1px solid #1B5975;
	border-collapse: collapse;
}

/*rounded corners from http://www.roundedcornr.com/ for blue boxes*/

.roundedcornr_box_665579 {
	background: url(../images/roundedcornr_665579_tl.gif) no-repeat top left;
	margin: 10px;
	line-height: 1.2em;
}

.roundedcornr_box_665579 p.justify {
	text-align: justify;
}

.roundedcornr_box_665579 h2 {
	text-align: center;
}

.roundedcornr_box_665579 div.center {
	text-align: center;
}

.roundedcornr_top_665579 {
	background: url(../images/roundedcornr_665579_tr.gif) no-repeat top right;
}
.roundedcornr_bottom_665579 {
	background: url(../images/roundedcornr_665579_bl.gif) no-repeat bottom left;
}
.roundedcornr_bottom_665579 div {
	background: url(../images/roundedcornr_665579_br.gif) no-repeat bottom right;
}
.roundedcornr_content_665579 {
	background: url(../images/roundedcornr_665579_r.png) top right repeat-y;
}

.roundedcornr_top_665579 div,.roundedcornr_top_665579,
.roundedcornr_bottom_665579 div, .roundedcornr_bottom_665579 {
	width: 100%;
	height: 25px;
	font-size: 1px;
}
.roundedcornr_content_665579, .roundedcornr_bottom_665579 {
	margin-top: -16px;
}
.roundedcornr_content_665579 { padding: 0 15px; }


/*rounded corners from http://www.roundedcornr.com/ for red safety note boxes*/


.roundedcornr_box_372542 {
	background: url(../images/roundedcornr_372542_tl.gif) no-repeat top left;
	margin: 10px;
	line-height: 1.2em;
}
.roundedcornr_box_372542 p.justify {
	text-align: justify;
}

.roundedcornr_box_372542 h2 {
	text-align: center;
}

.roundedcornr_box_372542 div.center {
	text-align: center;
}
.roundedcornr_top_372542 {
	background: url(../images/roundedcornr_372542_tr.gif) no-repeat top right;
}
.roundedcornr_bottom_372542 {
	background: url(../images/roundedcornr_372542_bl.gif) no-repeat bottom left;
}
.roundedcornr_bottom_372542 div {
	background: url(../images/roundedcornr_372542_br.gif) no-repeat bottom right;
}
.roundedcornr_content_372542 {
	background: url(../images/roundedcornr_372542_r.png) top right repeat-y;
}

.roundedcornr_top_372542 div,.roundedcornr_top_372542,
.roundedcornr_bottom_372542 div, .roundedcornr_bottom_372542 {
	width: 100%;
	height: 25px;
	font-size: 1px;
}
.roundedcornr_content_372542, .roundedcornr_bottom_372542 {
	margin-top: -16px;
}
.roundedcornr_content_372542 { padding: 0 15px; }

/*end rounded corners from http://www.roundedcornr.com/*/

/*rounded corners from http://www.roundedcornr.com/ for brown product ad boxes*/

.roundedcornr_box_146450 {
	background: url(../images/roundedcornr_434465_tl.png) no-repeat top left;
	margin: 10px;
	line-height: 1.2em;
	text-align: center;
	 color: #503010;
}

.roundedcornr_box_146450 p.justify {
	text-align: justify;
}

.roundedcornr_box_146450 h2 {
	text-align: center;
}

.roundedcornr_box_146450 div.center {
	text-align: center;
}

.roundedcornr_box_146450 img {
	display: block;
	margin: 0px auto;
}

.roundedcornr_top_146450 {
	background: url(../images/roundedcornr_434465_tr.png) no-repeat top right;
}
.roundedcornr_bottom_146450 {
	background: url(../images/roundedcornr_434465_bl.png) no-repeat bottom left;
}
.roundedcornr_bottom_146450 div {
	background: url(../images/roundedcornr_434465_br.png) no-repeat bottom right;
}
.roundedcornr_content_146450 {
	background: url(../images/roundedcornr_434465_r.png) top right repeat-y;
}

.roundedcornr_top_146450 div,.roundedcornr_top_146450,
.roundedcornr_bottom_146450 div, .roundedcornr_bottom_146450 {
	width: 100%;
	height: 25px;
	font-size: 1px;
}
.roundedcornr_content_146450, .roundedcornr_bottom_146450 {
	margin-top: -16px;
}
.roundedcornr_content_146450 { padding: 0 15px; }

/*end rounded corners from http://www.roundedcornr.com/*/