/* Start of CMSMS style sheet 'Main Style' */
/*****************
browsers interpret margin and padding a little differently, 
we'll remove all default padding and margins and
set them later on
******************/
* {
margin:0;
padding:0;
}

/*
Set initial font styles
*/
body {
   text-align: left;
   font-family: Arial, Helvetica, Verdana, Geneva, sans-serif;
   font-size: 10pt;
   color: #5F5353;
}

/*
set font size for all divs,
this overrides some body rules
*/
div {
   font-size: 10pt;
   color: #5F5353;
}

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

/*
default link styles
*/

a,
a:link 
a:active {
   text-decoration: underline;
   color: #18507C;
   background-color: inherit;
}

a:visited {
   text-decoration: underline;
   color: #18507C;
   background-color: inherit;
}

a:hover {
   text-decoration: none;
   color: #385C72;
   background-color: inherit;
}

/*****************
basic layout 
*****************/
body {
   background: #D8E8E4 url('/images/cms/header_tile.gif') repeat-x;
   margin: 0;
}

/* center wrapper, min max width */
div#pagewrapper {
   margin: 0 auto;     /* this centers wrapper */
   max-width: 951px; /* IE wont understand these, so we will use javascript magick */
   min-width: 951px;
   background-color: #FFFFFF;
   color: #000000;
}


/*** header ***/

div#header {
   height: 30px;
   background: #C3D1CD url('/images/cms/header_bars.jpg') no-repeat;
   display: block;
   border-bottom: 2px solid #FFFFFF;
}

div#header_main_nav {
   height: 128px;
   width: 951px;
   background: #FFFFFF url('/images/cms/header_main_nav.jpg') no-repeat;
   display: block;
}

div#header_menu {
   height: 128px;
   width: 400px;
   border-right: 2px solid #FFFFFF;
   float: left;
}

div#header_contact p {
   color: #FFFFFF;
   text-align: right;
   font-size: 10pt;
   padding-top: 15px;
   padding-right: 20px;
}

div.header_menu_item {
   height: 40px;
   width: 178px;
   float: left;
   margin-bottom: 3px;
}

div.header_menu_item a, div.header_menu_item a:link, div.header_menu_item a:active, div.header_menu_item a:visited {
   display: block;
   height: 27px;
   width: 178px;
   color: #340203;
   background: #FFFFFF url('/images/cms/header_menu_item_off.gif') no-repeat;
   font-size: 10pt;
   text-decoration: none;
   padding-top: 13px;
   padding-left: 40px;
}

div.header_menu_item a:hover {
   background: #592307 url('/images/cms/header_menu_item_on.gif') no-repeat;
   color: #FFFFFF;
}

div.header_menu_divider {
   height: 40px;
   width: 2px;
   background-color: #FFFFFF;
   float: left;
}

div.header_menu_item_large {
   height: 40px;
   width: 358px;
   color: #340203;
   font-size: 10pt;
   clear: both;
}

div.header_menu_item_large a, div.header_menu_item_large a:link, div.header_menu_item_large a:active, div.header_menu_item_large a:visited {
   display: block;
   height: 27px;
   width: 358px;
   color: #340203;
   background: #FFFFFF url('/images/cms/header_menu_item_off.gif') no-repeat;
   padding-left: 40px;
   padding-top: 13px;
   text-decoration: none;
   margin-left: 2px;
}

div.header_menu_item_large a:hover {
   background: #592307 url('/images/cms/header_menu_item_on.gif') no-repeat;
   color: #FFFFFF;
}

div#header_image {
   width: 951px;
   height: 247px;
   background: #FFFFFF url('/images/cms/header_image.jpg') no-repeat;
}

div#content {
   margin: 40px auto 40px 0; /* some air above and under menu and content */
}

div#main_content {
   margin: 40px auto 40px 0; /* some air above and under menu and content */
   background: #FFFFFF url('/images/cms/background_bar.gif') repeat-y;
}

div#main {
   margin-left: 470px; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
   margin-right: 70px; /* and some air on the right */
}

div#secondary {
   margin-left: 310px; /* this will give room for sidebar to be on the left side, make sure this space is bigger than sidebar width */
   margin-right: 50px; /* and some air on the right */
}

div#sidebar {
   float: left;  /* set sidebar on the left side. Change to right to float it right instead. */
   width: 260px;    /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX ie doublemargin bug */
   margin-left: 0;
   padding-left: 70px;
   padding-right: 70px;
   padding-top: 5px;
   text-align: justify;
   background: url('/images/cms/news_arrow.gif');
   background-repeat: no-repeat;
}

div#menu_sidebar {
   float: left;  /* set sidebar on the left side. Change to right to float it right instead. */
   width: 210px;    /* sidebar width, if you change this please also change #main margins */
   display: inline;  /* FIX ie doublemargin bug */
   margin-left: 0;
   padding-right: 70px;
   padding-bottom: 302px;
   background: url('/images/cms/watermark.gif');
   background-repeat: no-repeat;
   background-position: bottom left;
}

div#footer {
   clear:both;
   background-color: #726A61;
   height: 30px;
}

div#copyright {
   clear:both;
   background-color: #D8E8E4;
}

div#copyright p {
   font-size: 10pt;
   padding: 10px;
   text-align: center;
   margin:0;
}

div#copyright p a {
   color: #726A61;
}

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

/* relational links under content */
div.left49 {
  float: left;
  width: 49%;  /* 50% for both left and right might lead to rounding error on some browser */
}

div.right49 {
  float: right;
  width: 49%;
  text-align: right;
}

/********************
MENU STYLING
*********************/

div#header_contact_nav {
   height: 32px;
   background-color: #726A61;
   border-left: 2px solid #FFFFFF;
   border-right: 2px solid #FFFFFF;
   text-align: right;
   padding-right: 20px;
}

div#header_sub_nav {
   height: 46px;
   background-color: #726A61;
   border-left: 2px solid #FFFFFF;
   border-right: 2px solid #FFFFFF;
   text-align: center;
}

div#header_contact_nav ul {
   list-style:none;
   margin:0;
   font-size: 9pt;
   color: #FFFFFF;
   padding-top: 8px;
}

div#header_sub_nav ul {
   list-style:none;
   margin:0;
   font-size: 8pt;
   color: #FFFFFF;
   padding-top: 15px;
}

div#header_contact_nav li, div#header_sub_nav li {
   display: inline;
   margin: 0;
   padding: 0;
}
div#header_contact_nav a, div#header_contact_nav a:link, div#header_contact_nav a:active, div#header_contact_nav a:visited, div#header_sub_nav a, div#header_sub_nav a:link, div#header_sub_nav a:active, div#header_sub_nav a:visited {
   text-decoration: none;
   font-size: 9pt;
   color: #FFFFFF;
}

div#header_contact_nav a:hover, div#header_sub_nav a:hover {
   color: #D8C498;
}

/*** Side bar menu ***/

div#menu_sidebar ul {
   list-style:none;
   margin:0;
   font-size: 10pt;
   color: #5F5353;
   margin-left: 5px;
}

div#menu_sidebar li{
   margin: 0;
   padding-left: 20px;
   padding-bottom: 5px;
}

div#menu_sidebar a, div#menu_sidebar a:link, div#menu_sidebar a:active, div#menu_sidebar a:visited {
   text-decoration: none;
   font-size: 10pt;
   color: #5F5353;
}

div#menu_sidebar a:hover {
   color: #592307;
}

div#menu_sidebar ul li.activeparent {
   display: block;
   width: 226px;
   background: url('/images/cms/secondary_nav_active_parent.gif') no-repeat;
   padding-top: 2px;
}

div#menu_sidebar ul li.currentpage {
   display: block;
   width: 226px;
   background: url('/images/cms/secondary_nav_active_parent.gif') no-repeat;
   padding-top: 2px;
}

div#menu_sidebar ul li a.activeparent {
   color: #FFFFFF;
   padding-left: 25px;
}

div#menu_sidebar ul li a.currentpage {
   color: #FFFFFF;
   padding-left: 25px;
}

/*** Sidebar children ***/

div#menu_sidebar ul li ul {
   list-style:none;
   margin:0;
   font-size: 9pt;
   color: #5F5353;
   margin-left: 10px;
   padding-left: 0px;
   padding-top: 10px;
   padding-bottom: 10px;
}

div#menu_sidebar ul li ul li{
   margin: 0;
   padding-left: 0px;
   padding-bottom: 0px;
   padding-top: 2px;
   background: url('/images/cms/secondary_nav_child_item.gif') no-repeat;
}

div#menu_sidebar ul li ul li a, div#menu_sidebar ul li ul li a:link, div#menu_sidebar ul li ul li a:active, div#menu_sidebar ul li ul li a:visited {
   text-decoration: none;
   font-size: 9pt;
   color: #5F5353;
   padding-left: 15px;
}

div#menu_sidebar ul li ul li a:hover {
   color: #592307;
}

/*** Overwrite current page styling for children ***/

div#menu_sidebar ul li ul li.currentpage {
   background: url('/images/cms/secondary_nav_child_item_current.gif') no-repeat;
}

div#menu_sidebar ul li ul li a.currentpage {
   padding: 0px;
   padding-left: 15px;
   color: #592307;
}

/********************
CONTENT STYLING
*********************/
div#content {

}

div.top_border {
   height: 14px;
   width: 562px;
   background: url('/images/cms/secondary_content_wrapper_top.gif') no-repeat;
   padding-bottom: 10px;
}

div.bottom_border {
   height: 22px;
   width: 562px;
   background: url('/images/cms/secondary_content_wrapper_bottom.gif') no-repeat;
}

/* HEADINGS */
div#content h1 {
   color: #3F0805;
   font-size: 16pt;
   padding-left: 5px;
   padding-bottom: 8px;
   line-height: 1em;
   margin: 0;
}
div#content h2 {
   color: #3F0805;
   font-size: 14pt; 
   text-align: left; 
/* some air around the text */
   padding-left: 5px;
   padding-bottom: 8px;
   line-height: 1.5em;
   margin: 0 0 0.5em 0;
}
div#content h3 {
   color: #3F0805;
   font-size: 12pt;
   line-height: 1.3em;
   padding-left: 5px;
   padding-bottom: 8px;
   margin: 0 0 0.5em 0;
}
div#content h4 {
   color: #3F0805;
   font-size: 10pt;
   line-height: 1.3em;
   padding-left: 5px;
   padding-bottom: 8px;
   margin: 0 0 0.25em 0;
}
div#content h5 {
   color: #3F0805;
   font-size: 9pt;
   line-height: 1.3em;
   padding-left: 5px;
   padding-bottom: 8px;
   margin: 0 0 0.25em 0;
}
h6 {
   color: #3F0805;
   font-size: 8pt;
   line-height: 1.3em;
   padding-left: 5px;
   padding-bottom: 8px;
   margin: 0 0 0.25em 0;
}
/* END HEADINGS */

/* TEXT */
p {
   font-size: 1em;
   margin: 0 0 1.5em 0;  /* some air around p elements */
   line-height:1.4em;
   padding: 0;
   padding-left: 5px;
   padding-right: 25px;
   text-align: justify;
}
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.4em;
   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 */
/* End of 'Main Style' */

