/* ================================================================
This copyright notice must be kept untouched in the stylesheet at
all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/pro_variable4.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.
=================================================================== */
#nav {
float:left;
font:10px arial,sans-serif;
height:36px;
list-style:none outside none;
margin:auto;
padding:0;
position:relative;
right:50%;
width:100%;
z-index:200;
}

#nav ul {padding:0; margin:0; list-style:none; float:left; background:#ccc; border-top:1px solid #fff;}

#nav li {float:left;}
#nav li li {float:none; border-left:1px solid #fff; border-right:1px solid #666;}
#nav li.last {border-bottom:1px solid #666;}
/* a hack for  IE6 */
* html #nav li li {float:left;}

#nav li a {                                             /*top level menu settings - no hover*/

display:block;
float:left;
color:#000;
height:36px;
padding:0 25px 0 5px;
line-height:36px;
text-decoration:none;
white-space:nowrap;
font-weight:bold;
}

#nav li:hover > a {                                         /*top level menu hover color*/
color:#FFF;
}
#nav li.cssplay_hover a {                                   /*top level menu hover color IE*/
color:#FFF;
}
#nav li:hover {position:relative; z-index:300;}             /*top level menu hover*/
#nav li.cssplay_hover {position:relative; z-index:300;}     /*top level menu hover IE*/

#nav li li a {                                              /*second order level menu color and background color no hover*/
color:#000;
/*background-color:#0241c1;*/
background-image:  url(menuRowGrad.png);
bacground-repeat:repeat-x;
}
#nav li li:hover > a {                                      /*second order level menu hover color and background color */
color:#fff;
background-color:#333;
}
#nav li li.cssplay_hover a {                                /*second order level menu hover color  and background color IE */
color:#fff;
/*background-color:#0241c1;*/
background-image:  url(menuRowGrad.png);
}
#nav li li a {display:block; height:20px; line-height:20px; float:none; padding:0 25px 0 5px; font-weight:normal; letter-spacing:1px;}  /*second order menu item */



/*main menu item */
#nav li a.down {background:url(down.gif) no-repeat right center;}   /*top level menu down arrow*/


#nav li li a.fly {                                                  /*second order menu item / fly out / adds right arrow and background color*/
/*background:url(fly.gif) no-repeat right center;*/
/*background-color:white;*/
background-image:  url(flyRight.png);
background-position:right center;
}









#nav li:hover ul {left:0; top:33px; z-index:500;}
#nav li.cssplay_hover ul {left:0; top:33px; z-index:500;}

#nav ul {position:absolute; left:-9999px; top:-9999px;}
* html #nav ul {width:2px;}
/* it could have been this simple if all browsers understood */
/* show next level */
#nav li:hover li:hover > ul {left:-5px; margin-left:100%; top:-1px; z-index:500;}
/* keep further levels hidden */
#nav li:hover > ul ul {position:absolute; left:-9999px; top:-9999px; width:auto; }  /*hides second order and third level menus */
/* show path followed */




/* but IE5.x and IE6 need this lot to style the flyouts*/
#nav li.cssplay_hover li.cssplay_hover a,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover a,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover a,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover a,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover a
{color:#fff; background-color:#aaa;}

#nav li.cssplay_hover li.cssplay_hover li a,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover li a,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover li a,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover li a,
{color:#633; background-color:#ddd;}

/* show next level */
#nav li.cssplay_hover li.cssplay_hover ul,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover ul,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover ul,
#nav li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover li.cssplay_hover ul
{left:100%; margin-left:-5px; top:-1px;}

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

<!--[if lte IE 7]>



/* ================================================================
This copyright notice must be kept untouched in the stylesheet at
all times.

The original version of this stylesheet and the associated (x)html
is available at http://www.cssplay.co.uk/menus/pro_variable4.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.
=================================================================== */
#nav li li a {behavior: expression(this.style.width=this.parentNode.parentNode.offsetWidth -32 + 'px', this.style.behavior=null);} /* minus link padding 30px + 2px for ul border width */
* html #nav li {behavior: expression(this.onmouseover=new Function("this.className+=' cssplay_hover'"),this.onmouseout=new Function("this.className = this.className.replace('cssplay_hover','')"),this.style.behavior=null);}
<![endif]-->
