/*
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

Scaffolding.

-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
*/

/* (As this is mobile first, all grids are the same size. All size changes are made in the @media queries at the bottom.) */

.one_full { 
	width: 500px; 
	margin: 0; 
	float: left; 
}

.one_half { 
	width: 850px; 
	float: left;
	margin-bottom:15px;
}
	
.one_half:last-child { 
	width: 230px; 
	margin-right: 0; 
}

.one_third { 
	width: 230px; 
	margin-right: 20px; 
	float: left; 
}
	
.one_third:last-child { 
	width: 230px; 
	margin-right: 0; 
}

.two_third { 
	width: 230px; 
	margin-right: 20px; 
	float: left; 
}
	
.two_third:last-child { 
	width: 230px; 
	margin-right: 0; 
}

.one_quarter { 
	width: 230px; 
	margin-right: 20px; 
	float: left; 
}
	
.one_quarter:last-child { 
	width: 230px; 
	margin-right: 0;  
}

/*
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

Helpers.

-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
*/

/* Buttons */
.btn {
  cursor: pointer;
  display: inline-block;
  background-color: #e6e6e6;
  background-repeat: no-repeat;
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#ffffff), color-stop(0.25, #ffffff), to(#e6e6e6));
  background-image: -webkit-linear-gradient(#ffffff, #ffffff 0.25, #e6e6e6);
  background-image: -moz-linear-gradient(#ffffff, #ffffff 0.25, #e6e6e6);
  background-image: -ms-linear-gradient(#ffffff, #ffffff 0.25, #e6e6e6);
  background-image: -o-linear-gradient(#ffffff, #ffffff 0.25, #e6e6e6);
  background-image: linear-gradient(#ffffff, #ffffff 0.25, #e6e6e6);
  padding: 5px 10px 5px 10px;
  text-shadow: 0 1px 1px rgba(255, 255, 255, 0.75);
  color: #333333;
  font-size: 13px;
  line-height: 18px;
  border: 1px solid #ccc;
  border-bottom-color: #bbb;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-grid-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-grid-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  grid-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 1px 2px rgba(0, 0, 0, 0.05);
  -webkit-transition: 250ms linear all;
  -moz-transition: 250ms linear all;
  transition: 250ms linear all;
}

.btn, .btn a, a.btn {
  color: #ffffff;
}

.btn:hover, .btn a:hover, a.btn:hover {
  color: #ffffff;
}

.btn.red {
  background-color: #9d261d;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#d83a2e), to(#9d261d));
  background-image: -moz-linear-gradient(#d83a2e, #9d261d);
  background-image: -ms-linear-gradient(#d83a2e, #9d261d);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d83a2e), color-stop(100%, #9d261d));
  background-image: -webkit-linear-gradient(#d83a2e, #9d261d);
  background-image: -o-linear-gradient(#d83a2e, #9d261d);
  background-image: linear-gradient(#d83a2e, #9d261d);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid #5c1611;
}

.btn.red:hover {
  background-color: #d83a2e;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#9d261d), to(#d83a2e));
  background-image: -moz-linear-gradient(#9d261d, #d83a2e);
  background-image: -ms-linear-gradient(#9d261d, #d83a2e);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #9d261d), color-stop(100%, #d83a2e));
  background-image: -webkit-linear-gradient(#9d261d, #d83a2e);
  background-image: -o-linear-gradient(#9d261d, #d83a2e);
  background-image: linear-gradient(#9d261d, #d83a2e);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid #5c1611;
}

.btn.orange {
  background-color: #d89342;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#f3ad55), to(#d89342));
  background-image: -moz-linear-gradient(#f3ad55, #d89342);
  background-image: -ms-linear-gradient(#f3ad55, #d89342);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f3ad55), color-stop(100%, #d89342));
  background-image: -webkit-linear-gradient(#f3ad55, #d89342);
  background-image: -o-linear-gradient(#f3ad55, #d89342);
  background-image: linear-gradient(#f3ad55, #d89342);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid #b6782c;
}

.btn.orange:hover {
  background-color: #f3ad55;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#d89342), to(#f3ad55));
  background-image: -moz-linear-gradient(#d89342, #f3ad55);
  background-image: -ms-linear-gradient(#d89342, #f3ad55);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #d89342), color-stop(100%, #f3ad55));
  background-image: -webkit-linear-gradient(#d89342, #f3ad55);
  background-image: -o-linear-gradient(#d89342, #f3ad55);
  background-image: linear-gradient(#d89342, #f3ad55);
}

.btn.green {
  background-color: #96b633;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#bada55), to(#96b633));
  background-image: -moz-linear-gradient(#bada55, #96b633);
  background-image: -ms-linear-gradient(#bada55, #96b633);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #bada55), color-stop(100%, #96b633));
  background-image: -webkit-linear-gradient(#bada55, #96b633);
  background-image: -o-linear-gradient(#bada55, #96b633);
  background-image: linear-gradient(#bada55, #96b633);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid #7b9b18;
}

.btn.green:hover {
  background-color: #bada55;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#96b633), to(#bada55));
  background-image: -moz-linear-gradient(#96b633, #bada55);
  background-image: -ms-linear-gradient(#96b633, #bada55);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #bada55), color-stop(100%, #bada55));
  background-image: -webkit-linear-gradient(#96b633, #bada55);
  background-image: -o-linear-gradient(#96b633, #bada55);
  background-image: linear-gradient(#96b633, #bada55);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid #7b9b18;
}

.btn.blue {
  background-color: #0064cd;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#049cdb), to(#0064cd));
  background-image: -moz-linear-gradient(#049cdb, #0064cd);
  background-image: -ms-linear-gradient(#049cdb, #0064cd);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #049cdb), color-stop(100%, #0064cd));
  background-image: -webkit-linear-gradient(#049cdb, #0064cd);
  background-image: -o-linear-gradient(#049cdb, #0064cd);
  background-image: linear-gradient(#049cdb, #0064cd);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid #003f81;
}

.btn.blue:hover {
  background-color: #049cdb;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#0064cd), to(#049cdb));
  background-image: -moz-linear-gradient(#0064cd, #049cdb);
  background-image: -ms-linear-gradient(#0064cd, #049cdb);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #0064cd), color-stop(100%, #049cdb));
  background-image: -webkit-linear-gradient(#0064cd, #049cdb);
  background-image: -o-linear-gradient(#0064cd, #049cdb);
  background-image: linear-gradient(#0064cd, #049cdb);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid #003f81;
}

.btn.gray {
  background-color: #bbbbbb;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#cccccc), to(#bbbbbb));
  background-image: -moz-linear-gradient(#cccccc, #bbbbbb);
  background-image: -ms-linear-gradient(#cccccc, #bbbbbb);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #cccccc), color-stop(100%, #bbbbbb));
  background-image: -webkit-linear-gradient(#cccccc, #bbbbbb);
  background-image: -o-linear-gradient(#cccccc, #bbbbbb);
  background-image: linear-gradient(#cccccc, #bbbbbb);
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
  border: 1px solid #aaaaaa;
}

.btn.large {
  font-size: 16px;
  line-height: 28px;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

.btn.small {
  padding-right: 9px;
  padding-left: 9px;
  font-size: 11px;
}

.btn.disabled {
  background-image: none;
  filter: alpha(opacity=65);
  -khtml-opacity: 0.65;
  -moz-opacity: 0.65;
  opacity: 0.65;
  cursor: default;
}

.btn:disabled {
  background-image: none;
  filter: alpha(opacity=65);
  -khtml-opacity: 0.65;
  -moz-opacity: 0.65;
  opacity: 0.65;
  cursor: default;
}

.btn:active {
  -webkit-grid-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-grid-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
  grid-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.05);
}

button.btn::-moz-focus-inner, input[type=submit].btn::-moz-focus-inner {
  padding: 0;
  border: 0;
}

/* Alerts */
.alert {
  background-color: rgba(0, 0, 0, 0.15);
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(transparent), to(rgba(0, 0, 0, 0.15)));
  background-image: -moz-linear-gradient(transparent, rgba(0, 0, 0, 0.15));
  background-image: -ms-linear-gradient(transparent, rgba(0, 0, 0, 0.15));
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, transparent), color-stop(100%, rgba(0, 0, 0, 0.15)));
  background-image: -webkit-linear-gradient(transparent, rgba(0, 0, 0, 0.15));
  background-image: -o-linear-gradient(transparent, rgba(0, 0, 0, 0.15));
  background-image: linear-gradient(transparent, rgba(0, 0, 0, 0.15));
  filter: "progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#15000000')";
  background-color: #e6e6e6;
  margin-bottom: 18px;
  padding: 8px 15px;
  color: #fff;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid rgba(0, 0, 0, 0.3);
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
}

.alert p {
  color: #ffffff;
  margin-bottom: 0;
}

.alert p + p {
  margin-top: 5px;
}

.alert.error {
  background-color: #d83a2e;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#e4776f), to(#d83a2e));
  background-image: -moz-linear-gradient(#e4776f, #d83a2e);
  background-image: -ms-linear-gradient(#e4776f, #d83a2e);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #e4776f), color-stop(100%, #d83a2e));
  background-image: -webkit-linear-gradient(#e4776f, #d83a2e);
  background-image: -o-linear-gradient(#e4776f, #d83a2e);
  background-image: linear-gradient(#e4776f, #d83a2e);
  border-bottom-color: #b32b21;
}

.alert.warning {
  background-color: #ffd040;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#ffe38d), to(#ffd040));
  background-image: -moz-linear-gradient(#ffe38d, #ffd040);
  background-image: -ms-linear-gradient(#ffe38d, #ffd040);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffe38d), color-stop(100%, #ffd040));
  background-image: -webkit-linear-gradient(#ffe38d, #ffd040);
  background-image: -o-linear-gradient(#ffe38d, #ffd040);
  background-image: linear-gradient(#ffe38d, #ffd040);
  border-bottom-color: #ffc40d;
}

.alert.success {
  background-color: #62bc62;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#97d397), to(#62bc62));
  background-image: -moz-linear-gradient(#97d397, #62bc62);
  background-image: -ms-linear-gradient(#97d397, #62bc62);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #97d397), color-stop(100%, #62bc62));
  background-image: -webkit-linear-gradient(#97d397, #62bc62);
  background-image: -o-linear-gradient(#97d397, #62bc62);
  background-image: linear-gradient(#97d397, #62bc62);
  border-bottom-color: #46a546;
}

.alert.info {
  background-color: #04aef4;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#62cffc), to(#04aef4));
  background-image: -moz-linear-gradient(#62cffc, #04aef4);
  background-image: -ms-linear-gradient(#62cffc, #04aef4);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #62cffc), color-stop(100%, #04aef4));
  background-image: -webkit-linear-gradient(#62cffc, #04aef4);
  background-image: -o-linear-gradient(#62cffc, #04aef4);
  background-image: linear-gradient(#62cffc, #04aef4);
  border-bottom-color: #049cdb;
}

.alert .close {
  float: right;
  margin-top: -4px;
  color: #333333;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 1px 0 #ffffff;
  filter: alpha(opacity=20);
  -khtml-opacity: 0.2;
  -moz-opacity: 0.2;
  opacity: 0.2;
}

.alert .close:hover {
  text-decoration: none;
  filter: alpha(opacity=40);
  -khtml-opacity: 0.4;
  -moz-opacity: 0.4;
  opacity: 0.4;
}

.block-message {
  margin-bottom: 18px;
  padding: 14px;
  color: #333333;
  color: #333333
  text-shadow: 0 1px 0 #ffffff;
  -webkit-border-radius: 6px;
  -moz-border-radius: 6px;
  border-radius: 6px;
}

.block-message p {
  color: #333333;
  margin-right: 30px;
  margin-bottom: 0;
}

.block-message ul {
  margin-bottom: 0;
}

.block-message strong {
  display: block;
}

.block-message.error {
  background: #f8dcda;
  border: 1px solid #f4c8c5;
}

.block-message.warning {
  background: #fff0c0;
  border: 1px solid #ffe38d;
}

.block-message.success {
  background: #dff1df;
  border: 1px solid #bbe2bb;
}

.block-message.info {
  background: #c7eefe;
  border: 1px solid #ade6fe;
}

.block-message .close {
  float: right;
  margin-top: -4px;
  color: #333333;
  font-size: 20px;
  font-weight: bold;
  text-shadow: 0 1px 0 #ffffff;
  filter: alpha(opacity=20);
  -khtml-opacity: 0.2;
  -moz-opacity: 0.2;
  opacity: 0.2;
}

.block-message .close:hover {
  text-decoration: none;
  filter: alpha(opacity=40);
  -khtml-opacity: 0.4;
  -moz-opacity: 0.4;
  opacity: 0.4;
}


.pills:before,
.pills:after {
  display: table;
  content: "";
}

.tabs:after, .pills:after {
  clear: both;
}

.tabs {
  height:35px;
  width: 800px;
  padding:0px;
  margin:0px;
  vertical-align:baseline;
}

.tabs li, .pills li {
  display: inline;
}

.tabs li a, .pills li a {
  float: left;
  width: auto;
}

.tabs li a {
  background: #f8ecee;
  margin-right: 2px;
  margin-bottom: -1px;
  line-height: 35px;
  -webkit-border-radius: 3px 3px 0 0;
  -moz-border-radius: 3px 3px 0 0;
  border-radius: 3px 3px 0 0;
  padding-left: 5px;
  padding-right: 5px;
}

.tabs li a:hover {
  background: #f4e5e7;
  border-bottom: 1px solid #bfbfbf;
}

.tabs li.active a {
  background-color: #ffffff;
  padding: 0 8px;
  border: 1px solid #cccccc;
  border-bottom: 0;
  color: #808080;
}

/* Pills */
.pill a {
  background: #106ECC;
  color: #ffffff;
  text-decoration: none;
  padding: 5px 15px 5px 15px;
  line-height: 30px;
  -webkit-border-radius: 15px;
  -moz-border-radius: 15px;
  border-radius: 15px;
}

.pill a:hover {
  background: #0050a3;
  color: #ffffff;
  text-decoration: none;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.pill a.active {
  background: #0069d6;
  color: #ffffff;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.25);
}

.pill li, li.pill {
	list-style: none;
}

/* Pagination */
.pagination {
  margin: 18px 0;
}

.pagination ul {
  float: left;
  margin: 0;
  padding: 0;
  border: 1px solid #ddd;
  border: 1px solid rgba(0, 0, 0, 0.15);
  -webkit-border-radius: 3px;
  -moz-border-radius: 3px;
  border-radius: 3px;
  -webkit-grid-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  -moz-grid-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  grid-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.pagination ul li {
  display: inline;
}

.pagination ul li a {
  float: left;
  padding: 0 14px;
  line-height: 34px;
  border-right: 1px solid;
  border-right-color: #dddddd;
  text-decoration: none;
}

.pagination ul li a:hover, .pagination ul li.active a {
  background-color: #c7eefe;
}

.pagination ul li.disabled a, .pagination ul li.disabled a:hover {
  background-color: none;
  color: #bfbfbf;
}

.pagination ul li.next a {
  border: 0;
}

.topbar {
  height: 40px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  overflow: visible;
  background: #222;
  background-color: #222222;
  background-repeat: repeat-x;
  background-image: -khtml-gradient(linear, left top, left bottom, from(#333333), to(#222222));
  background-image: -moz-linear-gradient(top, #333333, #222222);
  background-image: -ms-linear-gradient(top, #333333, #222222);
  background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #333333), color-stop(100%, #222222));
  background-image: -webkit-linear-gradient(top, #333333, #222222);
  background-image: -o-linear-gradient(top, #333333, #222222);
  background-image: linear-gradient(top, #333333, #222222);
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.topbar a {
  color: #bfbfbf;
  text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.25);
}

.topbar a:hover, .topbar ul li.active a {
  background-color: #333;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  text-decoration: none;
}

.topbar h3 {
  position: relative;
}

.topbar h3 a {
  float: left;
  display: block;
  padding: 8px 20px 12px;
  margin-left: -20px;
  color: #ffffff;
  font-size: 20px;
  font-weight: 200;
  line-height: 1;
}

.topbar form {
  float: left;
  margin: 5px 0 0 0;
  position: relative;
  filter: alpha(opacity=100);
  -khtml-opacity: 1;
  -moz-opacity: 1;
  opacity: 1;
}

.topbar form input {
  background-color: #444;
  background-color: rgba(255, 255, 255, 0.3);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: normal;
  font-weight: 13px;
  line-height: 1;
  width: 220px;
  padding: 4px 9px;
  color: #fff;
  color: rgba(255, 255, 255, 0.75);
  border: 1px solid #111111;
  -webkit-border-radius: 4px;
  -moz-border-radius: 4px;
  border-radius: 4px;
  -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
  -moz-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1), 0 1px 0px rgba(255, 255, 255, 0.25);
  -webkit-transition: none;
  -moz-transition: none;
  transition: none;
}

.topbar form input:-moz-placeholder {
  color: #e6e6e6;
}

.topbar form input::-webkit-input-placeholder {
  color: #e6e6e6;
}

.topbar form input:hover {
  background-color: #bfbfbf;
  background-color: rgba(255, 255, 255, 0.5);
  color: #ffffff;
}

.topbar form input:focus, .topbar form input.focused {
  outline: none;
  background-color: #ffffff;
  color: #404040;
  text-shadow: 0 1px 0 #ffffff;
  border: 0;
  padding: 5px 10px;
  -webkit-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
  -moz-box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
  box-shadow: 0 0 3px rgba(0, 0, 0, 0.15);
}

.topbar ul {
  display: block;
  float: left;
  margin: 0 10px 0 -15px;
  position: relative;
}

.topbar ul.secondary-nav {
  float: right;
  margin-left: 10px;
  margin-right: 0;
}

.topbar ul li {
  display: block;
  float: left;
  font-size: 13px;
}

.topbar ul li a {
  display: block;
  float: none;
  padding: 10px 10px 11px 10px;
  line-height: 19px;
  text-decoration: none;
}

.topbar ul li a:hover {
  color: #fff;
  text-decoration: none;
}

.topbar ul li.active a {
  background-color: #222;
  background-color: rgba(0, 0, 0, 0.5);
}
.topbar ul.primary-nav li ul {
  left: 0;
}
.topbar ul.secondary-nav li ul {
  right: 0;
}

.topbar ul li.menu {
  position: relative;
}

.topbar ul li.menu a.menu:after {
  width: 0px;
  height: 0px;
  display: inline-block;
  content: "&darr;";
  text-indent: -99999px;
  vertical-align: top;
  margin-top: 8px;
  margin-left: 4px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid #fff;
  filter: alpha(opacity=50);
  -khtml-opacity: 0.5;
  -moz-opacity: 0.5;
  opacity: 0.5;
}

.topbar ul li.menu.open a.menu, .topbar ul li.menu.open a:hover {
  background-color: #444;
  background-color: rgba(255, 255, 255, 0.1);
  *background-color: #444;
  /* IE6-7 */

  color: #fff;
}

.topbar ul li.menu.open ul {
  display: block;
}

.topbar ul li.menu.open ul li a {
  background-color: transparent;
  font-weight: normal;
}

.topbar ul li.menu.open ul li a:hover {
  background-color: rgba(255, 255, 255, 0.1);
  *background-color: #444;
  /* IE6-7 */

  color: #fff;
}

.topbar ul li.menu.open ul li.active a {
  background-color: rgba(255, 255, 255, 0.1);
  font-weight: bold;
}

.topbar ul li ul {
  background-color: #333;
  float: left;
  display: none;
  position: absolute;
  top: 40px;
  min-width: 160px;
  max-width: 220px;
  _width: 160px;
  margin-left: 0;
  margin-right: 0;
  padding: 0;
  text-align: left;
  border: 0;
  zoom: 1;
  -webkit-border-radius: 0 0 5px 5px;
  -moz-border-radius: 0 0 5px 5px;
  border-radius: 0 0 5px 5px;
  -webkit-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  -moz-box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.topbar ul li ul li {
  float: none;
  clear: both;
  display: block;
  background: none;
  font-size: 12px;
}

.topbar ul li ul li a {
  display: block;
  padding: 6px 15px;
  clear: both;
  font-weight: normal;
  line-height: 19px;
  color: #bbb;
}

.topbar ul li ul li a:hover {
  background-color: #333;
  background-color: rgba(255, 255, 255, 0.25);
  color: #fff;
}

.topbar ul li ul li.divider {
  height: 1px;
  overflow: hidden;
  background: #222;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin: 5px 0;
}

.topbar ul li ul li span {
  clear: both;
  display: block;
  background: rgba(0, 0, 0, 0.2);
  padding: 6px 15px;
  cursor: default;
  color: #808080;
  border-top: 1px solid rgba(0, 0, 0, 0.2);
}

/* Some colors */
.muted { color: #e6e6e6; }
.highlight { background: #ffffe0; color: #333333; }

/* Inline Stuff */
.inline { display: inline; }

/* For image replacement */
.ir { display: block; border: 0; text-indent: -999em; overflow: hidden; background-color: transparent; background-repeat: no-repeat; text-align: left; direction: ltr; }
.ir br { display: none; }

/* Hide from both screenreaders and browsers. */
.hidden { display: none !important; visibility: hidden; }

/* Hide only visually, but have it available for screenreaders. */
.visuallyhidden { border: 0; clip: rect(0 0 0 0); height: 1px; margin: -1px; overflow: hidden; padding: 0; position: absolute; width: 1px; }

/* Extends the .visuallyhidden class to allow the element to be focusable when navigated to via the keyboard. */
.visuallyhidden.focusable:active, .visuallyhidden.focusable:focus { clip: auto; height: auto; margin: 0; overflow: visible; position: static; width: auto; }

/* Hide visually and from screenreaders, but maintain layout */
.invisible { visibility: hidden; }

/* Contain floats. */ 
.clearfix:before, .clearfix:after { content: ""; display: table; }
.clearfix:after { clear: both; }
.clearfix { zoom: 1; }

/* Position */
.alignleft { float: left; }
.alignright { float: right; }
.textleft { text-align: left; }
.textright { text-align: right; }
.textcenter { text-align: center; }

/*
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

Pretty Print Styles. (Code prettifier...)

-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
*/

.com { color: #93a1a1; }
.lit { color: #195f91; }
.pun, .opn, .clo { color: #93a1a1; }
.fun { color: #dc322f; }
.str, .atv { color: #268bd2; }
.kwd, .tag { color: #195f91; }
.typ, .atn, .dec, .var { color: #CB4B16; }
.pln { color: #93a1a1; }

pre.prettyprint {
	background: #111111;
  	padding: 15px;
  	border: 1px solid rgba(0,0,0,.2);
  	-webkit-box-shadow: 0 1px 2px rgba(0,0,0,.1);
  	-moz-box-shadow: 0 1px 2px rgba(0,0,0,.1);
  	box-shadow: 0 1px 2px rgba(0,0,0,.1);
}

.prettyprint ul, .prettyprint ol {
	margin: 0;
	padding: 0 10px 0 10px;
}

/* Specify class=linenums on a pre to get line numbering */
ol.linenums li { color: #111111; line-height: 20px; }

/* Alternate shading for lines */
li.L1, li.L3, li.L5, li.L7, li.L9 { background: #222222; }

/*
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

You can declare your primary styles in the following section, but, if your application becomes CSS 
'heavy' then I'd suggest moving your primary styles to a seperate stylesheet and including that in the
HEAD.

Why? Internet Explorer.

Internet Explorer stops reading CSS selectors after 4095, effectively ignoring the rest of your CSS 
declarations!

-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
*/

/*
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

Primary styles. (Mobile first, everything else is overridden with @media queries near the bottom)

@Version:
@Author:

-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
*/

.container {
	width: 280px;
	margin: 0 auto;
}
	
#main {
	background: #ffffff;
	width: 230px;
	padding: 25px 25px 100px 25px;
	margin: 0 auto;
	border: 1px solid #ffffff;
	grid-shadow: 0px 0px 3px #bbbbbb;
	-moz-grid-shadow: 0px 0px 3px #bbbbbb;
	-webkit-grid-shadow: 0px 0px 3px #bbbbbb;
	float: left;
}

#main:before { /* This is to demostrate responsive sizing. Delete when ready. */
	content: 'Mobile Portrait';  
	background: #106ECC;
  	color: #ffffff;
  	text-decoration: none;
  	margin: 8px 0 8px 0;
  	padding: 8px 15px 8px 15px;
  	line-height: 30px;
  	-webkit-border-radius: 15px;
  	-moz-border-radius: 15px;
  	border-radius: 15px; 
}

#main header {
	width: 100%;
	float: left;
}


nav#primary {
	margin: 30px 0 0 60px;
	float: left;	
}

nav#primary ul li {
	display: inline;
	padding: 0 0 0 15px;
}

nav#primary ul li a {
	font-size: 16px;
}

/* Second level dropdown */
nav#primary ul li ul { 
	background: #000000;
	display: none; 
	position: absolute; 
	padding: 5px 0 3px 0; 
	z-index: 10; 
	-webkit-border-radius: 3px;
  	-moz-border-radius: 3px;
  	border-radius: 3px;
 	box-shadow: 0 0 2px #cccccc;
	opacity: .8;
}
	
nav#primary ul li ul li { 
	background: none; 
	margin: 0; 
	padding: 10px 20px 10px 20px; 
	position: relative; 
	z-index: 99999;  
	display: block;
	float: none;
	border-bottom: 1px solid #333333;
}
	
nav#primary ul li ul li:nth-last-child(1) { 
	border: none; 
}
	
nav#primary ul li ul li a { 
	background: none;
	color: #ffffff;
	padding: 0;  
	position: relative; 
	z-index: 102; 
	display: block;
	float: none;
}

form legend, form input, form select {
	max-width: 230px;
}

/*
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

@Media Queries for responsive design. These override the primary('mobile first') styles.

Ensure your main styling comes before this!

-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
*/

@media only screen and (min-width: 481px) {
	
	.container {
		width: 480px;
		margin: 0 auto;
	}

	#main {
		min-width: 380px;
	}
	
	#main:before { /* This is to demostrate responsive sizing. Delete when ready. */
		content: 'Mobile Landscape';  
		background: #106ECC;
  		color: #ffffff;
  		text-decoration: none;
  		margin: 8px 0 8px 0;
  		padding: 8px 15px 8px 15px;
  		line-height: 30px;
  		-webkit-border-radius: 15px;
  		-moz-border-radius: 15px;
  		border-radius: 15px; 
	}
	
	nav#primary {
		margin: 30px 0 0 100px;
		float: left;	
	}

	nav#primary ul li {
		display: inline;
		padding: 0 0 0 25px;
	}
	
	.one_full { 
		width: 500px; 
		margin: 0; 
		float: left; 
	}

	.one_half { 
		width:850x; 
		/*margin-right: 20px;*/ 
		float: left; 
	}
	
	.one_half:last-child { 
		width: 380px; 
		margin-right: 0; 
	}

	.one_third { 
		width: 380px; 
		float: left; 
	}
	
	.one_third:last-child { 
		width: 380px; 
		margin-right: 0; 
	}

	.two_third { 
		width: 380px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.two_third:last-child { 
		width: 380px; 
		margin-right: 0; 
	}

	.one_quarter { 
		width: 380px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.one_quarter:last-child { 
		width: 380px; 
		margin-right: 0;  
	}


}

@media only screen and (min-width: 769px) {
	
	p { font-size: 14px; }
	
	.container {
		width: 768px;
		margin: 0 auto;
	}
	
	#main {
		width: 668px;
	}
	
	#main:before { /* This is to demostrate responsive sizing. Delete when ready. */
		content: 'Tablet Portrait'; 
		background: #106ECC;
  		color: #ffffff;
  		text-decoration: none;
  		margin: 8px 0 8px 0;
  		padding: 8px 15px 8px 15px;
  		line-height: 30px;
  		-webkit-border-radius: 15px;
  		-moz-border-radius: 15px;
  		border-radius: 15px;
	}
	
	#logo {
		float: left;
	}
	
	nav#primary {
		margin: 30px 0 0 0;
		float: right;	
	}

	nav#primary ul li {
		display: inline;
		padding: 0 0 0 35px;
	}
	
	nav#primary ul li a {
		font-size: 16px;
	}
	
	.one_full { 
		width: 668px; 
		margin: 0; 
		float: left; 
	}

	.one_half { 
		width: 850px; 
		/*margin-right: 40px; */
		float: left; 
	}
	
	.one_half:last-child { 
		width: 850px; 
		margin-right: 0; 
	}

	.one_third { 
		width: 202px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.one_third:last-child { 
		width: 202px; 
		margin-right: 0; 
	}

	.two_third { 
		width: 424px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.two_third:last-child { 
		width: 424px; 
		margin-right: 0; 
	}

	.one_quarter { 
		width: 147px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.one_quarter:last-child { 
		width: 147px; 
		margin-right: 0;  
	}

}

@media only screen and (min-width: 1025px) {
	
	p { font-size: 14px; }
	
	.container {
		width: 1024px;
		margin: 0 auto;
	}
	
	#main {
		width: 924px;
	}
	
	#main:before { /* This is to demostrate responsive sizing. Delete when ready. */
		content: 'Tablet Landscape / Browser Small'; 
		background: #106ECC;
  		color: #ffffff;
  		text-decoration: none;
  		margin: 8px 0 8px 0;
  		padding: 8px 15px 8px 15px;
  		line-height: 30px;
  		-webkit-border-radius: 15px;
  		-moz-border-radius: 15px;
  		border-radius: 15px;
	}
	
	#logo {
		float: left;
	}
	
	nav#primary {
		margin: 30px 0 0 0;
		float: right;	
	}

	nav#primary ul li {
		display: inline;
		padding: 0 0 0 35px;
	}
	
	nav#primary ul li a {
		font-size: 16px;
	}
	
	.one_full { 
		width: 924px; 
		margin: 0; 
		float: left; 
	}

	.one_half { 
		width: 850px; 
		/*margin-right: 50px; */
		float: left; 
	}
	
	.one_half:last-child { 
		width: 412px; 
		margin-right: 0; 
	}

	.one_third { 
		width: 288px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.one_third:last-child { 
		width: 288px; 
		margin-right: 0; 
	}

	.two_third { 
		width: 596px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.two_third:last-child { 
		width: 596px; 
		margin-right: 0; 
	}

	.one_quarter { 
		width: 211px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.one_quarter:last-child { 
		width: 211px; 
		margin-right: 0;  
	}

}

@media only screen and (min-width: 1281px) {
	
	p { font-size: 14px; }
	
	.container {
		width: 1280px;
		margin: 0 auto;
	}
	
	#main {
		width: 1180px;
	}
	
	#main:before { /* This is to demostrate responsive sizing. Delete when ready. */
		content: 'Browser Large';   
		background: #106ECC;
  		color: #ffffff;
  		text-decoration: none;
  		margin: 8px 0 8px 0;
  		padding: 8px 15px 8px 15px;
  		line-height: 30px;
  		-webkit-border-radius: 15px;
  		-moz-border-radius: 15px;
  		border-radius: 15px;
	}
	
	#logo {
		float: left;
	}
	
	nav#primary ul li {
		padding: 0 0 0 35px;
	}
	
	nav#primary ul li a {
		font-size: 16px;
	}
	
	.one_full { 
		width: 1180px; 
		margin: 0; 
		float: left; 
	}

	.one_half { 
		width: 850px; 
		/*margin-right: 50px; */
		float: left; 
	}
	
	.one_half:last-child { 
		width: 650px; 
		margin-right: 0; 
	}

	.one_third { 
		width: 373px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.one_third:last-child { 
		width: 373px; 
		margin-right: 0; 
	}

	.two_third { 
		width: 766px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.two_third:last-child { 
		width: 766px; 
		margin-right: 0; 
	}

	.one_quarter { 
		width: 275px; 
		margin-right: 20px; 
		float: left; 
	}
	
	.one_quarter:last-child { 
		width: 275px; 
		margin-right: 0;  
	}
}

/*
-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------

Print styles. Inlined to avoid HTTP connection.

-------------------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------------------
*/
 
@media print {
  * { background: transparent !important; color: black !important; text-shadow: none !important; filter:none !important; -ms-filter: none !important; } /* Black prints faster */
  a, a:visited { text-decoration: underline; }
  a[href]:after { content: " (" attr(href) ")"; }
  abbr[title]:after { content: " (" attr(title) ")"; }
  .ir a:after, a[href^="javascript:"]:after, a[href^="#"]:after { content: ""; }  /* Don't show links for images, or javascript/internal links */
  pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
  thead { display: table-header-group; }
  tr, { page-break-inside: avoid; }
  p, h2, h3 { orphans: 3; widows: 3; }
  h2, h3 { page-break-after: avoid; }
}

table{
	margin:0px;
	padding:0px;
	border-spacing:0px;
	border: 2px solid #A9233E;	
}