﻿#nav, 
#nav ul {float:right;padding:0; margin:0; list-style:none; font: 12px verdana, sans-serif; position:relative; z-index:100;}
#nav {width:680px; height:51px;top:35px;padding-right:5px; position:relative; z-index:100;}

#nav a,a:visited,a:active,a:hover
{
    font: 12px verdana,sans-serif;
}

#nav table {border-collapse:collapse;}
#nav li {float:left;text-align:center;}
#nav li.last {float:left;border:0px;text-align:center;}

#nav li li {float:left;width:150px;background:#2764aa;border-bottom:1px solid #fff;border-right:1px solid #fff;border-left:1px solid #fff;}
/* a hack for IE5.x and IE6 */
#nav li a li {float:left;}

#nav li a {width:auto;display:block;position:relative; float:left; color:#fff; text-align:center;height:32px; background:url(../images/nav-border.gif) right no-repeat;padding-top:8px;padding-bottom:11px;padding-left:15px;padding-right:15px; text-decoration:none; }
#nav li.hype a {width:auto;display:block; float:left; color:#fff; text-align:center;height:26px; background:url(../images/nav-border.gif) right no-repeat;position:relative;padding-top:14px;padding-left:15px;padding-right:15px; text-decoration:none; }
#nav li.last a {width:auto;display:block; float:left; color:#fff; text-align:center;height:32px; background:none;position:relative;padding-top:8px;padding-left:15px;padding-right:15px; text-decoration:none;background:none; }

#nav li.selected a {width:auto;display:block; float:left; color:#ffe019; text-align:center;height:32px; position:relative;padding-top:8px;padding-bottom:11px;padding-left:15px;padding-right:15px; text-decoration:none; background:url(../images/nav-border.gif) right no-repeat;}
#nav li.hypeselected a {width:auto;display:block; float:left; color:#ffe019; text-align:center;height:26px; background:url(../images/nav-border.gif) right no-repeat;position:relative;padding-top:14px;padding-left:15px;padding-right:15px; text-decoration:none; }
#nav li.lastselected a {width:auto;display:block; float:left; color:#ffe019; text-align:center;height:32px; background:none;position:relative;padding-top:8px;padding-bottom:11px;padding-left:15px;padding-right:15px; text-decoration:none; background:none;}

#nav li li a, #nav li.selected li a {float:left;position:relative;height:auto;background:#2764aa;color:#FFF;text-align:left;top:0px;padding-top:5px;padding-bottom:5px;padding-left:10px;padding-right:10px;margin:0px;font-size:11px;display:block;width:130px;}
#nav li.last li a {float:left;background:#2764aa;color:#FFF;text-align:left;padding-left:10px;padding-right:10px;margin:0px;display:block;width:130px;}

#nav li:hover {position:relative; z-index:100;}
#nav a:hover {position:relative; z-index:100;  color:#ffe019; border-left:0px solid #843;}
#nav li:hover > a {border-left:0px solid #843; color:#ffe019;}

#nav :hover  ul {left:0; top:51px; border-left:0px solid #843; width:150px; z-index:300;}
#nav a:hover ul {left:-1px;}

#nav ul {position:absolute; left:-9999px; top:-9999px;}

/* it could have been this simple if all browsers understood */
/* show next level */
#nav li:hover li:hover > ul {left:0; margin-left:100%; top:0;}
/* keep further levels hidden */
#nav li:hover > ul ul {position:absolute; left:-9999px; top:-9999px; width:auto;}
/* show path followed */
#nav li:hover li:hover > a {color:#ffe019;font-size:11px;}
#nav li.selected:hover > a {color:#ffe019;}
#nav li.last:hover > a {color:#ffe019;}
#nav li.last a:hover {position:relative; z-index:100; color:#ffe019; }
#nav li.selected a:hover {position:relative; z-index:100; color:#ffe019; }


#nav li a:hover ul li a:hover {color:#ffe019;}

/* but IE5.x and IE6 need this lot to style the flyouts*/
/* show next level */
#nav a:hover a:hover ul,
#nav a:hover a:hover a:hover ul,
#nav a:hover a:hover a:hover a:hover ul,
#nav a:hover a:hover a:hover a:hover a:hover ul
{left:100%; top:0;}

/* keep further levels hidden */
#nav a:hover ul ul,
#nav a:hover a:hover ul ul,
#nav a:hover a:hover a:hover ul ul,
#nav a:hover a:hover a:hover a:hover ul ul
{position:absolute; left:-9999px; top:-9999px;}
