.menu {
position: relative;
margin:0px; /* this page only */
}

/* remove all the bullets, borders and padding from the default list styling */
.menu ul {
position:relative;
z-index:500;
padding:0;
margin:0;
list-style-type:none;
width:140px;
}
/* style the list items */
.menu li {
background:#09418d;
/* for IE7 */
float:left;
}
.menu li.sub {background:#09418d url(../design/images/sub.gif) no-repeat right center; } 

/* get rid of the table */
.menu table {position:absolute; border-collapse:collapse; top:0; left:0; z-index:100; font-size:1em;}

/* style the links */
.menu a, .menu a:visited {
display:block; 
text-decoration:none;
line-height:20px;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 3px;
padding-right: 5px;
width:139px;
color:#fff;
border:1px solid #ccc;
border-width:1px 1px 1px 1px;
}

.menu a.pp, .menu a.pp:visited {
display:block; 
font-weight:bold;
text-decoration:none;
line-height:20px;
padding-top: 3px;
padding-bottom: 3px;
padding-left: 3px;
padding-right: 5px;
width:139px;
color:#fff;
border:1px solid #ccc;
border-width:0px 0px 1px 0px;
margin: 0px;
}


/* hack for IE5.5 */
* html .menu a, * html .menu a:visited {width:140px; w\idth:139px; font-weight:bold;}
/* style the link hover */
* html .menu a:hover {color:#fff; background:#0f5aaf; position:relative;}

/*pentru meniu principal*/
* html .menu a.pp, * html .menu a.pp:visited {width:140px; w\idth:139px; font-weight:bold;}
* html .menu a.pp:hover {color:#fff; font-weight:bold; background:#0f5aaf; position:relative;}

.menu li:hover {position:relative;}

/* For accessibility of the top level menu when tabbing */
.menu a:active, .menu a:focus {color:#fff; background:#0f5aaf;}
.menu a.pp:active, .menu a.pp:focus {color:#fff; background:#0f5aaf;}

/* retain the hover colors for each sublevel IE7 and Firefox etc */
.menu li:hover > a {color:#fff; background:#0f5aaf}
.menu li:hover > a.pp {color:#fff; background:#0f5aaf}
 
/* hide the sub levels and give them a positon absolute so that they take up no room */
.menu li ul {
visibility:hidden;
position:absolute;
top:-31px;
/* set up the overlap (minus the overrun) */
left:116px;
/* set up the overrun area */
padding:30px;
/* this is for IE to make it interpret the overrrun padding */
background:transparent url(../design/images/transparent.gif);

}

/* for browsers that understand this is all you need for the flyouts */
.menu li:hover > ul {visibility:visible;}


/* for IE5.5 and IE6 you need to style each level hover */

/* keep the third level+ hidden when you hover on first level link */
.menu ul a:hover ul ul{
visibility:hidden;
}
/* keep the fourth level+ hidden when you hover on second level link */
.menu ul a:hover ul a:hover ul ul{
visibility:hidden;
}
/* keep the fifth level hidden when you hover on third level link */
.menu ul a:hover ul a:hover ul a:hover ul ul{
visibility:hidden;
}

/* make the second level visible when hover on first level link */
.menu ul a:hover ul {
visibility:visible;
}
/* make the third level visible when you hover over second level link */
.menu ul a:hover ul a:hover ul{ 
visibility:visible;
}