img {
	border: none;
}
div#content div#contentIn #mapcontainer img {
	margin:0px;
}

html, div {
	font-family: sans-serif;
}

div#mapcontainer {
	width: 960px;
	/*border: solid 2px #567810;*/
}

/* IE 6 Hack for font sizes*/
* html div#mapcontainer a, * html div.olFramedCloudPopupContent a {
	font-size: 1.3em;
}
* html div#mapcontainer h3, * html div.olFramedCloudPopupContent h3 {
	font-size: 1.25em;
}
* html div#mapcontainer h3 a, * html div.olFramedCloudPopupContent h3 a {
	font-size: 1em;
}
* html div#mapcontainer table, * html div#mapcontainer table a, 
* html div.olFramedCloudPopupContent table, 
* html div.olFramedCloudPopupContent table a {
	font-size: 1em;
}
div#content div#contentIn #mapcontainer table {
	font-size: 100%;
}
div#content div#contentIn #mapcontainer table td, div#content div#contentIn  #mapcontainer table th {
	padding:1px;
}

/* IE 7 Hack for font sizes*/
*+html div#mapcontainer a, *+html div.olFramedCloudPopupContent a {
	font-size: 1.3em;
}
*+html div#mapcontainer h3, *+html div.olFramedCloudPopupContent h3 {
	font-size: 1.25em;
}
*+html div#mapcontainer h4, *+html div.olFramedCloudPopupContent h4 {
	font-size: 1em;
}
*+html div#mapcontainer h3 a, *+html div.olFramedCloudPopupContent h3 a {
	font-size: 1em;
}
*+html div#mapcontainer table, *+html div#mapcontainer table a, 
*+html div.olFramedCloudPopupContent table, 
*+html div.olFramedCloudPopupContent table a {
	font-size: 1em;
}
*+html div#mapcontainer div.pageNumbers {
	font-size: 12.5px;
	margin-left: 0;
}
*+html div#mapcontainer div.pageNumbers a {
	font-size: 12.5px;
}
/* End hacks */

div#mapcontainer img, div.smap_ac_results img {
	display: inline;
}

div#contentIn div#mapcontainer {
	width: 100%;
}

@media print {
	div#mapcontainer {
		border: 0;
	}
}
/* our stuff */

div#mapcontainer div#smapwrapper {
	border: 2px solid #567810; 
	z-index: 0;
    padding: 0px!important;
    margin: 0 18.4em 0 0 !important;
}

div#contentIn div#smapwrapper {
    margin: 0 !important;
}

div.olMapDragging {
	/* 
	important that all of these stay here - because ie7 is weird with
	loading cursors - relative to page, not css.
	*/
	cursor: url(../img/closedhand_8_8.cur), url(img/closedhand_8_8.cur), url(/smap/img/closedhand_8_8.cur), default !important;
}

div#mapcontainer div.smallmap {
	height: 450px;
}

div#contentIn div#mapcontainer div.smallmap {
	height: 300px;
}

div#mapcontainer table.hbox tr td {
	vertical-align: top;
	margin: 1em;
}

div#mapcontainer table.hbox div.child {
	position: absolute;
	top: 0px;
	margin-left:88px;
}

div#mapcontainer table.olToolbar tr td {
	vertical-align: middle;	
	margin: 0;
}

div#mapcontainer div.map-footer p.legal {
	font-size: smaller;
}

div#mapcontainer table.olToolbar  {
	background-color: #ffffff; border: 2px solid #567810;
	font-family: sans-serif; font-weight: bold; font-size: small; text-align: center;
}

div#mapcontainer table.olToolbar td { height: 2em; width: 2em;}

div#mapcontainer div.draw-status {
	border: 2px solid #567810; background-color: white; 
	padding: .3em;
	width: 20em;
	font-size: 8pt;
	line-height: 10pt;
}
div#mapcontainer div.draw-status a {
	font-weight:bold;
}

div#mapcontainer div.draw-status div.error{
	color:#FF0000;
}

div#mapcontainer div.draw-status td.presetColor {
	height: 18px;
	width: 18px;
    cursor: pointer;
    border: 1px solid #999;
}
div#mapcontainer div.draw-status td.presetColor.selected {
    border: 1px solid #000;
}

div#mapcontainer input#userroutename, div#mapcontainer textarea#userroutedescription {
	font-size:8pt;
	width: 13em;
	font-family: sans-serif;
}

div#mapcontainer input#userroutecolor, div#mapcontainer input#userrouteopacity {
	font-size:8pt;
	font-family: sans-serif;
} 
div#mapcontainer input#userroutecolor {
	width: 4.5em;
	margin-right: 0.7em;
}

div#mapcontainer input#userrouteopacity {
	width: 3em;
}

div#mapcontainer div.draw-status div.close {
	float: right;
}

div#mapcontainer div.draw-status p {
	margin: 0 0 .2em 0;
}

div#mapcontainer table.route_summary th {
	text-align: left;
}

div.expand-control a {
	display: block;
	background: url("../img/expand-tl.gif") no-repeat center; width: 20px; height: 20px;
}

div#mapcontainer div.search-control {
	font-size: 10pt;
}

div#mapcontainer div.search-control table {
	background: #FFFFFF;
	font-family: sans-serif; font-weight: bold; text-align: center;
	border: 2px solid #567810;
	border-left: 0;
	width: 90px;
}

div#mapcontainer div.search-control form .smap_ac_results {
	top: 2.45em;
	border-left: 0;
}

div#mapcontainer div.search-control form table {
	width: 200px;
}

div#mapcontainer div.search-control table td {
	vertical-align: middle;
	height: 20pt; /* ie6 isn't coping with ems very well, so specify height in non-relative font points */ 
	overflow: hidden;
}

div#mapcontainer div.search-control table td.text {
	text-align: left; padding-left: 0.2em; 
}

div#mapcontainer div.search-control table td.text input {
	width: 10em; height: 1.3em;
}

div#mapcontainer div.search-control table td.submit {
	text-align: right; padding-right: 0.25em; 
}

div#mapcontainer div.search-control table td.submit input {
	width: 3.4em; height: 1.6em; 
}

div#mapcontainer div.search-control input.text {
	border: 1px gray solid;
}

input.ac_loading {
        background-image: url("../img/ajax_spinner_small.gif") !important;
        background-repeat:no-repeat !important;
        background-attachment: scroll !important;
        background-position: right center !important;
        background-color: #88B3E0 !important;
}

#mapcontainer input.ac_loading {
        background-color: #FFFFFF !important;
}
/**
 * User Routes
 */

div#route-results h3.title a {
	color: #FFFFFF;
}
div#route-results h3.u-r-title {
	padding: .75em; margin: 0; text-align: center;
	background-color:#648F3F; color:#ffffff; 
	background-image:  url(../img/bg.png) ;
	background-repeat: repeat;
}

div#route-results a.view_route {
	padding: 5 .5em;
}

div#route-results a.edit_route {
	padding: 0 .5em;
	color: #004F8E;
	text-align: right; 
	font-size: smaller;
	text-decoration: none;
}
div#route-results a.delete_route {
	padding: 0 .5em;
	color: #004F8E;
	text-align: right; 
	font-size: smaller;
	text-decoration: none;
}

div#route-results a.dodelete {
	color: #004F8E;
	text-align: right; 
	font-size: smaller;
	text-decoration: none;
}


div#route-results div.pageNumbers {
	padding: 0.5em;
	font-size: small;
}


/**
 * Near You
 */

div#route-results {
	border: 2px solid #567810;
	padding: 0;
	float: right; width: 17em;	
	height:450px; overflow: hidden;
}

div#route-results h3 {
	padding: 9px; margin: 0; text-align: center;
	background-color:#648F3F; color:#ffffff; 
	background-image:  url(../img/bg.png) ;
	background-repeat: repeat;
	border-top: 2px solid #567810;
}

div#route-results #nearyou-results h3 {
	border-top: 0;
}

div#route-results ul {
	margin: 0; list-style: none; padding: 0;
	/*padding: .1em 1em 0 1em;*/
}

div#route-results ul.category {
	/*position: relative; top: -.05em;*/
}

div#route-results li.category {
	padding: 0 .5em;
}

div#route-results li.category h4 {
	margin: 0.5em 0; padding: 0;
}

div.near_you_toggle {
	float: right;
}
div#route-results div.near_you_toggle a {
	font-size: 1em;
}

/* IE 6 Hack */
* html div#route-results li.category h4 {
	font-size: 1em;
}

div#route-results li.result {
	padding-bottom: .5em; margin-top: .5em;
	border-bottom: 1px solid gray;
}

div#route-results li.result img {
	height:12px; 
	width:12px; 
	padding:0 4px 0 0;
}

div#route-results li.last {
	border-bottom: none;
	padding-bottom: 0;
}

div#route-results a {
	color: #004F8E; font-weight: bold; font-size: small;
	text-decoration: none;
}

div#route-results a:hover {
	text-decoration: underline;
}

div#route-results ul.attributes {
	padding: 0;
	margin: 0;
	font-size: 9px;
}

div#route-results ul.actions {
	text-align: right;
}

div#route-results ul.actions li {
	display: inline;
	padding-left: 0.5em;
}

div#route-results ul.actions li a {
	font-size: 10px;
}
div#route-results input.shareroute_url {
	width: 97%;
	font-family: sans-serif;
	font-size: 11.25px;
}

* html div#route-results ul.attributes {
	padding: 0; margin: 0;
	font-size: 0.8em;
}


/*
 * Auto Complete
 */

.smap_ac_results {
	padding: 0px;
	border: 1px solid black;
	background-color: white;
	overflow: hidden;
	z-index: 99999;
	border:2px solid #567810;
	width: 288px;
}

.smap_ac_results ul {
	width: 100%;
	list-style-position: outside;
	list-style: none;
	padding: 0;
	margin: 0;
}

.smap_ac_results li {
	margin: 0px;
	padding: 2px 5px;
	cursor: default;
	display: block;
	/* 
	if width will be 100% horizontal scrollbar will apear 
	when scroll mode will be used
	*/
	/*width: 100%;*/
	/* 
	it is very important, if line-height not setted or setted 
	in relative units scroll will be broken in firefox
	*/
	background-color: white;
	color:#004F8E;
	font-size:small;
	font-weight:bold;
	text-decoration:none;
}

.smap_ac_results li div {
	border: 1px solid #999999 !important;
	border-top: none !important; border-left: none !important; border-right: none !important;   
	line-height: 32px;	height: 32px;
	overflow: hidden; 
	/*set height as well to prevent wrapping*/
}

.smap_ac_results li img {
	float: left;
	padding-right: 5px;
	position: relative; top: 10px;
	height: 12px; width: 12px;
}

.smap_ac_results li.last div {
	border-bottom: none !important;
}

.ac_loading {
	background: white url('indicator.gif') right center no-repeat;
}

.smap_ac_results li.ac_over {
	text-decoration: underline;
	
}

.smap_ac_results ul.noresults li {
	text-decoration: none;
	font-style: italic;
	font-weight: normal;
	height: auto; line-height: 1.4em;
	padding: .2em;
}

.smap_ac_results ul.noresults li img {
	display: none;
}

div.search-control input.submit {
	background:#BCCF48 none repeat scroll 0 0; border: none;
	color:#FFFFFF;
	font-family:Arial;
	font-weight:bold;
	text-align:center;
}

div#mapcontainer input.faded {
	color: graytext;
}

div#mapcontainer .olPopupCloseBox {
	background: url(../img/close-button.gif) no-repeat;
	width: 16px; height:16px;
}

div#mapcontainer div.olControlScaleLine {
	border: 2px solid #567810;
	background-color: white;  
	padding: .5em;
}

div#mapcontainer div.olControlScaleLineTop, div#mapcontainer div.olControlScaleLineBottom {
	border-color: #567810;
}

div#mapcontainer .olControlPanZoomBar {
	cursor: auto;
}

div#mapcontainer .olControlAttribution, .olControlAttribution {
	font-family: sans-serif; font-size: xx-small; text-align: right;
}

div#mapcontainer .xhrQueueControllerProgressBar {
	font-size: medium; font-weight: bold; 
	text-align: center;
	padding: 5px; background: white; border: 2px solid #567810;
}

/* 
make sure rules apply to the main body, as openlayers calculates
callout sizes off screen, with a div appended directly to the body
*/
body div.olFramedCloudPopupContent, div#mapcontainer div.olFramedCloudPopupContent {
	font-family: sans-serif; font-size: 1em; text-align: left;
	cursor: default;
}

body div.olFramedCloudPopupContent table.attraction td, div#mapcontainer div.olFramedCloudPopupContent table.attraction td {
	vertical-align: top;
}

body div.olFramedCloudPopupContent h3,
div#mapcontainer div.olFramedCloudPopupContent h3,
div#mapcontainer div#viewCallout_contentDiv h3 {
        margin: 0em; padding: 0em;
        font-size: 1.17em;
        font-weight: bold;
}

body div.olFramedCloudPopupContent img, div#mapcontainer div.olFramedCloudPopupContent img {
	padding: 2px;
}

body div.olFramedCloudPopupContent th , body div.olFramedCloudPopupContent div.feature-summary td, div#mapcontainer div.olFramedCloudPopupContent th, div#mapcontainer div.feature-summary td {
	vertical-align: top;
}

body div.olFramedCloudPopupContent td.link a, div#mapcontainer div.olFramedCloudPopupContent td.link a {
	text-align: center;
}

div#mapcontainer div.tooltip {
	border: 1px solid black; background: #EEEEEE;
	padding: .2em; font-size: smaller;
}

div#mapcontainer div.htmlFrame {
	border: 2px solid #567810;
	border-radius: .5em; -moz-border-radius: .5em; -webkit-border-radius: .5em;
	background-color: white;  
	padding: 1em;
}

div#mapcontainer div.htmlFrame h3 {
	padding: 0; margin: 0;
	padding-bottom: .5em;
	color: #005395;
}

div#mapcontainer div.htmlFrame .olPopupCloseBox {
	padding: 0; margin: 0;
	float: right;
}

/* IE6 HACK */
* html div#mapcontainer div.htmlFrame .olPopupCloseBox {
	float: none;
	position: absolute;
	left: 92%;
}
/* IE7 HACK */
*+html div#mapcontainer div.htmlFrame .olPopupCloseBox {
	float: none;
	position: absolute;
	left: 92%;
}

div#mapcontainer div.htmlFrame iframe.content {
	overflow-x: hidden;
	overflow-y: auto;
}

fieldset.map-title-form {
		background-color: #ffffff; border: 2px solid #567810;
		font-family: sans-serif; font-size: 10px; 
		text-align: left; margin: 0; margin-top: 4px;
		padding: 4px 4px;
	}

/* openlayers */

div.olMapViewport {
    text-align: left;
}

div.olLayerDiv {
   -moz-user-select: none;
}

.olControlScale {
    right: 3px;
    bottom: 3em;
    display: block;
    position: absolute;
    font-size: smaller;
}
.olControlScaleLine {
   left: 10px;
   bottom: 15px;
   font-size: xx-small;
}
.olControlScaleLineBottom {
   border: solid 2px black;
   border-bottom: none;
   margin-top:-2px;
   text-align: center;
}
.olControlScaleLineTop {
   border: solid 2px black;
   border-top: none;
   text-align: center;
}

.olControlPermalink {
    right: 3px;
    bottom: 1.5em;
    display: block;
    position: absolute;
    font-size: smaller;
} 

div.olControlMousePosition {
    bottom: 0em;
    right: 3px;
    display: block;
    position: absolute;
    font-family: Arial;
    font-size: smaller;
}

.olControlOverviewMapContainer {
    position: absolute;
    bottom: 0px;
    right: 0px;
}

.olControlOverviewMapElement {
    padding: 10px 18px 10px 10px;
    background-color: #00008B;
    -moz-border-radius: 1em 0 0 0;
}

.olControlOverviewMapMinimizeButton {
    right: 0px;
    bottom: 80px;
}    

.olControlOverviewMapMaximizeButton {
    right: 0px;
    bottom: 80px;
}

.olControlOverviewMapExtentRectangle {
    overflow: hidden;
    background-image: url("img/blank.gif");
    cursor: move;
    border: 2px dotted red;
}
.olControlOverviewMapRectReplacement {
    overflow: hidden;
    cursor: move;
    background-image: url("img/overview_replacement.gif");
    background-repeat: no-repeat;
    background-position: center;
}

.olLayerGeoRSSDescription {
    float:left;
    width:100%;
    overflow:auto;
    font-size:1.0em;
}
.olLayerGeoRSSClose {
    float:right;
    color:gray;
    font-size:1.2em;
    margin-right:6px;
    font-family:sans-serif;
}
.olLayerGeoRSSTitle {
    float:left;font-size:1.2em;
}

.olPopupContent {
    padding:5px;
    overflow: auto;
}    
.olControlNavToolbar { 
    width:0px;
    height:0px;
}    
.olControlNavToolbar div { 
  display:block;
  width:  28px;
  height: 28px;
  top: 300px;
  left: 6px;
  position: relative;
}

.olControlNavigationHistory {
   background-image: url("img/navigation_history.png");
   background-repeat: no-repeat;
   width:  24px;
   height: 24px;

}
.olControlNavigationHistoryPreviousItemActive { 
  background-position: 0px 0px;
}
.olControlNavigationHistoryPreviousItemInactive { 
   background-position: 0px -24px;
}
.olControlNavigationHistoryNextItemActive { 
   background-position: -24px 0px;
}
.olControlNavigationHistoryNextItemInactive { 
   background-position: -24px -24px;
}

.olControlNavToolbar .olControlNavigationItemActive { 
  background-image: url("img/panning-hand-on.png");
  background-repeat: no-repeat;
}
.olControlNavToolbar .olControlNavigationItemInactive { 
  background-image: url("img/panning-hand-off.png");
  background-repeat: no-repeat;
}
.olControlNavToolbar .olControlZoomBoxItemActive { 
  background-image: url("img/drag-rectangle-on.png");
  background-color: orange;
  background-repeat: no-repeat;
}
.olControlNavToolbar .olControlZoomBoxItemInactive { 
  background-image: url("img/drag-rectangle-off.png");
  background-repeat: no-repeat;
}
.olControlEditingToolbar  {
    float:right;
    right: 0px;
    height: 30px; 
    width: 200px;
}
.olControlEditingToolbar div { 
  background-image: url("img/editing_tool_bar.png");
  background-repeat: no-repeat;
  float:right;
  width:  24px;
  height: 24px;
  margin: 5px;
}
.olControlEditingToolbar .olControlNavigationItemActive { 
  background-position: -103px -23px; 
}
.olControlEditingToolbar .olControlNavigationItemInactive { 
  background-position: -103px -0px; 
}
.olControlEditingToolbar .olControlDrawFeaturePointItemActive { 
  background-position: -77px -23px; 
}
.olControlEditingToolbar .olControlDrawFeaturePointItemInactive { 
  background-position: -77px -0px; 
}
.olControlEditingToolbar .olControlDrawFeaturePathItemInactive { 
  background-position: -51px 0px; 
}
.olControlEditingToolbar .olControlDrawFeaturePathItemActive { 
  background-position: -51px -23px; 
}
.olControlEditingToolbar .olControlDrawFeaturePolygonItemInactive { 
  background-position: -26px 0px; 
}
.olControlEditingToolbar .olControlDrawFeaturePolygonItemActive { 
  background-position: -26px -23px ;                                                                   
}
.olControlSaveFeaturesItemActive { 
    background-image: url(img/save_features_on.png);
    background-repeat: no-repeat;
    background-position: 0px 1px;
}
.olControlSaveFeaturesItemInactive { 
    background-image: url(img/save_features_off.png);
    background-repeat: no-repeat;
    background-position: 0px 1px;
}

.olHandlerBoxZoomBox {
    border: 2px solid red;
    position: absolute;
    background-color: white;
    opacity: 0.50;
    font-size: 1px;
    filter: alpha(opacity=50);
}
.olHandlerBoxSelectFeature {
    border: 2px solid blue;
    position: absolute;
    background-color: white;
    opacity: 0.50;
    font-size: 1px;
    filter: alpha(opacity=50);
}   

.olControlPanPanel {
    top: 10px;
    left: 5px;
}  

.olControlPanPanel div {
    background-image: url(img/pan-panel.png);
    height: 18px;
    width: 18px;
    cursor: pointer;
    position: absolute;
}

.olControlPanPanel .olControlPanNorthItemInactive {
    top: 0px;
    left: 9px;
    background-position: 0px 0px;
}
.olControlPanPanel .olControlPanSouthItemInactive {
    top: 36px;
    left: 9px;
    background-position: 18px 0px;
}
.olControlPanPanel .olControlPanWestItemInactive {
    position: absolute;
    top: 18px;
    left: 0px;
    background-position: 0px 18px;
}
.olControlPanPanel .olControlPanEastItemInactive {
    top: 18px;
    left: 18px;
    background-position: 18px 18px;
}

.olControlZoomPanel {
    top: 71px;
    left: 14px;
} 

.olControlZoomPanel div {
    background-image: url(img/zoom-panel.png);
    position: absolute;
    height: 18px;
    width: 18px;
    cursor: pointer;
}

.olControlZoomPanel .olControlZoomInItemInactive {
    top: 0px;
    left: 0px;
    background-position: 0px 0px;
}

.olControlZoomPanel .olControlZoomToMaxExtentItemInactive {
    top: 18px;
    left: 0px;
    background-position: 0px -18px;
}

.olControlZoomPanel .olControlZoomOutItemInactive {
    top: 36px;
    left: 0px;
    background-position: 0px 18px;
}

#mapcontainer .olPopupCloseBox, .olPopupCloseBox {
  background: url("img/close.gif") no-repeat;
  cursor: pointer;
}

.olControlNoSelect {
 -moz-user-select: none;
}

div.survey-buttons {
	padding-top: 5px;
}
.survey-buttons .submit {
	width: 12em;
}
.survey-buttons .submit.small {
	width: 6em;
}

#survey_logo {
	padding-top: 5px;
	width: 100%;
	height: 45px;
	background: url("../img/sustrans-logo-small.gif") no-repeat right;
}
