#header-extras{
    height:0;
    position:relative;
}
.header-content {
	position:relative;
	border-bottom: 1px solid #DDD;
    min-height: 0; 
}
.header-content .advert{
	margin-top:0;	
	margin-bottom: 0;
}
body .navbar-primary-container{
	margin-top:0;	
}
.navbar-default {
	margin-top:0;	
	z-index: 1;
	border-top: none;
	min-height: 80px;
	transition: min-height 0.25s 0.25s;
}
#frm-search-term{
    height:38px;
    border:1px solid #c0c0c0;
    box-shadow:0 0 15px 0 #f1f1f1 inset;
    display: block;
    text-indent: 0;
    z-index:2;
    margin:0;
    float:left;
    position: relative;
	-webkit-appearance:none;
}
.search-open .navbar-default {
	min-height: 150px;
	transition: min-height 0.25s 0s;
}
.search-open .navbar-default .navbar-collapse, .collapsing {
	-webkit-transition: margin-top 0.25s 0s, height 0.35s ease;
	transition: margin-top 0.25s 0s, height 0.35s ease;
}
.search-open .navbar-default .navbar-collapse {
	margin-top: 145px;
}
.navbar-default .navbar-collapse {
	margin-top: 80px;
	border-top: 1px solid #e1e1e1;
	webkit-transition: margin-top 0.25s 0s, height 0.35s ease;
	transition: margin-top 0.25s 0s, height 0.35s ease;
}
.navbar-toggle {
    border: none;
    height: 29px;
    margin:0;
    padding: 0;
    width: 40px;
    position:absolute;
    bottom:auto;
    top:25px;
    right:20px;
}
.navbar-default .navbar-toggle .icon-bar {
    height: 7px;
    margin-left: auto;
    margin-right: auto;
    width: 40px;
}
.navbar-toggle .icon-bar + .icon-bar {
    margin-top: 4px;
}
.navbar-header {
	position: absolute;
	left: 0;
	top: 0;
}
.header-content .site-search {
    position: absolute;
    width: calc(100% - 40px);
    left: 20px;
    top:80px;
    margin: 0;
    padding: 0;
    visibility: hidden;
    opacity: 0;
    transition:opacity 0.25s 0s, visibility 0s 0.5s;
}
#search-button {
    position: absolute;
    top: 25px;
    right: 75px;
    background-size:29px;
    width:29px;
    height:29px;
    text-indent:-9999px;
    z-index:2;
    cursor:pointer;
}
@media (min-width:650px){
	.header-content .advert{
		margin-top:20px;	
	}
    .navbar-toggle {
        width:50px; 
        height:39px;
        top:44px;
        right:30px;
    }
	.navbar-toggle .icon-bar + .icon-bar{
        margin-top:6px;
    }
    .navbar-toggle .icon-bar {
        height: 9px;
        width:50px;
    }
	.search-open .navbar-default, .navbar-default{
        min-height:130px;
    }
    .navbar-default .navbar-collapse, .search-open .navbar-default .navbar-collapse{
        margin-top:130px;
    }
	.header-content .site-search,
	.search-open .header-content .site-search{
		position:absolute;
		top: 45px;
		right: 100px;
		left: auto;
		width: 275px;
		margin:0;
		height:auto;
		display:block;
		visibility: visible;
		opacity: 1;
	}
	#frm-search-term{
        width:195px;
        margin-right:5px;
        display:inline;
        float:none;
        position: relative;
    }
}

@media (min-width: 1024px) {
	.navbar-header {
		padding: 0;
        margin-top: 0;
		min-height: 28px;
		width: 100%;
	}
	.navbar .navbar-header{
        min-height:0;
        display:none;
    }
	.navbar-brand {
	    position:static;
		padding: 0;
        width: 100%;
        float:none;
        top:40px;
	}
	.search-open .navbar-default, .navbar-default{
        min-height:0;
    }
    .navbar-default .navbar-collapse, .search-open .navbar-default .navbar-collapse{
        margin-top:0;
    }
	.navbar-default .navbar-collapse{
		border-top:none;	
	}
}

#masthead-logo{
    display:block;
    text-indent:-9999px;
    width:185px;
    height:55px;
    background-repeat:no-repeat;
    background-size:185px 55px;
    position:absolute;
    top:13px;
    left:0;
    z-index:2;
}
#verticals-header{
	border-bottom:1px solid #e1e1e1;
	border-top: 1px solid #e1e1e1;
	width: 100%;
	top: 0;
	left: 0;
	z-index: 1001;
	height:36px;
	margin:-1px 0 0 0;
}
#verticals{
    transition:opacity 0.25s;
}
#verticals, #verticals ul {
	margin: 0px;
	padding: 0px;
	list-style: none;	
}
#verticals ul {
	display: none;	
}
#verticals {
	position:relative;
	height: 35px;
	float:right;
	margin-right:126px;
	z-index: 1003;
}
.no-jail #verticals{
	margin-right:0;	
}
#verticals > li {
	float: left;
	position: relative;
}
#verticals > li:hover, #useful-links > a:hover, #useful-links > li:hover a{
	background:#f6f6f6;	
}
#verticals > li.hide {
	display: none;
}
#verticals > li > a {
	float: left;
	display: block;
	height: 34px;
	padding: 0px 15px;
	line-height: 34px;
	color: #656565;
	font-size: 16px;
	font-weight: 600;
	text-decoration: none;
	border-left:1px solid #e1e1e1;
}
#verticals li:hover ul {
	display: block;
	position: absolute;
	left: 0;
	top: 35px;
	width: 200px;
}
#verticals li:hover ul a {
	line-height: 18px;
	color: #fff;
	padding: 10px 20px;
	display: block;
	text-decoration: none;
}
#useful-links{
	position:absolute;
	top:0;
	right:0;
	height:36px;
	background:#fff;
	margin:0;
	padding:0;
	list-style:none;
	overflow:hidden;
	background: transparent;
	border-bottom: 1px solid #e1e1e1;
	transition:opacity 0.25s;
}
.no-jail #useful-links{
	display:none;	
}
#useful-links:hover{
	overflow:visible;
	height:auto;
}
#useful-links > a{
	display: block;
	height: 35px;
	line-height: 35px;
	color: #808080;
	text-decoration: none;
	padding: 0 15px;
	display: block;
	float: right;
	padding-right: 33px;
	border-left:1px solid #e1e1e1;
	border-top: 1px solid #e1e1e1;
	width: 126px;
	position:relative;
}
#useful-links > a:after{
	display: block;
	width: 0;
	height: 0;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid #ccc;
	content: '';
	position: absolute;
	top: 15px;
	right: 15px;	
}
#useful-links li{
	background:#fff;
	clear:both;
}
#useful-links > li > a{
	padding:0 15px;
	display:block;
	line-height:40px;
	font-size: 16px;
	text-decoration: none;
	border-left:1px solid #e1e1e1;
	border-top:1px solid #e1e1e1;
	position:relative;
}
#useful-links.preload, #verticals.preload{
    opacity:0;
}
@media (min-width: 1024px) {
	#useful-links .social-link{
		display:none;
	}
}
@media (min-width: 650px){
    #search-button {
       display:none;
    }   
    .search-open .header-content, 
    .header-content {
       height:auto;
    }
    #masthead-logo{
        top: 25px;
        width:250px;
        height:80px;
        background-size:250px 80px;
    }
}
@media (min-width: 1024px) {
    #search-button {
       display:none;
    }
    .header-content {
        border-bottom:none;
    }
    #header-extras{
        height:auto;
        min-height: 150px;
    }
    #masthead-logo{
        top:8px;
        width:460px;
        height:135px;
        background-size:460px 135px;
    }
}
#header-extras #social-links {
   display:none;  
}
#header-extras #social-links a {
    background-repeat: no-repeat;
    background-size:24px;
    display: block;
    float: left;
	position:relative;
}
#social-links a img {
    margin-right: 5px;
}
#social-links a{
	text-decoration:none;
}
#useful-links{
    z-index:1002;
}
#useful-links > .social-link > a:before {
    width: 24px;
    height: 100%;
    content: '';
    display: block;
    position: absolute;
    left: 15px;
    top: 0;
    background-repeat:no-repeat;
    background-position:0 8px;
    background-size:24px;
}
#useful-links > .social-link > a {
    padding-left: 45px;
}
#useful-links > .you-tube > a:before{
   background-image: url('#file({'filename': 'common/you-tube.png', 'contentId': $content.contentId, '':''})');
}
#useful-links > .twitter > a:before{
   background-image: url('#file({'filename': 'common/twitter.png', 'contentId': $content.contentId, '':''})');
}
#useful-links > .facebook > a:before{
   background-image: url('#file({'filename': 'common/facebook.png', 'contentId': $content.contentId, '':''})');
}
#useful-links > .google-plus > a:before{
   background-image: url('#file({'filename': 'common/google-plus.png', 'contentId': $content.contentId, '':''})');
}
@media screen and (-webkit-min-device-pixel-ratio: 2) {
    #useful-links > .you-tube > a:before{
       background-image: url('#file({'filename': 'common/you-tube-x2.png', 'contentId': $content.contentId, '':''})');
    }
    #useful-links > .twitter > a:before{
        background-image: url('#file({'filename': 'common/twitter-x2.png', 'contentId': $content.contentId, '':''})');
    }
    #useful-links > .facebook > a:before{
       background-image: url('#file({'filename': 'common/facebook-x2.png', 'contentId': $content.contentId, '':''})');
    }
    #useful-links > .google-plus > a:before{
        background-image: url('#file({'filename': 'common/google-plus-x2.png', 'contentId': $content.contentId, '':''})');
    }
}
#useful-links .social-link img {
    margin-right: 5px;
}
@media (min-width: 1024px) {
	 #header-extras #social-links {
        position: absolute;
        top: 30px;
        right: 30px;
        display:block;
        float:right;
        z-index:2;
    }
}

.search-open .header-content .site-search{
    visibility:visible;
    opacity:1;
    transition:opacity 0.25s 0.25s, visibility 0s 0.25s;
}
.search-open #search-button{
    bottom:90px;
}

@media (max-width: 1023px) {
	
	.nav li {
		border-bottom:1px solid #e1e1e1;
	}
	.primary > li > a{
		background-image:linear-gradient(to bottom, #fefefe 0%, #f2f2f2 100%);
		background-image:-webkit-linear-gradient(top, #fefefe 0%, #f2f2f2 100%);
	}
	.secondary.nav {
		border-top:1px solid #e1e1e1;
	}
	.secondary.nav li:last-child{
		border-bottom:none;
	}
	.secondary.nav > li > a {
		padding: 15px 0 15px 20px;
		background:#f1f1f1;
	}
	.nav-arrow-open{
		border-width:25px 15px 0 15px;
		border-top-color:#e33127;
		top:22px;
	}
	.nav-arrow:after, .nav-arrow-open:after{
		display: block;
		position: absolute;
		left: 21px;
		content: '';
		width: 0;
		height: 0;
	}
	.nav-arrow:after{
		border-top: 10px solid transparent;
		border-bottom: 10px solid transparent;
		border-left-width: 15px;
		border-left-style: solid;
	}
	.nav-arrow-open:after{
		border-left: 10px solid transparent;
		border-right: 10px solid transparent;
		border-top-width: 15px;
		border-top-style: solid;
	}
	.primary > li > .nav-arrow:after{
		top:23px;	
	}
	.primary > li > .nav-arrow-open:after{
		top:26px;	
	}
	.secondary > li > .nav-arrow:after{
		top:16px;	
	}
	.secondary > li > .nav-arrow-open:after{
		top:21px;	
	}
	.nav-arrow, .secondary .nav-arrow, .secondary .nav-arrow-open, .nav-arrow-open{
		right: 0;
		top: 0;
		width: 60px;
		height: 100%;
		border: none;
		border-left: 1px solid #e1e1e1;	
		background-image: linear-gradient(to bottom, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
		background-image: -webkit-linear-gradient(top, rgba(255,255,255,0) 0%, rgba(255,255,255,0.2) 100%);
	}
	.secondary-drop .nav > li > a {
		padding-left: 40px;
		background:#f1f1f1;
	}
	.secondary-drop .nav{
		border-top:1px solid #e1e1e1
	}
	.primary.nav > li:last-child {
		border-bottom: none;
	}
	.navbar{
		border:none;	
	}
	.nav > li > a {
		padding: 20px;
	}
}

.login-and-register .advert,
footer .advert {
	display: none !important;	
}


