#globalsearch {
	position:absolute;
	top:0;
	right:0;
	z-index:70;
}
#globalsearch b {
	color:#9cc7ea;
}
#globalsearch.searchactive {
	background-color:black;
	color:white;
	/*box-shadow: 10px 10px 5px #222;*/
	/*border-bottom-left-radius: 10px;*/
	width:400px;
	border: 1px solid #323232;
	border-style: none none solid solid;
	min-height:151px;
}

#globalsearch_help {
	margin:10px;
	display:none;
	text-align:left;
}
#globalsearch.searchactive.showhelp #globalsearch_help {
	display:block;
}

#globalsearch_results, #globalsearch_pastviews {
	text-align:left;
	display:none;
	border-top: 1px solid white;
}
#globalsearch.searchactive.showresults #globalsearch_results {
	display:block;
}
#globalsearch.searchactive.showhelp #globalsearch_pastviews {
	display:block;
}
#globalsearch_pastviews h3 {
	margin:7px 10px 7px 10px;
	font-size: 14px;
	color:#9cc7ea;
}

#globalsearchinput_wrap {
	width:156px;
	float:right;
	margin: 10px 15px 10px 4px;

	border: 2px inset #f0f0f0;
	background-color: white;
}
#globalsearchinput_wrap div{
	background: url("../img/search_icon.png") no-repeat center;
	float:left;
	height:16px;
	width:16px;
	padding:2px 1px;
	/*cursor: pointer;*/
}
#globalsearch #globalsearchinput {
	width:130px;
	padding:2px 0;
	background-color:white;
	border-style:none;
}

#globalsearch_results a, #globalsearch_pastviews a {
	padding: 7px 42px 7px 7px;
	display:block;
	width:350px;
	color:white;
	white-space:nowrap;
	overflow:hidden;
	text-overflow: ellipsis;
}
#globalsearch #globalsearch_pastviews a.clearlink {
	display:inline;
	padding:0px;
	font-size:10px;
}
#globalsearch_results a.selected, #globalsearch_pastviews a:hover {
	background-color: orange;
	color:black;
}
#globalsearch_pastviews a.clearlink, #globalsearch_pastviews a.clearlink:hover {
	background-image: none;
}
/*#globalsearch_results a:last-child.selected, #globalsearch_pastviews a:last-child:not(.clearlink):hover {
	border-bottom-left-radius:10px;
}*/
#globalsearch_results a.selected b, #globalsearch_pastviews a:hover b {
	color: #003399;
}
#globalsearch_results a span, #globalsearch_pastviews a span {
	font-size: 10px;
}
#globalsearch_results a.horse, #globalsearch_pastviews a.horse {
	background: url('../img/horse_icon.png') no-repeat 96% center;
}
#globalsearch_results a.horse.selected, #globalsearch_pastviews a.horse:hover {
	background: orange url('../img/horse_icon_hover.png') no-repeat 96% center;
}
#globalsearch_results a.person, #globalsearch_pastviews a.person {
	background: url('../img/person_icon.png') no-repeat 95.5% center;
}
#globalsearch_results a.person.selected, #globalsearch_pastviews a.person:hover {
	background: orange url('../img/person_icon_hover.png') no-repeat 96% center;
}
#globalsearch_results a.saleresult, #globalsearch_pastviews a.saleresult {
	background: url('../img/sale_icon.png') no-repeat 95.5% center;
}
#globalsearch_results a.saleresult.selected, #globalsearch_pastviews a.saleresult:hover {
	background: orange url('../img/sale_icon_hover.png') no-repeat 95.5% center;
}
#globalsearch_results a.meet, #globalsearch_pastviews a.meet {
	background: url('../img/meet_icon.png') no-repeat 97% center;
}
#globalsearch_results a.meet.selected, #globalsearch_pastviews a.meet:hover {
	background: orange url('../img/meet_icon_hover.png') no-repeat 97% center;
}

#globalsearch_noresults {
	padding:10px;
	text-align:left;
	display:none;
	border-top: 1px solid white;
}
#globalsearch.searchactive.shownoresults #globalsearch_noresults {
	display:block;
}

#globalsearch_loading {
	float:right;
	margin:14px 7px 5px;
	display:none;
}



#globalsearch_results ul {
	padding-left: 15px;
	background-color:maroon;
}
/*#globalsearch_results ul:last-child {
	border-bottom-left-radius:9px;
}*/
#globalsearch_results li {
	background-color: black;
}
/*#globalsearch_results li a:last-child.selected {
	border-bottom-left-radius: 0;
}*/

#globalsearch_results a.race span.year {
	font-size: 10pt;
	color:grey;
}

#globalsearch_options {
	float:left;
	position:absolute;
	left:-70px;
	display:none;
	background-color:#444;
	padding-top:8px;
}
#globalsearch.searchactive #globalsearch_options {
	display: block;
}
#globalsearch_options li {
	display:block;
}
#globalsearch_options a {
	color:white;
	background-color:#444;
	width:50px;
	padding:10px;
	display:block;
	text-align:right;
}
#globalsearch_options a:hover, #globalsearch_options a.selected {
	background-color:black;
}

#globalsearch_studbookbutton {
	background-color:#f5f5f5;
    border:1px solid #dedede;
    border-top:1px solid #aaa;
    border-left:1px solid #aaa;

	margin-top: 10px;
	margin-right:4px;
	height:24px;
	float:right;
	color:black;
	display: none;
	cursor: pointer;
}
#globalsearch.searchactive #globalsearch_studbookbutton.show {
	display:block;
}
body #globalsearch.searchactive.showhelp #globalsearch_studbookbutton.show {
	display:none;
}