/* This rule resets a core set of elements so that they will appear consistent across browsers. Without this rule, content styled with an h1 tag, for example, would appear in different places in Firefox and Internet Explorer because each browser has a different top margin default value. By resetting these values to 0, the elements will initially be rendered in an identical fashion and their properties can be easily defined by the designer in any subsequent rule. */
html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6 {
  margin: 0;
  padding: 0;
  border: 0;
  outline: 0;
  font-size: 100%;
}

.rightimg {
float:right;
margin:10px 0 10px 15px;
border:3px solid #B5D5E3}

.img {
margin:0;
border:3px solid #B5D5E3}

.leftimg {
float:left;
margin:10px 15px 10px 0;
border:3px solid #B5D5E3}

/* The body is the outermost layout component and contains the visible page content. Setting properties for the body element will help to create consistent styling of the page content and more manageable CSS. Besides using the body element to set global properties, it is common to use the body element to set the background color of the page and create a centered container for the page content to display. */
body {
  background-color: #555;
    color: #000;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 11px;
  line-height: 1.4em;
  margin: 0 0 0 0; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 0 0 0 0; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  text-align: center; /* Centers the page content container in IE 5 browsers. */
}

img { display:block;
border:0px} 

/* Commonly used to style page titles. */
h1 {
  font-family: Arial, Verdana, Helvetica, sans-serif;
  color: #22A9E5;
  font-size: 22px;
  font-weight: bold;
line-height:25px;
margin:10px 0px;
}

/* Commonly used to style section titles. */
h2 {
    font-family: Arial, Verdana, Helvetica, sans-serif;
color: #000;
  font-size: 13px;
  font-weight: bold;
  line-height: 14px;
margin:10px 0px;
}
h3 {
font-family: Arial, Helvetica, Verdana, sans-serif;
font-size:1.3em;
line-height:1.1em;
padding:5px 0px;
}

/* Sets the style for unvisited links. */
a,  a:link {
  color: #000;
  text-decoration: none;
}
/* Sets the style for visited links. */
a:visited {
  color: #000;
  text-decoration: none;
}
/* Sets the style for links on mouseover. */
a:hover {
  color: #570205;
  text-decoration: none;
}
/* Sets the style for a link that has focus. */
a:focus {
  color: #000;
outline:none;
}
/* Sets the style for a link that is being activated/clicked. */
a:active {
  color: #000;
outline:none;
}

#top, #bottom {
  width: 770px;
height:18px;
margin:0px auto;
  padding: 0px;
overflow:hidden;
 background-image: url("/media/backgroundtop.jpg");
  background-position: top center;
  background-repeat: repeat-x;
}

#bottom {
height:25px;
 background-image: url("/media/backgroundbottom.jpg");
}

/* This is a container for the page content. It is common to use the container to constrain the width of the page content and allow for browser chrome to avoid the need for horizontal scrolling. For fixed layouts you may specify a container width and use auto for the left and right margin to center the container on the page. IE 5 browser require the use of text-align: center defined by the body element to center the container. For liquid layouts you may simply set the left and right margins to center the container on the page. */
#outerWrapper {
background-image: url("/media/background.jpg");
  background-position: top center;
  margin: 0 auto 0 auto; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 0px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
  text-align: left; /* Redefines the text alignment defined by the body element. */




  width: 770px;
}

#outerWrapper #contentWrapper {
  border-bottom: 5px solid #fff;
  border-top: 0px solid #fff;
  width:708px;
margin:0px auto;
  background-image: url("/media/mainbg.gif");
  background-position: center center;
  background-repeat: repeat-y;
}
#outerWrapper #contentWrapper #sidebar {
  color: #FFFFFF;
  float: right;
  width: 220px;
}

/* Contains the main page content. When using a mutliple column layout the margins will be set to account for the floated columns' width, margins, and padding. */
#outerWrapper #contentWrapper #content {
  margin: 0 220px 0 0; /* Sets the margin properties for an element using shorthand notation (top, right, bottom, left) */
  padding: 0px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
width:470px;
}

.headerimg {
border-bottom:8px solid #fff;
}

#maincontent {
padding:0 10px;
width:460px;
}

/* Using floated elements and a clear float class is a common method to accomplish multiple column tableless layouts. If floated elements are used without being cleared the elements following will wrap around the floated element. This class should be applied to an element after the last floated element and before the close of the container with floated elements. */
#outerWrapper #contentWrapper .clearFloat {
  clear: right;
  display: block;
}
#outerWrapper #footer {
  background-color: #444;
  color: #fff;
width:688px;
margin:0px auto;
font-size:1em;
padding: 7px 10px; /* Sets the padding properties for an element using shorthand notation (top, right, bottom, left) */
text-align:center;}

#footer a {
color:#fff;
}

#content p{
padding:5px 0px;
margin:0px;
}

#maincontent ul {
margin:5px;
padding:0px;
}

#maincontent li {
list-style:none;
 vertical-align: middle;
	background-image: url("/media/bullets.gif");
	background-repeat: no-repeat;
	background-position: left top;
padding:0px 0px 8px 20px;
}

.mailform {
width:200px;}

.contactform {
clear:both;
font-weight:bold;
font-size:1.1em;
line-height:1.2em;}

/* MAINNAV */

#sidenav {
overflow:hidden;
list-style: none;
margin: 0;
border-top:8px solid #fff;
}

#sidenav ul {
margin:0px; padding:0px}

#sidenav li {
list-style: none;
height:44px;
display:block;
overflow:hidden;
border-bottom:2px solid #fff;
}

#sidenav li a {
display:block;
text-decoration:none;
background-position: 0px 0px;
height: 44px;
padding:120px 0 0 0;
}

a.home {
background-image: url("/media/mainnav/home.jpg");
}

a.equipment {
background-image: url("/media/mainnav/equipment.jpg");
}

a.services {
background-image: url("/media/mainnav/services.jpg");
}

a.credits {
background-image: url("/media/mainnav/credits.jpg");
}

a.contact {
background-image: url("/media/mainnav/contact.jpg");
}

#sidenav a:hover, #home .home, 
#services .services, #equipment .equipment,
#credits .credits, #contact .contact {
background-position: 0px 44px;
}