/* reset */
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
body {line-height:1.5;}
table {border-collapse:separate;border-spacing:0;}
caption, th, td {text-align:left;font-weight:normal;}
table, td, th {vertical-align:middle;}
blockquote:before, blockquote:after, q:before, q:after {content:"";}
blockquote, q {quotes:"" "";}
a img {border:none;}
.underline {text-decoration: underline;}

/* typography */
body {font-size:75%;color:#222;background:#fff;font-family:Arial, Helvetica, sans-serif;}
h1, h2, h3, h4, h5, h6 {font-weight:bold;color:#1e023b;}
h1 {font-size:2em;line-height:1;margin-bottom:0.5em; color:#1e023b;}
h2 {font-size:1.5em;margin-bottom:0.75em;}
h3, dt {font-size:1.2em;line-height:1;margin-bottom:1em;}
h4 {font-size:1em;line-height:1.25;margin-bottom:1.25em;height:1.25em;}
h5 {font-size:1em;font-weight:bold;margin-bottom:1.5em;}
h6 {font-size:1em;font-weight:bold;}
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
p {margin:0 0 1.5em;}
p img {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
p img.right {float:right;margin:0 0 1.5em 1em;}
p img.left {float:left;margin:0 1.5em 1em 0;}
a:focus, a:hover {color:#1e023b;}
a {color:#1e023b;text-decoration:underline;}
a:hover {color:#06600b;text-decoration:underline;}
blockquote {margin:1.5em;color:#666;font-style:italic;}
strong {font-weight:bold;}
em, dfn {font-style:italic;}
dfn {font-weight:bold;}
sup, sub {line-height:0;}
abbr, acronym {border-bottom:1px dotted #666;}
address {margin:0 0 1.5em;font-style:italic;}
del {color:#666;}
pre, code {margin:1.5em 0;white-space:pre;}
pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
li ul, li ol {margin:0 1.5em;}
ul, ol {margin:0 1.5em 1.5em 1.5em;}
ul {list-style-type:disc;}
ol {list-style-type:decimal; margin-left:2em;}
dl {margin:0 0 1.5em 0;}
dl dt {font-weight:bold;}
dd {margin-left:1.5em;}
table {margin-bottom:1.4em;width:100%;}
th {font-weight:bold;background:#C3D9FF;}
th, td {padding:4px 10px 4px 5px;}
tr.even td {background:#E5ECF9;}
tfoot {font-style:italic;}
caption {background:#eee;}
.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
.hide {display:none;}
.quiet {color:#666;}
.loud {color:#000;}
.highlight {background:#ff0;}
.added {background:#060;color:#fff;}
.removed {background:#900;color:#fff;}
.first {margin-left:0;padding-left:0;}
.last {margin-right:0;padding-right:0;}
.top {margin-top:0;padding-top:0;}
.bottom {margin-bottom:0;padding-bottom:0;}

.staff-left {float:left; border:3px solid #A08B5E; margin: 0 1em 1em 0;}

/* grid */
#container, .container {width:770px;margin:0 auto;}
body {margin:0;}
div.column {float:left;margin-right:0;}
div.last {margin-right:0;}
div.border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;}
.box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;}
hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;}
hr.space {background:#fff;color:#fff;}
.clearfix:after, .container:after {content:".";display:block;height:0;clear:both;visibility:hidden;}
.clearfix, .container {display:inline-block;}
* html .clearfix, * html .container {height:1%;}
.clearfix, .container {display:block;}
.clear {clear:both;}


/* forms */
label {font-weight:bold;}
fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
legend {font-weight:bold;font-size:1.2em;}
input.text, input.title, textarea, select {margin:0.5em 0;border:1px solid #bbb;}
input.text:focus, input.title:focus, textarea:focus, select:focus {border:1px solid #666;}
input.text, input.title {width:300px;padding:5px;}
input.title {font-size:1.5em;}
textarea {width:390px;height:120px;padding:5px;}
.error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;}
.error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;}
.notice {background:#FFF6BF;color:#514721;border-color:#FFD324;}
.success {background:#E6EFC2;color:#264409;border-color:#C6D880;}
.error a {color:#8a1f11;}
.notice a {color:#514721;}
.success a {color:#264409;}

/* custom */
body {background: #cab58a url(../images/layout/bg.png) top left repeat-x;}
#container {position:relative;}
#hd {
	height:227px;
	background-image: url(../images/layout/office-arboretum.jpg);
	background-repeat: no-repeat;
	background-position: right 31px;
}	
#bd {background: url(../images/layout/bd.png) top left repeat-y;}
#social {position:absolute; top:0; left:300px; display:inline}
#logo {
	height:133px; 
/*	width:183px; 
*/	
	width:297px; 
	position: absolute; 
	top:31px; 
	left:-8px;
	}

#logo a {
	background: url(../images/layout/david-nelson-logo2.png) top left no-repeat;
	display:block; 
	height:185px;
	margin:15px 0 0 0;
	overflow: hidden;
	text-indent: -999em;
/*	width:183px;
*/	
	width:297px; 
	}

#content {background: url(../images/layout/content.png) top left repeat-y; width:530px; margin-top:20px; min-height:300px;}	
	dl.logos img {margin: 5px 0 20px 0;}
	dl.logos span {display:block; margin-bottom:0;}
	dt a {display:block; font-weight:normal; margin-bottom:5px;}
	.flash-replaced {margin-bottom:20px; text-align:center;}
	.flash-replaced .alt {display:none;}
	.inset {background-color: #ccc; border:1px solid #999; float:right; margin: 0 0 0 10px; padding-top:10px; width:180px;}
	.inset p, .inset ul {font-size: .9em; }
	.inset p,
	.inset h3 {margin-left:10px; margin-right:10px;}
	div.map {margin-bottom:1em;}
	
	#content .sidebar {float:right; margin-left:15px;}

	/* page-specific */
	#flash-homepage {position:relative; top:-20px; left:-21px;}
	.meet-the-staff #content img {float:left; border:3px solid #A08B5E; margin: 0 1em 1em 0;}
	.splint-therapy .sidebar {width:215px;}
	.splint-therapy .sidebar img {margin-bottom:10px;}
	.molar-fulcrums .sidebar {width:245px;}
	.molar-fulcrums .sidebar img {margin-bottom:10px;}
	.invisalign-teen .sidebar {
		background: #fff;
		width: 275px;
		margin: 0 0 15px 15px;
		padding: 0;
		border: solid 1px #000;
		clear: right;}
		.invisalign-teen .sidebar a {
		color: #036;}
		.invisalign-teen .sidebar h3 {
		background: #97AFC2;
		margin: 0;
		padding: 15px;
		color: #fff;}
		.thumb {
		border: solid 1px #000;
		margin: 0 10px 10px 0;
		float: left;
		clear: left;}
		.invisalign-teen .sidebar p {
		padding: 0 15px;
		margin: 15px 0;}
	
	/* images */
	img.border, img.auto {border:3px solid #A08B5E;}
	img.auto {float: right; margin: 40px 0 20px 20px;}

#sidebar {width:220px; padding-top:75px; color:#1e023b;}
#sidebar h3, #sidebar p, #sidebar ul {margin-left:20px; margin-right:10px; list-style:none;}
#sidebar h3 {color:#1e023b; font-weight:bold; margin-bottom:.5em;}
#sidebar p {font-size:.9em;}
#sidebar ul ul ul ul {font-size:.9em;}
#sidebar li.active {font-weight:bold;}
#sidebar a {text-decoration:none; color:#000;}
#sidebar a:hover {text-decoration:underline;}

/* navigation */
#nav, #util, #nav_sup {position:absolute; top:181px; left:0; z-index:10;}
#util {top:0;}
#nav_sup {top:227px; left:5px;}

#nav ul, #util ul, #nav_sup ul {
	list-style: none;
	margin: 0;}

#nav li, #util li {float:left;}

#nav a, #util a, #nav_sup a {
	background: url(../images/nav/home.png) top left no-repeat;
	display: block;
	height: 41px; /* h */
	overflow: hidden;
	text-indent: -999em;
	width: 189px; /* w */
}

#nav_sup a {height:30px;}
#util a {height:26px;}

/* vertical nav */
#nav_sup a:hover, #nav_sup li:hover a, #nav_sup li.sfhover a {background-position: -189px 0;} /* -w */
#nav_sup li.active a {background-position: -378px 0;} /* -2w */

/* horizontal nav */
#nav a:hover, #nav li:hover a, #nav li.sfhover a {background-position: 0 -41px;} /* -h */
#nav li.active a {background-position: 0 -82px;} /* -2h */
#nav li.active a:hover, #nav li.active:hover a {background-position: 0 -123px;} /* -2h */
#util a:hover, #util li:hover a {background-position: 0 -26px;} /* -h */
#util li.active a {background-position: 0 -52px;} /* -2h */

/* set bg image for each link */
a#home {background-image:url(../images/nav/home.jpg); width:53px}
a#patient-login {background-image:url(../images/nav/patient-login.jpg); width:114px}
a#doctor-login {background-image:url(../images/nav/doctor-login.jpg); width:104px}
a#our-team {background-image:url(../images/nav/our-team.jpg); width:82px;}
a#our-office {background-image:url(../images/nav/our-office.jpg); width:93px;}
a#about-orthodontics {background-image:url(../images/nav/about-orthodontics.jpg); width:163px;}
a#treatment-gallery {background-image:url(../images/nav/treatment-gallery.jpg); width:152px;}
a#treatment-technology {background-image:url(../images/nav/technology.jpg); width:189px;}
a#contact-us {background-image:url(../images/nav/contact-us.jpg); width:91px;}
a#new-patient {background-image:url(../images/nav/new-patient.png);}
a#emergency-care {background-image:url(../images/nav/emergency-care.png);}
a#testimonials {background-image:url(../images/nav/testimonials.png);}

/* subnav-flyout */
#nav li ul {
	left: -9999px;
	position: absolute;
	width: 180px;
	z-index: 10;
	background:#78c0f0;
	border: 1px solid #1e023b;
}
#nav li ul a {
	padding-top:5px;
	height: 30px;
	color:#1e023b;
	text-align:left;
	text-decoration: none;
	text-indent:10px;
	width: 180px;
	background-image:none;
}
#nav li ul a:hover {background:#1e023b; color:#ffffff;}
#nav li:hover ul,
#nav li.sfhover ul {left: auto; margin: 0;} /* margin: -h 0 0 w */
#nav ul ul ul {display:none;}

#ft {background: #1e023b url(../images/layout/ft.png) top left repeat-x; text-align: center; padding:30px 0 30px 0;}
#ft p {width:770px; margin:0 auto 1em auto;}
#ft, #ft a {color: #fff; text-decoration:none;}
#ft a:hover {color: #ccc;}

/*games*/
div#sesame-game {background: #000; line-height: 0; margin: 10px auto 30px auto; text-align: center; width: 400px}
ul#sesame-games {list-style: none; margin: 0 18px 0 0; padding: 0}
ul#sesame-games li {clear: both; display: block}
ul#sesame-games img {border: 0; float: right; margin: 0 0 10px 10px}
ul#sesame-games a.button {float:right; height:85px; width:200px}
ul#sesame-games p {padding-bottom: 1em}

#slideshow {
	width:566px;
	height:220px;
	position:relative;
	top:-20px;
	left:-21px;
	z-index:1;
	}
img.slideshow {
	width: 566px;
	height: 220px;
	}
