/* CSS Provides the Triple Column Layout Utilized by ErwinLabs*/
/* Based on Layouts by Matthew James Taylor <http://matthewjamestaylor.com/>*/

body {
	margin:0;
    padding:0;
    border:0;		/* This removes the border around the viewport in old versions of IE */
    width:100%;
    background:#000;
    min-width:600px;    /* Minimum width of layout - remove line if not required */
			/* The min-width property does not work in old versions of Internet Explorer */
	font-size:90%;
	color:#fff
}

blockquote{
  color:#fff;
  font:italic normal normal 1em georgia,serif;
  padding:0 0 15px 0;
  margin:0;
}

a {
   	color:#369;
}

a:hover {
    color:#fff;
    background:#666;
    text-decoration:none;
}

h1, h2, h3 {
    margin:.8em 0 .2em 0;
    padding:0;
}

p {
    margin:.4em 0 .8em 0;
    padding:0;
}
	
img {
    margin:10px 0 5px;
}

/* Header styles */
#header {
    background:#000;
    clear:both;
    float:left;
    width:100%;
}

#header {
    border-bottom:1px solid #000;
}

#header p, #header h1, #header h2 {
    padding:.4em 15px 0 15px;
    margin:0;
}

#header ul {
    clear:left;
    float:left;
    width:100%;
    list-style:none;
    margin:10px 0 0 0;
    padding:0;
}

#header ul li {
    display:inline;
    list-style:none;
    margin:0;
    padding:0;
}

#header ul li a {
    display:block;
    float:left;
    margin:0 0 0 1px;
    padding:3px 10px;
    text-align:center;
    background:#eee;
    color:#000;
    text-decoration:none;
    position:relative;
    left:15px;
	line-height:1.3em;
}

#header ul li a:hover {
	background:#000;
	color:#fff;
}

#header ul li a.active, #header ul li a.active:hover {
    color:#fff;
    background:#000;
    font-weight:bold;
}

#header ul li a span {
    display:block;
}

#layoutdims {
	clear:both;
	background:#000;
	border-top:1px solid #fff;
	margin:0;
	padding:6px 15px !important;
	text-align:right;
}

/* column container */
.colmask {
    background:#000;
	position:relative;		/* This fixes the IE7 overflow hidden bug and stops the layout jumping out of place */
    clear:both;
    float:left;
    width:100%;				/* width of whole page */
	overflow:hidden;		/* This chops off any overhanging divs */
}

/* Tri-Column Settings */
.tricolumn {
    background:#000;    	/* Right column background colour */
}
    
.tricolumn .colmid {
	float:left;
    width:200%;
    margin-left:-200px; 	/* Width of right column */
    position:relative;
    right:100%;
    background:#000;    	/* Centre column background colour */
}

.tricolumn .colleft {
	float:left;
    width:100%;
    margin-left:-50%;
    position:relative;
    left:400px;         	/* Left column width + right column width */
    background:#000;    	/* Left column background colour */
}

.tricolumn .col1wrap {
    background:#000;
	float:left;
    width:50%;
    position:relative;
    right:200px;        	/* Width of left column */
    padding-bottom:1em; 	/* Centre column bottom padding. Leave it out if it's zero */
}

.tricolumn .col1 {
    background:#000;
	margin:0 215px;     	/* Centre column side padding:
                          	Left padding = left column width + centre column left padding width
                           	Right padding = right column width + centre column right padding width */
    position:relative;
    left:200%;
    overflow:hidden;
}

.tricolumn .col2 {
    background:#000;
	float:left;
    float:right;			/* This overrides the float:left above */
    width:170px;        	/* Width of left column content (left column width minus left and right padding) */
    position:relative;
    right:15px;         	/* Width of the left-had side padding on the left column */
}

.tricolumn .col3 {
    background:#000;
	float:left;
    float:right;			/* This overrides the float:left above */
    width:170px;        	/* Width of right column content (right column width minus left and right padding) */
    margin-right:45px;  	/* Width of right column right-hand padding + left column left and right padding */
    position:relative;
    left:50%;
}

/* reference container */
.tricolumn.REF {
    background-color: #606060;
	overflow:hidden;		/* This chops off any overhanging divs */
}

/* Footer styles */
#footer {
    background:#000;
	clear:both;
    float:left;
    width:100%;
	border-top:1px solid #fff;
	line-height:0px;
	text-align:center;
}

#footer p {
    background:#000;
	padding:10px;
    margin:0;
}

/* Exponent and Subscripts */
.exp{
	position: relative;
	bottom: 0.5em;
	font-size: 0.8em;
}

.sub{
	position: relative;
	top: 0.3em;
	font-size: 0.8em;
}
#code {
    background:#333333;
	border:2px solid;
    margin:0;
}