/* HORIZONTAL FREESTYLE MENU LAYOUT */

.MainMenu
{
    list-style: none;
    color:#ffffff;
    display:inline;
    font-weight:bold;
    padding:0;
    margin:0;
}

.MainMenu li {
 float: left;
 display: block;
 position: relative;
 margin-right: -1px;
 width:142px;
 text-align:center;
 margin-left:0px;
}

/* All <ul> tags in the menu including the first level */
.MainMenu  ul {
 margin: 0;
 padding: 0;
 list-style: none;
}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.MainMenu ul {
 display:none; /*none*/
 position: absolute;
 top: 1.0em; 
 margin-top: 11px; /* I'm using ems and px to allow people to zoom their font */
 left: -1px;
 width:162px;
}

.MainMenu ul .MenuItem {
 float: none;
 display:block;
 margin:0;
 margin-bottom: 0px;
 background:url('Images/menu_dd.png') repeat center; 
 height:20px;
 width:162px;
}

.MainMenu ul .MenuItemIE6 {
 float: none;
 display:block;
 margin:0;
 margin-bottom: 0px;
 background:url('Images/menu_dd.gif') repeat center; 
 height:20px;
 width:162px;
}

.MainMenu ul .Separator {
 float: none;
 display:block;
 margin:0;
 margin-bottom: 0px;
 background:url('Images/menu_dd.png') repeat center; 
 height:7px;
 width:162px;
}

.MainMenu ul .SeparatorIE6 {
 float: none;
 display:block;
 margin:0;
 margin-bottom: 0px;
 background:url('Images/menu_dd.gif') repeat center; 
 height:7px;
 width:162px;
}

.MainMenu ul .BottomItem {
 float: none;
 display:block;
 margin:0;
 margin-bottom: -1px;
 background:url('Images/menu_dd.png') repeat bottom; 
 height:15px;
 width:162px;
}

.MainMenu ul .BottomItemIE6 {
 float: none;
 display:block;
 margin:0;
 margin-bottom: -1px;
 background:url('Images/menu_dd.gif') repeat bottom; 
 height:15px;
 width:162px;
}

.MainMenu ul li a
{    
    margin-left:15px;
    text-align:left;
}

/*
 All menu items (<li> tags). 'float: left' lines them up horizontally, and they are
 positioned relatively to correctly offset submenus. Also, they have overlapping borders.
*/


/* Items in submenus - override float/border/margin from above, restoring default vertical style */


.MainMenu ul>li:last-child {
 margin-bottom: 1px; /* Mozilla fix */
}

/* Links inside the menu */
.MainMenu a {
 display: block;
 padding: 3px;
 color: #ffffff;
 text-decoration: none;
}

/* Lit  items: 'hover' is mouseover, 'highlighted' are parent items to visible menus */
.MainMenu a:hover, .MainMenu a.highlighted:hover, .MainMenu a:focus {
 color: #FFF;
 text-decoration:underline;
}
.MainMenu a.highlighted {
 color: #FFF;
 text-decoration:underline;
}

/*
 If you want per-item background images in your menu items, here's how to do it.
 1) Assign a unique ID tag to each link in your menu, like so: <a id="xyz" href="#">
 2) Copy and paste these next lines for each link you want to have an image:
    .MainMenu a#xyz {
      background-image: url(out.gif);
    }
    .MainMenu a#xyz:hover, .MainMenu a.highlighted#xyz, .MainMenu a:focus {
     background-image: url(over.gif);
    }
*/

/* Only style submenu indicators within submenus. */
.MainMenu a .subind {
 display: none;
}
.MainMenu ul a .subind {
 display: block;
 float: right;
}


/* 'Escaped Comment' hack for horizontal menubar width in IE5/Mac */
.MainMenu a {
 float: left;
}
.MainMenu ul a {
 float: none;
}
/* \*/
.MainMenu a {
 float: none;
}
/* */


/*
 HACKS: IE/Win:
 A small height on <li> and <a> tags and floating prevents gaps in menu.
 * html affects <=IE6 and *:first-child+html affects IE7.
 You may want to move these to browser-specific style sheets.
*/
*:first-child+html .MainMenu ul li {
 float: left;
 width: 100%;
}

* html .MainMenu ul li {
 float: left;
 height: 1%;
}
* html .MainMenu ul a {
 height: 1%;
}
/* End Hacks */