/* HORIZONTAL FREESTYLE MENU LAYOUT */

/* All <ul> tags in the menu including the first level */
.menulist, .menulist  ul {
 margin: 0;
 padding: 0;
 list-style: none;
}

/* Submenus (<ul> tags) are hidden and absolutely positioned downwards from their parent */
.menulist ul {
 display: none;
 position: absolute;
 top: 0; margin-top: 32px; /* I'm using ems and px to allow people to zoom their font */
 left: 2px;
 width: 175px;
}

/* Second and third etc. level submenus - position across from parent instead */
.menulist ul ul {
 top: 0px; margin-top: 0;
 left: 173px;
}

/*
 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.
*/
.menulist li {
 float: left;
 position: relative;
 background: #003366;
 margin-right: -1px;
}

/* Items in submenus - override float/border/margin from above, restoring default vertical style */
.menulist ul li {
 float: none;
 margin: 0;
 font-size: 90%;
 border-bottom: 1px solid #7F99B2;
}


.menulist ul>li:last-child {
 margin-bottom: 1px; /* Mozilla fix */
 border-bottom: none;
}

/* Links inside the menu */
.menulist a, .menulist a:link {
 display: block;
 color: white;
 text-decoration: none;
/* padding: 0px 10px 6px 10px;*/
}

.menulist a.highlighted {
 color: #FFF;
}

/*
 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:
    .menulist a#xyz {
      background-image: url(out.gif);
    }
    .menulist a#xyz:hover, .menulist a.highlighted#xyz, .menulist a:focus {
     background-image: url(over.gif);
    }
*/

/* Only style submenu indicators within submenus. */
.menulist a .subind {
 display: none;
}
.menulist ul a .subind {
 display: block;
 float: right;
}


/*
 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 .menulist ul li {
 float: left;
 width: 100%;
}

* html .menulist ul li {
 float: left;
 height: 1%;
}
* html .menulist ul a {
 height: 1%;
}
/* End Hacks */


#li_home { background-image: url("/images/menu/menu_home.gif"); }
#li_about_us { background-image: url("/images/menu/menu_about.gif"); }
#li_europe_council { background-image: url("/images/menu/menu_council.gif"); }
#li_executive_group { background-image: url("/images/menu/menu_executive.gif"); }
#li_exchange { background-image: url("/images/menu/menu_exchange.gif"); }
#li_research { background-image: url("/images/menu/menu_research.gif"); }
#li_education_training { background-image: url("/images/menu/menu_education.gif"); }
#li_image { background-image: url("/images/menu/menu_image.gif"); }
#li_recruitment { background-image: url("/images/menu/menu_recruitment.gif"); }

#li_home a { width: 65px; }
#li_about_us a { width: 84px; }
#li_europe_council a { width: 116px; }
#li_executive_group a { width: 124px; }
#li_exchange a { width: 84px; }
#li_research a { width: 80px; }
#li_education_training a { width: 148px; }
#li_image a { width: 65px; }
#li_recruitment a { width: 101px; }

#li_home,
#li_about_us,
#li_europe_council,
#li_executive_group,
#li_exchange,
#li_research,
#li_education_training,
#li_image,
#li_recruitment { text-indent: -9660px; display: block; }

#li_home ul,
#li_about_us ul,
#li_europe_council ul,
#li_executive_group ul,
#li_exchange ul,
#li_research ul,
#li_education_training ul,
#li_image ul,
#li_recruitment ul { text-indent: 0; }

#listMenuRoot li { height: 32px; line-height: 32px;  }
#listMenuRoot ul li { border-bottom: 1px #7F99B2 solid; border-top: medium none; }
#listMenuRoot li li a { width: 155px; padding: 0 12px; }
#listMenuRoot li.selected { background-position: left -57px; }

.menulist a:hover, .menulist a.highlighted:hover, .menulist a:focus {
 color: #FFF;
 text-decoration: underline;
}


.hasAccessGroups a { background-image: url("/images/padlock.gif"); background-position: 3px 12px; background-repeat: no-repeat; }
