/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
html {
overflow-y: scroll;
overflow: -moz-scrollbars-vertical !important;
}

BODY, #photoheading *,  #sidebar *, #pcontent *, #pcontent2 *, #header *, #menu_horiz *, #footer * {
margin:0;
padding:0;
}

/*
Set initial font styles
*/
#photoheading, #sidebar, #pcontent, #pcontent2, #header, #menu_horiz, #menu_vert,  #footer, .breadcrumbs {
text-align: left;
font-family: Arial, Helvetica, sans-serif;
font-size: 10pt;
line-height: 1em;
}
/*
set font size for all divs,
this overrides some body rules
*/
#photoheading, #sidebar, #pcontent, #pcontent2 {
font-size: 10pt;
}

/*
if img is inside "a" it would have 
borders, we don't want that
*/
div#pcontent a img, div#pcontent2 a img {
border: 0;
}

/*
default link styles
*/
/* set all links to have underline and bluish color */
a,
a:link 
a:active {
text-decoration: underline;
/* css validation will give a warning if color is set without background color. this will explicitly tell this element to inherit bg colour from parent element */
background-color: inherit; 
color: #660000; 
}

a:visited {
text-decoration: underline;
background-color: inherit;
color: #660000;                /* a different color can be used for visited links */
}

/* remove underline on hover and change color */
a:hover {
text-decoration: none;
color: #660000;
}

/*****************
basic layout 
*****************/
body {
background-color: #000000;
color: #000000;
margin-top: 15px;
margin-bottom: 10px;   
}

/* center wrapper, min max width */
div#pagewrapper {
margin: 0 auto;     /* this centers wrapper */
width: 992px; 
background-color: #c8a46e;
color: black;   
}


/*** header ***
we will hide text and replace it with a image
we need to assign a height for it
*/

div#header {
height: 0px; 
background-color: #000000;
}

div#photoheading {
height: 95px;
background-color: #000000;
}

div#header h1 a {
/* you can set your own image here */
display: block; 
height: 0px;             /* adjust according your image size */
text-indent: -999em;  /* this hides the text */
text-decoration:none; /* old firefox would have shown underline for the link, this explicitly hides it */
}

div#photoheading {
display: block; 
height: 95px;             /* adjust according your image size */
}

div#search {
float: right;
width: 27em;     /* enough width for the search input box */
text-align: right;
padding: 0.6em 0 0.2em 0;
margin: 0 1em;
}

div.breadcrumbs {
padding:  7px 7px 0px 20px; 
font-size: 11px;             
margin: 0;              
}

div.breadcrumbs span.lastitem { 
font-weight:bold; 
}

div#content {
margin: 0;
border: 1px solid #f1f1f1;
background-color: #a08358;
}

div#main, div#main2 {
width: 770px;
margin-left: 220px;    
background-color: #c8a46e;
}

div#sidebar {
float: left;  
background-color: #a08358;
width: 220px;   
display: inline;  /* FIX ie doublemargin bug */
margin: 0;
padding: 0;
}

/* if sidebar doesnt include menu but content add class="hascontent" */
div#sidebar.hascontent {
width: 220px;  
}

div#footer {
clear:both;       /* keep footer below content and menu */
color: #000000;
margin: 0;
padding: 7px 7px 4px 7px;
background-color: #f1f1f1; /* same bg color as in header */
}

div#footer p {
font-size: 11px;
padding: 10px 0px 10px 0px;
margin:0;
}

div#footer p a {
padding: 0;      
margin: 0;
color: #660000; /* needed becouse footer link would be same color as background otherwise */
}

/* as we hid all hr for accessibility we create new hr with extra div element */
div.hr {
height: 10px;
margin-top: 10px;
padding: 0;
border-bottom: 1px dotted black;
}

/* relational links under content */
div.left49 {
float: left;
border-top: 7px transparent solid;
width: 49%; 
}

div.right49 {
float: right;
border-top: 7px transparent solid;
width: 49%;
text-align: right;
}




/********************
CONTENT STYLING
*********************/
/* HEADINGS */
div#pcontent h1, div#pcontent2 h1 {
font-size: 2em;  /* font size for h1 */
line-height: 1em;
margin: 0;
}
div#pcontent h2, div#pcontent2 h2 {
color: #000000; 
font-size: 18px; 
text-align: left; 
padding-bottom: 1px;
border-bottom: 1px solid #000000; 
line-height: 1.5em;
/* and some air under the border */
margin: 0 0 0.5em 0;
}
div#pcontent, div#pcontent2 {
padding-top: 12px;
padding-left: 20px;
padding-bottom: 12px;
padding-right: 20px;
}

div#pcontent h3, div#pcontent2 h3 {
color: #000000; 
font-style: italic;
font-size: 16px;
line-height: 1.3em;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 7px;
padding: 0;
}
div#pcontent h4, div#pcontent2 h4 {
color: #000000; 
font-size: 10pt;
line-height: 14px;
margin-top: 0px;
margin-left: 0px;
margin-right: 0px;
margin-bottom: 0px;
padding: 0;
}
div#pcontent h5, div#pcontent2 h5 {
font-size: 1.1em;
line-height: 1.3em;
margin: 0 0 0.25em 0;
}
div#pcontent h6, div#pcontent2 h6 {
font-size: 1em;
line-height: 1.3em;
margin: 0 0 0.25em 0;
}
/* END HEADINGS */

/* TEXT */
div#pcontent, div#pcontent2 {
line-height:1.3em;
}
div#pcontent p, div#pcontent TD, div#pcontent2 p, div#pcontent2 TD {
font-size: 10pt;
margin: 0 0 1.5em 0;  /* some air around p elements */
line-height:1.3em;
padding: 0;
}
blockquote {
border-left: 10px solid #ddd;
margin-left: 10px;
}
pre {
font-family: monospace;
font-size: 1.0em;
}
strong, b {
/* explicit setting for these */
font-weight: bold;
}
em, i {
/* explicit setting for these */
font-style:italic;
}

/* Wrapping text in <code> tags. Makes CSS not validate */
code, pre {
white-space: pre-wrap;       /* css-3 */
white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
white-space: -pre-wrap;      /* Opera 4-6 */
white-space: -o-pre-wrap;    /* Opera 7 */
word-wrap: break-word;       /* Internet Explorer 5.5+ */
font-family: "Courier New", Courier, monospace;
font-size: 1em;
}

pre {
border: 1px solid #000;  /* black border for pre blocks */
background-color: #ddd;
margin: 0 1em 1em 1em;
padding: 0.5em;
line-height: 1.5em;
font-size: 90%;   /* smaller font size, as these are usually not so important data */
}

/* END TEXT */

/* LISTS */
div#main ul,
div#main ol,
div#main dl {
font-size: 1.0em;
line-height:1.3em;
margin: 0 0 1.5em 0;
}
div#main ul li,
div#main ol li {
margin: 0 0 0.25em 3em;
}

div#dl dt {
font-weight: bold;
margin: 0 0 0.25em 3em;
}
div#dl dd {
margin: 0 0 0 3em;
}
/* END LISTS */

/* wiki thumbs */
div.thumb {
position: relative;
margin-bottom: 2px;
border-style: solid;
border-color: transparent;
width: auto;
}
div.thumbinner {
border: 1px solid #333333;
padding: 4px !important;
background-color: #f1f1f1;
font-size: 11px;
text-align: center;
overflow: hidden;
}
div.thumbinner #map {
border: 1px solid #333333;
}
div#pcontent .thumbimage, div#pcontent2 .thumbimage {
border: 1px solid #333333;
}
div#pcontent .thumbcaption, div#pcontent2 .thumbcaption {
border: none;
text-align: left;
line-height: 14px;
padding: 1px !important;
margin-top: 2px;
font-size: 11px;
font-weight: bold;
}
div.thumbinner .magnify {
float: left;
clear: both;
position: absolute;
margin: 0px;
padding: 0px;
margin: 0px;
padding: 0px;
border: none;
top: 7px;
left: 7px;
}
div.tright {
clear: right;
float: right;
border-width: 5px 0 5px 10px;
}
div.tleft {
float: left;
border-width: 5px 10px 5px 0;
}

#thumbBox{ /*Outermost DIV for thumbnail viewer*/
position: absolute;
left: 0;
top: 0;
width: auto;
padding: 35px;
padding-bottom: 0;
background: #000000;
visibility: hidden;
z-index: 10;
cursor: hand;
cursor: pointer;
}

#thumbBox .footerbar{ /*Footer DIV of thumbbox that contains "close" link */
font: bold 12px Verdana;
line-height: 2em;
color: #f1f1f1;
padding-top: 10px;
padding-bottom: 10px;
text-align: center;
}

#thumbBox #thumbImage { /*DIV within thumbbox that holds the enlarged image */
background-color: #000000; 
font-family: Arial;
font-size: 10pt;
}
#thumbBox #thumbimgdescr {
background-color: #000000;
color: #f1f1f1;
padding-bottom: 10px;
}
#thumbBox #thumbImage H3 {
font-size: 11pt;
font-weight: bold;
margin-bottom: 10px; 
margin-top: 10px;
color: #f1f1f1;
}
#thumbBox #thumbImage IMG {
border: 1px solid #f1f1f1;
}

#thumbLoading{ /*DIV for showing "loading" status while thumbbox is being generated*/
position: absolute;
font: bold 12px Verdana;
visibility: hidden;
border: 1px solid black;
background-color: #f1f1f1;
padding: 5px;
z-index: 5;
}

/* accessibility */

/* 
menu links accesskeys 
*/
span.accesskey {
text-decoration:none;
}

/* 
accessibility divs are hidden by default 
text, screenreaders and such will show these 
*/
.accessibility, hr {
position: absolute;
top: -999em;
left: -999em;
}

/* 
definition tags are also hidden 
these are also used for menu links    
*/
dfn {
position: absolute;
left: -1000px;
top: -1000px;
width: 0;
height: 0;
overflow: hidden;
display: inline;
}
/* end accessibility */


/* wiki style external links */
/* external links will have "(external link)" text added, lets hide it */
a.external span {
position: absolute;
left: -5000px;
width: 4000px;
}

/* make some room for the image */
a.external {
/* css shorthand rules, read: first top padding 0 then right padding 12px then bottom then right */
padding: 0 12px 0 0;
}
/* colors for external links */
a.external:link {
color: #18507C;
/* background image for the link to show wiki style arrow */
background: url(cms/external.gif) no-repeat 100% 0;
}
a.external:visited {
color: #18507C; /* a different color can be used for visited external links */

/* 
Set the last 0 to -100px to use that part of the external.gif image for different color for active links 
external.gif is actually 300px tall, we can use different positions of the image to simulate rollover image changes.
*/
background: url(cms/external.gif) no-repeat 100% 0; 
}

a.external:hover {
color: #18507C;
/* Set the last 0 to -200px to use that part of the external.gif image for different color on hover */
background: url(cms/external.gif) no-repeat 100% 0; 
background-color: #C3D4DF;
}
/* end wiki style external links */


/* clearing */
/* 
clearfix is a hack for divs that hold floated elements. it will force the holding div to span all the way down to last floated item.
We strongly recommend against using this as it is a hack and might not render correctly but it is included here for convenience.
Do not edit if you dont know what you are doing
*/
.clearfix:after {
content: "."; 
display: block; 
height: 0; 
clear: both; 
visibility: hidden;
}
* html>body .clearfix {
display: inline-block; 
width: 100%;
}

* html .clearfix {
/* Hides from IE-mac \*/
height: 1%;
/* End hide from IE-mac */
}

/* end clearing */


/********************
MENU
*********************/

/* hack for Internet Explorer */
* html div#menu_horiz {
/* hide ie/mac \*/
height: 1%;
/* end hide */
}

/* 
background-color for the entire menu row, 
covering 100% of the width and text center-aligned 
*/
div#menu_horiz {
background-color: #f1f1f1;  /* background color for the entire menu row */
width: 990px;
margin: 0;
}

/* 
the menu ul box has top and left border, 
right border is provided by the li elements 
*/
div#menu_horiz ul {
margin: 0;
padding: 0;
height:26px;
}


/* menu list items */
div#menu_horiz li {
float: left; /* makes the list horizontal */
list-style: none; /* hides the list bullet */ 
margin: 1px 0px 1px 0px;
height:24px;
}


/* the links, that is each list item */
div#menu_horiz a {
font-size: 13px;
font-weight: bold;
padding: 5px 15px 5px 15px; /* padding inside the list item box */
text-decoration: none; /* no underline for links */
color: #660000;
display: block; /* IE has problems with this, fixed above */
height:14px;
}

/* hover state for links */
div#menu_horiz li a:hover {
background-color: #660000;
color: #f1f1f1;
}
div#menu_horiz a.activeparent:hover {
background-color: #660000;
color: #f1f1f1;
}

/* active parent, that is the first-level parent of a child page that is the current page */
div#menu_horiz li.currentpage, div#menu_horiz li.activeparent{
background-color: #660000; 
color: #f1f1f1;
}
div#menu_horiz li.currentpage a, div#menu_horiz li.activeparent a {
color: #f1f1f1;
}

/********************
MENU
*********************/
#menu_vert {
padding: 0;
margin-left: 7px;  
}

/* menu li block */
div#menu_vert li {
list-style: none;
margin: 0; 
display: block; 
font-size: 8pt;
line-height: 13px;  
padding-bottom: 2px;
}

/* first level links */
div#menu_vert a {
text-decoration:underline; /* no underline for links */
color: #660000; /* this will be link color for all levels */
font-size: 10pt;
padding-bottom: 2px;
line-height: 15px;  
display: block;  
}

/* third level has some padding to have it stand out */
div#menu_vert ul ul ul {
padding-bottom: 12px;
}

/* next level links, more padding and smaller font */
div#menu_vert ul ul li {
padding: 3px 5px 0px 10px;
background: transparent url(arrow-right.gif) no-repeat scroll 0px 7px;
}

/* third level links, more padding */
div#menu_vert ul ul ul li {
padding: 3px 5px 0px 15px;
background: transparent url(arrow-right.gif) no-repeat scroll 5px 7px;
}

/* fourth level links, more padding */
div#menu_vert ul ul ul ul li {
padding: 3px 5px 0px 20px;
background: transparent url(arrow-right.gif) no-repeat scroll 10px 7px;
}

/* hover state for all links */
div#menu_vert a:hover {
text-decoration:none; 
}

/* 
active parent, that is the first-level parent 
of a child page that is the current page 
*/
div#menu_vert ul ul li.activeparent {
background: transparent url(arrow-down.gif) no-repeat scroll 0px 7px
}

div#menu_vert ul ul ul li.activeparent {
background: transparent url(arrow-down.gif) no-repeat scroll 5px 7px
}

div#menu_vert ul ul ul ul li.activeparent {
background: transparent url(arrow-down.gif) no-repeat scroll 10px 7px
}


/* 
current pages in the default Menu Manager 
template are unclickable. This is for current page on first level 
*/
div#menu_vert ul h3 {
display: block; 
background-image: none;
padding: 0.8em 0.5em 0.8em 1.5em;  /* some air for it */
color: #fff;                                 /* this will be link color for all levels */
font-size: 1em;                           /* instead of the normal font size for <h3> */
margin: 0;                                  /* as <h3> normally has some margin by default */
}

/* 
next level current pages, more padding, 
smaller font and no background color or bottom border 
*/
div#menu_vert ul ul h3 {
font-size: 90%;
padding: 0.3em 0.5em 0.3em 2.8em;
background-position: 1.4em center;
background-color: transparent;
border-bottom: none;
color: #000;     
}
div#menu_vert li.currentpage a {
	color: #000000;
	text-decoration: none;
}
div#menu_vert li.currentpage li a {
	color: #660000;
	text-decoration: underline;
}

/* current page on third level, more padding */
div#menu_vert ul ul ul h3 {
padding: 0.3em 0.5em 0.3em 4.3em;
}

/* section header */
div#menu_vert li.sectionheader {
font-size: 12px;
font-weight: bold;
margin: 0;
background-image: none;
padding: 0;
text-align: left;
color: #000;
}

/* section header */
div#menu_vert ul ul li.sectionheader {
padding: 3px 3px 2px 0px;
font-weight: bold;
}
div#menu_vert ul ul ul li.sectionheader {
padding: 3px 3px 2px 7px;
font-weight: bold;
}
div#menu_vert ul ul ul ul li.sectionheader {
font-weight: bold;
padding: 3px 3px 2px 14px;
}


/* separator */
div#menu_vert li.separator {
height: 1px !important;
background-image: none;
margin-top: -1px;
margin-bottom: 0;
padding:7px 0 7px 0;
overflow:hidden !important;
line-height:1px !important;
font-size:1px; /* for ie */
}

div#menu_vert li.separator hr {
background-image: none;
display: none; /* this is for accessibility */
}