nav {
  clear: both;
	box-shadow: 3px 3px 8px #666;
}

nav ul.tray {
	border-top: 1px solid #b3b3b3;
	background-color: #f3f3f3;
	margin-top: 1px;
	margin-bottom: 0px;
	text-align: right;
	margin-left: 0px;
	padding-left: 0px;
	padding-right: 16px;
	padding-left: 16px;
	line-height: 1.6em;
min-height: 26px;
}

nav ul.tray .lgnGroup {
	position: relative;
	border-radius: 5px 5px 5px 5px;
	border: 1px solid #b3b3b3;
	background-color: white;
	width: 240px;
	height: 22px;
  display: inline-block;
  *display: inline;
  zoom: 1;
  margin-bottom: -7px;
  margin-top: 0px;
}

nav ul.tray .lgnGroup .usernameWrapper {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 5px;
	width: 90px;
	border-right: 1px dotted #b3b3b3;
		background-color: white;

}

nav ul.tray .lgnGroup input[type=submit] {
	position: absolute;
	top: 0px;
	bottom: 0px;
	right: 0px;
	width: 50px;
	background: #ffffff;
	border: none;
	border-radius: 0 5px 5px 0;
	border-left: 1px solid #b3b3b3;
 /* Old browsers */
	background: -moz-linear-gradient(top,  #ffffff 0%, #e5e5e5 100%);
 /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5));
 /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
 /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
 /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
 /* IE10+ */
	background: linear-gradient(to bottom,  #ffffff 0%,#e5e5e5 100%);
 /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 );
 /* IE6-9 */
}

nav ul.tray .lgnGroup .passwordWrapper {
	position: absolute;
	top: 0px;
	bottom: 0px;
	left: 100px;
	width: 90px;
		background-color: white;

}



nav ul.tray .usernameWrapper input[type=text], 		nav ul.tray .passwordWrapper input[type=password] {
  background-color: transparent;
	width: 100%;
  margin-top: 2px;
  display: block;
}

nav ul.tray #username {
	border: none;
}

nav ul.tray #password {
	border: none;
}

nav ul.tray li {
	display: inline-block;
*display: inline;
zoom: 1;
	margin-left: 0px;
	padding-left: 0px;
}

nav ul.tray li.pm a {
	padding-left: 20px;
	background: url(https://s3.amazonaws.com/files.qrz.com/static/images/statusicon/pm_old.png) left center no-repeat;
}

nav ul.tray li.pm {
}

nav ul.primary-navigation {
	border-top: solid 1px #6699cc;
	background-color: #99ccff;
	margin-top: 0px;
	margin-left: 0px;
	padding-right: 16px;
	padding-left: 16px;
	font-size: 14px;
	height: 2.5em;
  min-width: 900px;
}

nav ul.primary-navigation li {
	margin-left: 0px;
	padding-left: 0px;
}

nav > ul.primary-navigation {
	text-align: justify;
	-ms-text-justify: distribute-all-lines;
	text-justify: distribute-all-lines;
}

.stretch {
	width: 100%;
	display: inline-block;
*display: inline;
zoom: 1;	font-size: 0;
	line-height: 0
}

nav > ul.primary-navigation > li.search {
  z-index: 100;
	width: auto;
	float: left;
	margin-left: -10px;
	padding-left: 0px;
}

nav > ul.primary-navigation > li {
	width: auto;
	line-height: 2.5em;
	color: black;
	font-size: 14px;
	font-weight: bold;
	font-family: Arial,Helvetica,sans-serif;
	text-shadow: #ccf 1px 1px 1px;
	position: relative;
	display: inline-block;
*display: inline;
zoom: 1;
	padding-left: 8px;
	padding-right: 8px;
	margin-right: 38px;
	text-align: center;
}

nav > ul.primary-navigation ul.sub {
	position: absolute;
	display: none;
	background-color: #99ccff;
	box-shadow: 3px 3px 8px #666;
	z-index: 10000;
	padding-left: 0px;
	list-style: none;
	margin-left: 0px;
	min-width: 220px;
	max-width: 150%;
	background-color: #f3f3f3;
	left: 0px;
	height: 0px;
	transition: height .3s ease;
}

nav > ul.primary-navigation ul.sub li {
	font-weight: normal;
	color: #444;
	text-shadow: none;
	text-align: left;
	line-height: 1.1em;
  white-space: normal;
}

nav > ul.primary-navigation > li.leaf:hover {
	background-color: #0099ff;
}

nav > ul.primary-navigation > li:hover > ul.sub {
	display: block;
	height: auto;
}

nav > ul.primary-navigation > li.last:hover > ul.sub, nav > ul.primary-navigation > li:nth-last-child(2):hover > ul.sub {
	right: 0px;
	left: auto;
}

nav > ul.primary-navigation > li:hover > ul.sub > li:not(.seperator):hover {
	background-color: #e9e9e9;
}
nav > ul.primary-navigation a {
  color: black;
}
nav > ul.primary-navigation li li > a {
	display: block;
	color: #111;
  padding-left: 16px;
  padding-right: 16px;
	padding-top: .55em;
	padding-bottom: .55em;
}
nav .search .history {
  background-color: white;
    width: 177px;
    margin: .3em;
    margin-left: 0px;
    padding-top: 6px;
    border: solid 1px #6699cc;
    border-radius: 6px 6px 6px 6px;
    top: 19px;
    position: absolute;
  display: none;
    box-shadow: 3px 3px 8px #666;
}

nav .search .history .histTitle {
    color: grey;
    font-weight: normal;
    text-shadow: none;
    line-height: 22px;
}
nav .search .history .histItem {
background-repeat: no-repeat;
    background-position: 4px;
    height: 32px;
    border-top: 1px dotted grey;
    text-align: left;
    padding-left: 42px;
    font-weight: normal;
}
nav .search .history .histItem:hover {
background-color: #0099ff;
cursor: pointer;
}
nav .search .magic {
	background-color: white;
	width: 234px;
	margin: .3em;
	margin-left: 0px;
	height: 24px;
	border: solid 1px #6699cc;
	border-radius: 6px 6px 6px 6px;
	position: relative;
	font-size: 14px;
	font-family: Arial;
	font-weight: normal;
	text-align: left;
	line-height: 1.8em;
}

nav .search .magic .tqueryWrapper {
	top: 0px;
	bottom: 2px;
	left: 6px;
	width: 84px;
	position: absolute;
}

nav .search .magic .tqueryWrapper #tquery {
	width: 100%;
	height: 100%;
	border: 0px;
	margin: 0px;
	position: absolute;
	top: 0px;
	left: 0px;
	bottom: 0px;
	border-right: 1px dotted #6699cc;
}

nav .search .magic .modeWrapper {
	top: 0px;
	bottom: 0px;
	left: 91px;
	width: 90px;
	position: absolute;
	overflow: hidden;
}

nav .search .magic .modeWrapper .cover {
	position: absolute;
	top: 0px;
	left: 0px;
	bottom: 0px;
	right: 3px;
	background-color: white;
	padding-left: 5px;
	border-right: 1px solid #6699cc;
	font-size: 11px;
}

nav .search .magic .modeWrapper #mode {
	width: 100%;
	height: 100%;
	border: 0px;
	margin: 0px;
	position: absolute;
	top: 0px;
	left: 0px;
	bottom: 2px;
	z-index: 1;
  /* IE 8 */
	-ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=0)";
  /* IE 5-7 */
	filter: alpha(opacity=0);
  /* Netscape */
	-moz-opacity: 0;
  /* Safari 1.x */
	-khtml-opacity: 0;
  /* Good browsers */
	opacity: 0;
}

nav .search .magic #tsubmit {
	border: none;
	position: absolute;
	top: 0px;
	bottom: 0px;
	right: 0px;
	width: 56px;
	border-radius: 0px 6px 6px 0px;
	background: #ffffff;
 /* Old browsers */
	background: -moz-linear-gradient(top,  #ffffff 0%, #e5e5e5 100%);
 /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5));
 /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
 /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
 /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #ffffff 0%,#e5e5e5 100%);
 /* IE10+ */
	background: linear-gradient(to bottom,  #ffffff 0%,#e5e5e5 100%);
 /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 );
 /* IE6-9 */
}

nav .search .magic #tsubmit:hover {
	background: #e5e5e5;
 /* Old browsers */
	background: -moz-linear-gradient(top,  #e5e5e5 0%, #ffffff 100%);
 /* FF3.6+ */
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#e5e5e5), color-stop(100%,#ffffff));
 /* Chrome,Safari4+ */
	background: -webkit-linear-gradient(top,  #e5e5e5 0%,#ffffff 100%);
 /* Chrome10+,Safari5.1+ */
	background: -o-linear-gradient(top,  #e5e5e5 0%,#ffffff 100%);
 /* Opera 11.10+ */
	background: -ms-linear-gradient(top,  #e5e5e5 0%,#ffffff 100%);
 /* IE10+ */
	background: linear-gradient(to bottom,  #e5e5e5 0%,#ffffff 100%);
 /* W3C */
	filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#e5e5e5', endColorstr='#ffffff',GradientType=0 );
 /* IE6-9 */
}

nav .cover .carat {
	width: 0;
	height: 0;
	border-left: 3px solid transparent;
	border-right: 3px solid transparent;
	border-top: 3px solid #000;
	position: absolute;
	top: 50%;
	right: 4px;
	margin-top: -2px;
}

nav hr {
	margin: 0px;
}

@media(max-width: 1300px) {
	nav > ul.primary-navigation > li {
		width: auto;
		color: black;
		font-size: 14px;
		font-weight: bold;
		font-family: Arial,Helvetica,sans-serif;
		text-shadow: #fff 1px 1px 1px;
		position: relative;
		display: inline-block;
*display: inline;
zoom: 1;
		padding-left: 8px;
		padding-right: 8px;
		margin-right: 4px;
		text-align: center;
	}
}

@media(max-width: 1100px) {
.stretch {
	width: auto;
	display: none;
	line-height: 0
}

	nav > ul.primary-navigation {
		white-space: nowrap;
	}

	nav > ul.primary-navigation > li {
		width: auto;
		color: black;
		font-size: 14px;
		font-weight: bold;
		font-family: Arial,Helvetica,sans-serif;
		text-shadow: none;
		position: relative;
		display: inline-block;
*display: inline;
zoom: 1;
		padding-left: 4px;
		padding-right: 4px;
		margin-right: 4px;
		font-weight: normal;
		text-align: center;
	}
  nav > ul.primary-navigation > li.secondlast:hover > ul.sub, nav > ul.primary-navigation > li:nth-last-child(3):hover > ul.sub {
	  right: 0px;
	  left: auto;
  }
}

#qrzdev {
  overflow: scroll;
}
