/*------------------------------ Menu bar ------------------------------ */

#headerlinks
{
    float: left;
    height: 100%;
    margin: 1px 0px 1px 0px;
    width:100%;
    list-style-type:none;
    font-weight: bold;  
    background: #fff;
}

ul.headerlinkslist
{
	margin: 0px;
    padding: 0px;
}

ul.headerlinkslist li.NavButton a, ul.headerlinkslist li.NavButton {
    -webkit-transition: all 0.3s ease-out;
    -moz-transition: all 0.3s ease-out;
    -ms-transition: all 0.3s ease-out;
    -o-transition: all 0.3s ease-out;
    transition: all 0.3s ease-out;
}

ul.headerlinkslist li.NavButton 
{
    padding-left: 20px;
    padding-right: 20px;
    float: left;
    text-align: center;
    width: auto;
    box-sizing: border-box;	
    overflow:auto;
    display: table;
    background:#fff;
}

ul.headerlinkslist li.NavButton:last-child {
    border-right: none;
}


ul.headerlinkslist li.NavButton:hover
{
    color: #8a2a2b;
    background-color: #fff;
	text-decoration: none;
}

ul.headerlinkslist li.NavButton:hover a {
    color: #8a2a2b !important;
}

.homelink:hover
{
	background: #04829D url(images/toplevel_lc_hover.gif) no-repeat scroll top left !important;
}

.homelink
{
	background: #FFFFFF url(images/headerlink_home.gif) no-repeat scroll top left;
}

.imagegallerylink:hover
{
	background: #04829D url(images/toplevel_rc_hover.gif) no-repeat scroll top right !important;
}

.imagegallerylink
{
	background: #FFFFFF url(images/headerlink_imagegallery.gif) no-repeat scroll top left;
}

.showcaselink
{
	background: #FFFFFF url(images/headerlink_showcase.gif) no-repeat scroll top left;
}

/*.advancedsearchlink
{
    background: #FFFFFF url(images/headerlink_search.gif) no-repeat scroll top left;
}*/

form[action="showcase.aspx"] div.showcaselink
{
	background: #04829D !important;
}

form[action="advanced.aspx?src=CalmView.Catalog"] div.advancedsearchlink
{
	background: #04829D !important;
}

form[action="default.aspx"].homelink
{
	background: #04829D url(images/toplevel_lc_hover.gif) no-repeat scroll top left !important;
}

form[action="imagegallery.aspx"].imagegallerylink
{
	background: #04829D url(images/toplevel_rc_hover.gif) no-repeat scroll top right !important;
}

ul.headerlinkslist li a 
{
    color:#333;
    text-decoration: none;   
    display:block; 
    /*height:44px;*/
    display:table-cell;
    vertical-align: middle;
    width: 85%;
    font-size: 16px;
	text-transform: uppercase;
}

ul.headerlinkslist li.NavButtonDropDown
{
    padding-left:0;	
    /*background: rgba(0, 0, 0, 0) linear-gradient(#999999, #333333) repeat scroll 0 0;*/
    background-color: #00539F ;
    float: left;
    text-align: center;
    border-right: 1px solid #ccc;
    width: 25%; /* fallback for non-calc() browsers */
    width: calc(100% / 4);
    box-sizing: border-box;	
    overflow:auto;
    display: table;
    height:41px;
    position:relative;
}

li.NavButtonDropDown ul.AspNet-TreeView
{
    padding-left:0;
    height:41px;
}

#headerlinks AspNet-Treeview ul
{
	position:absolute !important;
}

div#headerlinks li.AspNet-TreeView-Leaf a
{
   padding-left: 16%;

}
div#headerlinks .AspNet-TreeView-Root ul
{
    margin-top:0;
    margin-left:0;
    padding-left:0;
    width:100%;
}

div.AspNet-TreeView li
{
    color: blue;
    width:100%;
    background-image: none;
    display:list-item;


}

ul.headerlinkslist li.AspNet-TreeView-Root div.collapsemenu.AspNet-TreeView-Expand,
ul.headerlinkslist li.AspNet-TreeView-Root div.collapsemenu.AspNet-TreeView-Collapse
{
	float: left;
	text-align: left;
	width: 15%;
	height: 41px;
    display:table-cell;
    position:relative;
}

ul.headerlinkslist li.AspNet-TreeView-Root
{
    list-style-type:none;
}

ul.headerlinkslist ul.AspNet-TreeView-Hide,
ul.headerlinkslist ul.AspNet-TreeView-Show
{
    position:absolute;
}

ul.headerlinkslist  li.AspNet-TreeView-Leaf
{  
    /*background-image: linear-gradient(#1E2D5A,#383838);*/
    background-image: linear-gradient(#5c5c5c,#1E2D5A);
    background-color: #1E2D5A;
    border-top: solid 1px white; 
    min-height: 16px;
    height: auto !important;
    height: 16px;
    width: 100%;
    float: left;
    text-align: left;
}

div#headerlinks  div.collapsemenu.AspNet-TreeView-Expand
{
	background: url('images/expand.gif') no-repeat center;
	cursor: pointer;
}
div#headerlinks  div.collapsemenu.AspNet-TreeView-Collapse
{
	background: url('images/collapse.gif') no-repeat center;
	cursor: pointer;
}

.toplink-button a,
.toplink-button a:visited
{
    color: #FFFFFF;
	text-decoration: none;
}

/*.NavButton a[href="default.aspx"]
{
	background: #00539F url(images/toplevel_lc_active.gif) no-repeat scroll top left !important;
}

.NavButton a[href="showcase.aspx"]
{
	background: #00539F url(images/toplevel_rc_active.gif) no-repeat scroll top right !important;
}

.NavButton a[href="default.aspx"]:hover
{
	background: #04829D !important;
	background: #04829D url(images/toplevel_lc_hover.gif) no-repeat scroll top left !important;
}

.NavButton a[href="showcase.aspx"]:hover
{
	background: #04829D !important;
	background: #04829D url(images/toplevel_rc_hover.gif) no-repeat scroll top right !important;
}*/

.NavButtonDropDown a[href="advanced.aspx"]
{
	
}
.NavButton a[href="Imagegallery.aspx"]
{
	
}

.refinebutton
{
	display:none;
}


/* Dynamic resizing for mobile (v0.2) */

@media screen and (max-width:580px)
{
	#headerlinks
	{
	width:100% !important;
	height:auto !important;
    font-size:0.9em;
	}
	
	#headerlinks ul ul
	{
	margin:0 !important;
	}

	#ctl00_Menu2_UL
	{
	width:49% !important;
	padding:0 !important;
	}
    ul#ctl00_Menu2_UL
	{
	padding:0 !important;
	}
    div#ctl00_StyleSwitcher.StyleSwitcherContainer input.utility
	{
	display:none !important;
	}	
}


