#main-menu {margin-top: 10px; float: left; height:20px; position:relative; z-index:100;}

/* The menu styling */
/* Remove the padding, margins and bullets from the lists */
.menu, .menu ul {list-style-type:none; padding:0; margin:0; font-family:arial, sans-serif;}

/* Set up the top level list items and float left to place inline */
.menu li.top {display:block; float:left; position:relative;}

/* Style and position the table so it takes no part in the menu function. The font size is necessary for IE5.5 */
.menu table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}

/* Default top link link styling */
.menu li.top a.top_link {display:block; float:left; height:25px;}
.menu li.top a span {position:absolute; left:-9999px; top:0; z-index:0; font-size:10px;} /* move the link text off screen */

/* pre-load the hover images into the lists */
.menu li.m1 {width:75px; background:url(../img/menu_lineup.gif) 0 -25px no-repeat;}
.menu li.m2 {width:157px; background:url(../img/menu_warranty.gif) 0 -25px no-repeat;}
.menu li.m3 {width:81px; background:url(../img/menu_offer.gif) 0 -25px no-repeat;}
.menu li.m4 {width:90px; background:url(../img/menu_actual.gif) 0 -25px no-repeat;}
.menu li.m5 {width:97px; background:url(../img/menu_representative.gif) 0 -25px no-repeat;}
.menu li.m6 {width:108px; background:url(../img/menu_owners.gif) 0 -25px no-repeat;}
.menu li.m7 {width:58px; background:url(../img/menu_about.gif) 0 -25px no-repeat;}

/* set up the normal unhovered images in the links */
.menu li a#h1 {width:75px; background:url(../img/menu_lineup.gif) no-repeat;}
.menu li a#h2 {width:157px; background:url(../img/menu_warranty.gif) no-repeat;}
.menu li a#h3 {width:81px; background:url(../img/menu_offer.gif) no-repeat;}
.menu li a#h4 {width:90px; background:url(../img/menu_actual.gif) no-repeat;}
.menu li a#h5 {width:97px; background:url(../img/menu_representative.gif) no-repeat;}
.menu li a#h6 {width:108px; background:url(../img/menu_owners.gif) no-repeat;}
.menu li a#h7 {width:58px; background:url(../img/menu_about.gif) no-repeat;}

/* make the links transparent on hover so that the hover images in the lists show through (no flicker) */
.menu li a#h1:hover, .menu li:hover a#h1,
.menu li a#h2:hover, .menu li:hover a#h2,
.menu li a#h3:hover, .menu li:hover a#h3,
.menu li a#h4:hover, .menu li:hover a#h4,
.menu li a#h5:hover, .menu li:hover a#h5,
.menu li a#h5:hover, .menu li:hover a#h6,
.menu li a#h6:hover, .menu li:hover a#h7 {background:transparent;}

/* Style the list OR link hover. Depends on which browser is used */
.menu a:hover {visibility:visible;} /* for IE6 */
.menu li:hover {position:relative; z-index:200;} /* for IE7 */

/* keep the 'next' level invisible by placing it off screen. */
.menu ul, 
.menu :hover ul ul, 
.menu :hover ul :hover ul ul,
.menu :hover ul :hover ul :hover ul ul,
.menu :hover ul :hover ul :hover ul :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0;}

/* set up the first drop down sub level */
.menu :hover ul.sub {left:0; top:25px; background: #6b5b5b; padding:3px 0 7px 0; white-space:nowrap; width:133px; height:auto;}
.menu :hover ul.sub li {display:block; height:20px; position:relative; float:left; width:130px;}
.menu :hover ul.sub li a {font: .75em tahoma, arial, sans-serif; display:block; height:20px; width:133px; line-height:20px; text-indent:10px; color:#fff; text-decoration:none; }
.menu :hover ul.sub li a.fly {background:#6b5b5b url(../img/arrow.gif) 120px 7px no-repeat;}
.menu :hover ul.sub li a:hover {background:#7d6a6a; color:#fff;}
.menu :hover ul.sub li a.fly:hover {background:#7d6a6a url(../img/arrow.gif) 120px 7px no-repeat; color:#fff;}
.menu :hover ul li:hover > a.fly {background:#7d6a6a url(../img/arrow.gif) 120px 7px no-repeat; color:#fff;} 

/* set up the second drop down sub level */
.menu :hover ul.sub li ul li a:hover {background:#8d7b7b; color:#fff;}

/* set up the flyout levels when hovering */
.menu :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul :hover ul :hover ul
{left:133px; top:-3px; background: #7d6a6a; padding:3px 0 7px 0; white-space:nowrap; width:133px; height:auto; z-index:300;}


/* Draw a dotted line behind 'All models' item in first drop down */
.menu li.m1 ul.sub li:first-child a{
  width: 133px; 
  border-bottom: 1px dotted #8f7c7c;
}

.menu li.m1 ul.sub li ul li:first-child a{
  width: 133px; 
  border-bottom: none;
}
