/* ================================================================
This copyright notice must be untouched at all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.stunicholls.com/menu/skeleton_up.html
Copyright (c) 2005-2007 Stu Nicholls. All rights reserved.
This stylesheet and the associated (x)html may be modified in any
way to fit your requirements.
=================================================================== */
#header_img {margin:5px auto;display:block;width:100%}

#nav,
#nav ul {padding:0 0 5px 0; margin:0; list-style:none;
         font: 14px helvetica, sans-serif;
         /*font: 14px verdana, sans-serif;*/
         border:1px solid #000;
         border-color:#ace #79b #68a #bde;
         border-width:1px 2px 2px 1px; background:#fff;
         position:relative; z-index:200;}

#nav {height:auto; width:calc(100% - 2px);
      padding:0; background-color:#0072bc;
      display: inline-block;}

#nav li {float:left; width:100%;}
#nav li li {float:none; background:#fff;}
/* a hack for IE5.x and IE6 */
* html #nav li li {float:left;}




#nav li a {display:block; float:left;
           color:#FFFFFF; margin:0 25px 0 10px;
           height:auto; line-height:25px;
           text-decoration:none; white-space:normal;
}

/*item in white box*/
#nav li li a {height:auto; line-height:20px; float:none;
              background-color:#0072bc;
              margin:0 0 0 0;
              border:1px solid #000;
              /*border-color:#ace #79b #68a #bde;*/
              border-color:#0072bc;
              border-width:3px 3px 3px 3px; background:#0072bc;
    }

#nav li:hover {position:relative; z-index:300; }

/*white box*/
#nav li:hover ul {left:4em; top:0px; right:-10px; background-color:#0072bc;}

/* another hack for IE5.5 and IE6 */
* html #nav li:hover ul {left:10px;}


#nav ul {position:absolute;
        left:-9999px;
        top:-9999px;
}
/* yet another hack for IE5.x and IE6 */
* html #nav ul {width:1px;}

/* it could have been this simple if all browsers understood */
/* show next level */
#nav li:hover li:hover > ul {left:-15px; margin-left:100%; bottom:-7px; top:auto;}
/* keep further levels hidden */
#nav li:hover > ul ul {position:absolute; left:-9999px; top:-9999px; width:auto;}
/* show path followed */

#nav li:hover > a {text-decoration:underline; }


/* but IE5.x and IE6 need this lot to style the flyouts and path followed */
/* show next level */
#nav li:hover li:hover ul,
#nav li:hover li:hover li:hover ul,
#nav li:hover li:hover li:hover li:hover ul,
#nav li:hover li:hover li:hover li:hover li:hover ul
{left:-15px; margin-left:100%; bottom:-7px; top:auto;}

/* keep further levels hidden */
#nav li:hover ul ul,
#nav li:hover li:hover ul ul,
#nav li:hover li:hover li:hover ul ul,
#nav li:hover li:hover li:hover li:hover ul ul
{position:absolute; left:-9999px; top:-9999px;}

/* show path followed */
#nav li:hover a,
#nav li:hover li:hover a,
#nav li:hover li:hover li:hover a,
#nav li:hover li:hover li:hover li:hover a,
#nav li:hover li:hover li:hover li:hover li:hover a,
#nav li:hover li:hover li:hover li:hover li:hover li:hover a
{text-decoration:underline; color:#ebb81c;}

/* hide futher possible paths */
#nav li:hover li a,
#nav li:hover li:hover li a,
#nav li:hover li:hover li:hover li a,
#nav li:hover li:hover li:hover li:hover li a,
#nav li:hover li:hover li:hover li:hover li:hover li a
{text-decoration:none; color:#FFFFFF;}
