/*--------------------- Last Modified  2006.11.10 ---------------------*/
/*-------------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------------
  Copyright Einstein Industries 2006. Used with Permission.                             
  May not be duplicated or reproduced.
  Please check for cross-browser compatibility prior to making changes
  MINIMUM BROWSER CHECK :: IE5.x/IE6/Firefox/Safari
  CSS Document - layout.css
/*-------------------------------------------------------------------------------------*/
/* undo some default styling of common (X)HTML browsers
/*------------------------------------------------------------------------------------*/

body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,p,blockquote,th,td,html,label,table,tr,td {margin:0;padding:0;}
table{border-collapse:collapse;border-spacing:0;}
fieldset,img,a img,:link img,:visited img {border:0;}
address,caption,cite,code,dfn,th,var {font-style:normal;font-weight:normal;}
ol,ul {list-style:none;}
caption,th {text-align:left;}
h1,h2,h3,h4,h5,h6 {font-size:100%;}
q:before,q:after {content:'';}

/* ------------------------ GLOBAL ELEMENTS ------------------------ */

/* ------------------------ type selectors ------------------------ */
body { 
	background:#1b3a70 url("../images/bg-body.jpg") top repeat-x;
	text-align:center; 
	font:12px/16px Arial, Helvetica, sans-serif; 
	color:#000;
	}

blockquote { margin-left:10px; margin-right:10px; }

h1	{ font-size:1.2em; color:#ec631b; }
h2	{ font-size:1.1em; color:#1b3a70; }
h3	{ font-size:1.0em; color:#000; }

h1 span,h2 span,h3 span	{ display:none; }

a:link,a:visited	{ color:#1b3a70; text-decoration:underline; outline:none; }
a:hover,a:active	{ color:#fc4e06; text-decoration:underline; outline:none; }

/* ------------------------ classes ------------------------ */

.clearfix:after {
    content: "."; 
    display: block; 
    height: 0; 
    clear: both; 
    visibility: hidden;
	}
	
/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
/* End hide from IE-mac */
	

.clear {clear: both;}

div.clear	{ 
	height:.01em; 
	clear:both;
	overflow:hidden; 
	}
div.clear-h2	{ 
	height:10px; 
	clear:both;
	overflow:hidden; 
	}
	
div.clear-contact	{ 
	height:1em; 
	clear:both;
	overflow:hidden; 
	}	
	
	
p.back-to-top a {
	display:block;
	background:url("../images/btn-back-to-top.jpg") right no-repeat;
	height: 26px;
	width: 106px;
	float: right;
	}
	p.back-to-top a:hover {
	background:url("../images/btn-back-to-top-over.jpg") right no-repeat;
	}
	p.back-to-top a span {display: none;}
	
p.more-info a {
	display:block;
	background:url("../images/btn-learn-more.jpg") right no-repeat;
	height: 26px;
	width: 106px;
	float: right;
	}
	p.more-info a:hover {
	background:url("../images/btn-learn-more-over.jpg") right no-repeat;
	}
	p.more-info a span {display: none;}
img.img-left { 
	float:left; 
	margin:0px 10px 0px 0px;
	}

img.img-right { 
	float:right; 
	margin:0px 0px 0px 10px; 
	}

/* ------------------------ form elements ------------------------ */
form {
	width:150px;
	margin:10px 0 15px 0; /* set margin left and right below */
	}

form label	{ font-size:.95em; } 

form br { line-height:0; height:0; } /* defaults vertical spacing between fields */

input, textarea, select { 
	background-color:#ffffff !important; /* to prevent highlighting by Google Toolbar */
	border:1px solid #1b3a70;
	color:#000;
	width:225px; /* 5 pixles smaller than form width !important */
	height:18px;
	line-height:18px;
	vertical-align: middle;
	margin-bottom:4px; /* sets vertical spacing between fields */
	padding-top:1px; /* vertically position text in input/textarea field */
	padding-left:4px; /* horizontally position text in input/textarea field */
	font-family: Arial, Helvetica, sans-serif; 
	font-size:1.0em;
	}
	
#column-right form#formulaForm {
	width: 450px;
	margin-left: 30px;
	background-color: #e8f9fe !important;
	padding: 20px;
	border: 1px solid #f95f13;
	}
#formulaForm br {clear: both;}
#formulaForm label { 
	width: 120px; 
	float: left;
	margin-bottom: 5px;
	}
#column-right #formulaForm h3 { 
	margin-left: 0px;
	color: #f95f13;
	font-size: 1.2em;
	} 

#formulaForm label.selectbox { 
	width: 180px;
	margin-top: 10px;
	float: none;
	}
#formulaForm label.selectbox select { width: 170px;}
#formulaForm input { 
	float: left; 
	width: 60px;
	}
#formulaForm input.resultcals { width: 188px; }
#formulaForm input.submit { 
	width: 100px; 
	margin: 10px 0px 10px 10px; 
	height: 20px;
	}
#formulaForm input.submit1 { 
	width: 100px; 
	margin: 10px 0px 10px 120px; 
	 height: 20px;
	 }
#formulaForm label.radio-checkbox { width: 70px;}
#formulaForm label.radio-checkbox input { 
	margin: 0px 0px 0px 5px;
	background: transparent !important;
	width: 12px;
	border: none;
}


select { width:150px; height: 20px; padding:0; } /* same width as form - !important */

textarea { height:66px; overflow:auto; }

#contact_business { display: none; } /* do not remove */ 


/* ------------------------ SPECIFIC ELEMENTS ------------------------ */

/* ------------------------ main contact form ------------------------ */
#contact-main { margin:20px 0 10px 0; }

#contact-main label { 
	width:220px; 
	position:relative; 
	display:block; 
	text-align:right; 
	margin-bottom:10px;
	font-size:1.0em;
	}

#contact-main label input, #contact-main label textarea, #contact-main label select { 
	width:170px;
	position:absolute; 
	left:110%; 
	top:-2px;
	}

#contact-main label select { width:175px; } /* fixes display issue - 5px larger than input field */

#contact-main label textarea { height:100px; overflow:auto; }

/* ------------------------ submit button form elements ------------------------ */

input.submit, input.submit-contact-main { 
	width:60px;
	height:20px;
	cursor:pointer; 
	padding:0; 
	}

input.submit-contact-main { margin:95px 0 0 243px; } /* defines placement of contact-main submit button */
/* ------------------------------- CONTENT FRAMEWORK ------------------------------- */

/* ------------------------ main framework ------------------------ */
#wrap {
	background:url("../images/bg-wrap.jpg") repeat-y;
	width:912px;
	margin:0 auto;
	text-align:left;
	}


/* ------------------------ column-left framework ------------------------ */
#column-left {
	width:306px;
	float:left;
	display: inline;
	margin: 0px 10px 0px 0px;
	}

	#column-left p, #column-left h1, #column-left h2, #column-left h3, #column-left ul, #column-left dl {
		margin:0px 10px 10px 55px;
		}

	#column-left form { margin-left:55px; } /* set form margin here */

	/* single column list */
	#column-left ul { padding-left:5px; }
		#column-left ul li { 
			background:transparent url("../images/bullet.jpg") 0px 6px no-repeat; /* 0px = horizontal position for left, 6px = vertical position from top */
			padding-left:10px; /* pushes text to the right to display bg img */
			}


	/* definition list */
	#column-left dl { padding-left:5px; }
		#column-left dl dt {
			font-weight:bold;
			color:#99CC00;
			}
		#column-left dl dd {
			background:transparent url("../images/bullet.jpg") 0px 6px no-repeat; /* 0px = horizontal position for left, 6px = vertical position from top */
			padding-left:10px;  /* pushes text to the right to display bg img */
			margin-left:5px;
			}

/* ------------------------ column-right framework ------------------------ */
#column-right {
	width:596px;
	float:left;
	}

	#column-right p, #column-right h1, #column-right h2, #column-right h3, #column-right ul, #column-right ol , #column-right dl {
		margin:0px 30px 10px 20px;
		}

	#column-right form { margin-left:20px; }

	/* single column list */
	#column-right ul { padding-left:5px; }
		#column-right ul li { 
			background:transparent url("../images/bullet.jpg") 0px 4px no-repeat; /* 0px = horizontal position for left, 6px = vertical position from top */
			padding-left:10px;  /* pushes text to the right to display bg img */
			}
		#column-right ul li.indent { margin-left: 15px ;}
		 
	/* multi column list */
	#column-right ul.multi { padding-left:5px; } 
		#column-right ul.multi li { 
			background:transparent url("../images/bullet.jpg") 0px 6px no-repeat; /* 0px = horizontal position for left, 6px = vertical position from top */
			padding-left:10px;  /* pushes text to the right to display bg img */
			float:left;
			width:150px;
			line-height:20px; 
			}
			
	/* Ordered - Numbered list*/
	#column-right ol { padding-left:25px; }
	#column-right ol li { 
		list-style: decimal outside;
		margin-bottom: 3px;
		}

	
	/* definition list */
	#column-right dl { padding-left:5px; }
		#column-right dl dt {
			font-weight:bold;
			color:#99CC00;
			}
		#column-right dl dd {
			background:transparent url("../images/bullet.jpg") 0px 6px no-repeat; /* 0px = horizontal position for left, 6px = vertical position from top */
			padding-left:10px;  /* pushes text to the right to display bg img */
			margin-left:5px;
			}

/* ------------------------ header framework ------------------------ */
#header-flash { height:366px; width: 912px; margin: 0px; padding: 0px;} /* sets height for the flash header - REMOVE IF NOT USED */
	/* --------------- no flash text styles ----------------------*/
	#header-flash a:link, #header-flash a:visited {color: #FFFFFF;}
	#header-flash a:hover, #header-flash a:active {color: #FFFF00;  text-decoration: none;}

#header-graphic { 
	height:366px; 
	position: relative; 
	background:url("../images/header-index.jpg");
	}
		#header-graphic a {
			position:absolute;
			left:45px;
			width:254px;
			top:48px;
			height:259px;
			}

/* ------------------------ subhead framework ------------------------ */
#subhead { height: 54px;} /* sets height for all subheads */
	body#index #subhead { background:url("../images/subhead-index.jpg"); }
	body#about-dr-johnson #subhead { background:url("../images/subhead-dr-johnson.jpg"); }
	
	
	body#publications #subhead { background:url("../images/subhead-publications.jpg"); }
	body#diet-how #subhead { background:url("../images/subhead-how-to-diet.jpg"); }
	body#store #subhead { background:url("../images/subhead-store.jpg"); }
	body#down-day #subhead { background:url("../images/subhead-down-day.jpg"); }
	body#diet-why #subhead { background:url("../images/subhead-diet-why.jpg"); }
	body#diet-science #subhead { background:url("../images/subhead-diet-science.jpg"); }
	body#diet-faqs #subhead { background:url("../images/subhead-diet-faqs.jpg"); }
	body#diet-benefits #subhead { background:url("../images/subhead-diet-benefits.jpg"); }
	body#resveratrol-why #subhead { background:url("../images/subhead-why-it-works-resveratrol.jpg"); }
	body#resveratrol-science #subhead { background:url("../images/subhead-resveratrol-science.jpg"); }
	body#resveratrol-faqs #subhead { background:url("../images/subhead-resveratrol-faqs.jpg"); }
	body#resveratrol-benefits #subhead { background:url("../images/subhead-resveratrol-benefits.jpg"); }

	body#about-book #subhead { background:url("../images/subhead-about-book.jpg"); }
	body#updaydownday #subhead { background:url("../images/subhead-updaydownday.jpg"); }
	body#resveratrol #subhead { background:url("../images/subhead-resveratrol.jpg"); }
	body#inthemedia #subhead { background:url("../images/subhead-inthemedia.jpg"); }
	body#gallery #subhead { background:url("../images/subhead-gallery.jpg"); }
	body#testimonials #subhead { background:url("../images/subhead-testimonials.jpg"); }
	body#blog #subhead { background:url("../images/subhead-blog.jpg"); }
	body#store #subhead { background:url("../images/subhead-store.jpg"); }
	body#contact #subhead { background:url("../images/subhead-contact.jpg"); }
	body#thankyou #subhead { background:url("../images/subhead-thankyou.jpg"); }

/* ------------------------ subhead framework with varying heights ------------------------ */
div.subhead-bg {
	background: url("../images/subhead-bg.jpg") top no-repeat;
	padding: 14px 0px 20px 0px;
	}
div.subhead-bg.no-content { 
	height: 300px;
}

/* ------------------------ title framework with varying heights ------------------------- */
#title-contact {
	height:55px;
	background:url("../images/title-contact.jpg") ;
	margin-left: 36px;
	}
#title-gallery {
	height:50px;
	background:url("../images/title-gallery.jpg") ;
	margin-left: 36px;
	}
a#media-player {
	height:318px;
	background:url("../images/media-player.jpg") ;
	margin-left: 36px;
	display: block;
	}
	a#media-player:hover {
		background: url("../images/media-player.jpg") -270px 0px no-repeat;
	}
a#online-store {
	height:198px;
	background:url("../images/online-store.jpg") ;
	display:block;
	margin-left: 36px;
	}
	a#online-store:hover {
		background:url("../images/online-store.jpg") -270px 0px no-repeat;
		}
	body#store iframe {
			width: 125px;
			height: 245px;
			display: block;
			margin-left: 30px;
		}
a#media-player span, a#online-store span {display: none;}

h2#title-upday-downday {
	height: 56px;
	background: url("../images/title-upday-downday.jpg");
	margin: 0px;
}
#title-about-dr {
	height: 54px;
	background: url("../images/title-about-dr.jpg");
}

#inset-alternate-day-diet {
	clear: both;
	padding: 25px 0px 0px 132px;
	height: 182px;
	background: url("../images/inset-alternate-day-diet.jpg") top no-repeat;
}
#patient-thumbs {
	height: 106px;
	background: url("../images/patient-thumbs.jpg");
	margin-left: 36px;
}
/* ------------------------------------- Buttons ---------------------------------------- */
#click-to-call {
		height:186px;
		display:block;
		background:url("../images/click-to-call.jpg") no-repeat;	
		position: relative;
		}
		#click-to-call a {
			position: absolute;
			top: px;
			left: px;
			width: px;
			height: px;
			}
		#click-to-call a:hover {
				background:url("../images/click-to-call.jpg") -100px 0 no-repeat; /* -100px = horizontal img shift, 0px = vertical shift from top */
				}
		#click-to-call span { display:none; }


/* ------------------------ bottom-wrap framework ------------------------ */
/* ------------ must have below column-left and column-right to clear the float ------------ */
#bottom-wrap {
	background:url("../images/bottom-wrap.jpg");
	width:100%; /* fix for Safar */
	height:40px;
	clear:both; /* important - do not remove */
	}

/* ------------------------footer framework ------------------------ */
#footer {
	width:912px;
	margin:0 auto;
	text-align:center;
	font-size: .95em;
	padding: 20px 0px 10px 0px;
	}

#footer p {
	color:#ffffff;
	margin-bottom:10px;
	}

#footer a:link, #footer a:visited { color:#ffffff; }
#footer a:hover, #footer a:active { color:#ff960f; }

#footer ul {margin-bottom:10px;}
	#footer li { /* if your li's float, you can adjust border height w/ line-height */
		padding:0 5px 0 7px; /* adjusts the spacing between each li display and border-left */
		display: inline;
		border-left: 1px solid #ffffff;
		}
	#footer li.first { border: none; }

/* ------------------------ MAIN NAVIGATION FRAMEWORK ------------------------ */
/* ------------------------ vertical sprite nav ------------------------ */
#column-left #nav {
	background:url("../images/nav.jpg") top left no-repeat;					
	width:270px;	/* Width of buttons, not entite image (or half of entire image) */
	height:351px;	 /* Height of entire image */
	padding: 0px 0px 0px 36px;
	margin: 0px;
	}

#nav li span { display: none; }

#column-left #nav li { float:left; list-style:none; position:relative; padding: 0px; background: none; }

#nav li, #nav a { 
	height:31px;	/* Each button must have the same height, define it here */
	display:block;
	}

/* margin-top to set where the nav should begin */
#nav-01 { margin-top:0px; width:270px; }

/* margin-top if there is a spacing between each nav button */
#nav-02, #nav-03, #nav-04, #nav-05, #nav-06, #nav-07, #nav-08, #nav-09, #nav-10, #nav-11  { margin-top:0; width:270px; }

#nav-01 a:hover { background:url("../images/nav.jpg") -342px  -0px no-repeat; }
#nav-02 a:hover { background:url("../images/nav.jpg") -342px  -31px no-repeat; }
#nav-03 a:hover { background:url("../images/nav.jpg") -342px  -62px no-repeat; }
#nav-04 a:hover { background:url("../images/nav.jpg") -342px  -93px no-repeat; }
#nav-05 a:hover { background:url("../images/nav.jpg") -342px -124px no-repeat; }
#nav-06 a:hover { background:url("../images/nav.jpg") -342px -155px no-repeat; }
#nav-07 a:hover { background:url("../images/nav.jpg") -342px -186px no-repeat; }
#nav-08 a:hover { background:url("../images/nav.jpg") -342px -217px no-repeat; }
#nav-09 a:hover { background:url("../images/nav.jpg") -342px -248px no-repeat; }
#nav-10 a:hover { background:url("../images/nav.jpg") -342px -279px no-repeat; }
#nav-11 a:hover { background:url("../images/nav.jpg") -342px -310px no-repeat; }

/*-------------- OPTIONAL - Keeps the hover state on each page based on body #id ------------- */
body#index #nav-01 { background:url("../images/nav.jpg") -342px  -0px no-repeat; }
body#about-dr-johnson #nav-02, 
body#publications #nav-02 { background:url("../images/nav.jpg") -342px  -31px no-repeat; }
body#about-book #nav-03 { background:url("../images/nav.jpg") -342px  -62px no-repeat; }
body#updaydownday #nav-04 { background:url("../images/nav.jpg") -342px  -93px no-repeat; }
body#resveratrol #nav-05 { background:url("../images/nav.jpg") -342px -124px no-repeat; }
body#inthemedia #nav-06 { background:url("../images/nav.jpg") -342px -155px no-repeat; }
body#gallery #nav-07 { background:url("../images/nav.jpg") -342px -186px no-repeat; }
body#testimonials #nav-08 { background:url("../images/nav.jpg") -342px -217px no-repeat; }
body#blog #nav-09 { background:url("../images/nav.jpg") -342px -248px no-repeat; }
body#store #nav-10 { background:url("../images/nav.jpg") -342px -279px no-repeat; }
body#contact #nav-11 { background:url("../images/nav.jpg") -342px -310px no-repeat; }

/* ------------------------ son of suckerfish: vertical sprite nav ------------------------ */
#nav li ul {
	position:absolute;
	left:-9999px;
	background-color:#ffffff;	/* Background color of drop down nav - add more styles (i.e. background image) if you want */
	margin-left:230px; /* Set to same width as in #nav */
	margin-top:-30px; /* Set to each button height, same as used above */
	z-index: 9999;
	padding-left: 0px; 
	}

#nav li ul li {
	height:20px; /* Height of each drop down nav item */
	border:1px solid #1b3a70;
	border-top:none;
	padding-left: 0px; 
	}

#nav li ul li a {
	width:100%;
	height:20px; /* Height of each drop down nav item, should match above */
	line-height:20px;	 /* Height of each drop down nav item again, should match above */
	position: relative;
	}

#nav li ul li a span {
	display:block;
	padding-left:5px;
	} 

/* Drop down link styles */
#nav a:link, #nav a:visited, #nav a:hover, #nav a:active {
	font-size:1.0em;
	color:#ff960f;
	text-decoration:none;
	}

#nav li:hover ul, #nav li.sfHover ul	{ left: auto; }

/* Hover styles for drop down items */
#nav-02 ul a:hover, #nav-04 ul a:hover, #nav-05 ul a:hover { 
	background-image:none;
	background-color:#ff960f;
	color:#FFFFFF;
	text-decoration:none;
	}

/* width of drop down nav - choose width that allows items to display on one line */
#nav-02 ul, #column-left #nav-02 li { width:150px; padding-left: 0px; }
#nav-04 ul, #column-left #nav-04 li { width:150px; padding-left: 0px; }		
#nav-05 ul, #column-left #nav-05 li { width:150px; padding-left: 0px; }


/* blog styles */
#column-left #wp_sidebar li {
	background: none;
	padding-left: 0px;
}
	#column-left #wp_sidebar li ul {
		margin-left: 10px;
	}
#wp_sidebar form {
	margin-left: 0px;
}
#wp_searchsubmit {width: 80px;}
#wp_submit {
	width: 150px;
}
