ul#menu-bar /*top level menu*/
{
  behavior:menu-bar;
  flow: horizontal;
  //font: 8pt;
  font:system;
  color:#aaaaad;//f6efef; 
 
  margin:0; 
  padding-left:0;  
  background-color: #3C3C51 #3C3C51 #4e4e70 #4e4e70;
  background-clip:padding-box;

}

ul#menu-bar:focus {}

ul#menu-bar > li /* menu item in menu bar */ 
{  
  padding:2 6 4 6;
  margin:1 1 -2 1; 
  white-space:nowrap;
  width:max-intrinsic;
  display:block;  
  border: solid 1px #3C3C51;
  background-color: #3C3C51 #3C3C51 #4e4e70 #4e4e70;   
  border-bottom:0;  
}
ul#menu-bar > li  menu {margin-top:0px;}
ul#menu-bar > li:current, /* current menu item in menu bar */ 
ul#menu-bar > li:hover
{  
  border:solid 1px transparent;
  border-bottom:0;
  color:#f6efef; 
  background-image:url(images/menubar-hover.png);
  background-repeat:expand;
  background-position: 5 5 5 5;
}

ul#menu-bar menu table td li
{
  width:max-intrinsic;
  display:block;
  padding:2px 8px;
}  

 ul#menu-bar menu table td:hover 
 { 
  
  background-color: #4e4e70; 
  border-radius:3px;
  opacity:0.95;
 
}   

  
 menu.table caption
  {
   padding:2px;
   font-size:8.5pt;
   background-color: threedlightshadow;
   color: threedshadow;
 }

ul#menu-bar menu 
{ 
  margin-top:10px; 
  hit-margin:10px 0 0 0;
}
ul#menu-bar menu menu
{
  margin:0; 
  hit-margin:0; 
}

button[type="menu"]
{
  behavior:button popup-menu; 
}
button[type="menu"]:owns-popup /* button when popup is shown */
{
	background-image:url(theme:button-pressed); /* ?? */  
}

menu  /* popup menu */
{
  font: system;
  behavior:menu; /*is a menu*/
  flow: vertical;
  display:none;  
  padding:1px;
  max-width:max-intrinsic; 
  border:1px solid threedshadow; 
  margin:0 1px; /* to offset it from parent li */ 
 
  //background: transparent;/#fff; 
  
  
  
   //background-color:#4e4e70 #4e4e70  #3C3C51 #4e4e70 ;
  
  
  
  
   //background-image:url(images/up.png);// repeat-x;

  //background-image:url(images/leftback10.PNG);	
		//	background-image:url(images/menu-back25.png);//leftback10.PNG);	
		    background-color: #fff;//white;
	
  
   
		  background-repeat:strech;
  
  
  
  
 // opacity:0.88;  
}

menu menu /* secondary popup menu */
{
  max-width: max-intrinsic; 
}

/* menu item in popup menus */
menu li 
{  
  width:*;
  padding-left:24px; /* room for icon */
  padding-right:12px; /* room for the arrow */
  padding-top:4px; 
  padding-bottom:4px;  
  foreground-repeat: no-repeat;
  foreground-position: 2px 50%;
  
 // background-image:url(images/leftback10.PNG);	
  //background-position: 2px 50%;
  
  //color:transparent;//windowtext;
  color:#000;//white;
}

menu li:disabled { 
//color:graytext;
 color:#949495;
 foreground-image: none; }

/* accesskey label (span) */
menu li span.accesskey
{
  display:inline-block;
  margin-left:*; /* spring to attach it to the right */
  padding-left:1em;
  color:threedshadow;
}

menu li:current span.accesskey
{
  color:#FFD700;
}

/* menu with single <menu> inside - submenu */
menu li:has-child-of-type(menu)
{
  foreground-image:url(stock:arrow-right); /* that arrow */
  foreground-repeat: no-repeat;
  foreground-position: 100% 50%;
}

/* current menu item */
 //ul#menu-bar menu table td:current ,
menu li:current
{ 
  background-color: #4e4e70; 
  border-radius:3px;
  opacity:0.95;
  color:white;//highlighttext;  
}

/* menu separator */
menu hr 
{
  margin:2px; 
}

/* radio menu item */
menu li[type="radio"]
{ 
	behavior:radio; 
	background-repeat:no-repeat; 
	background-position:3px 50%;
	background-image:url(theme:radio-normal);  
}
menu li[type="radio"]:hover
{ 
	background-image:url(theme:radio-hover);  
}
menu li[type="radio"]:active
{ 
	background-image:url(theme:radio-pressed);  
}
menu li[type="radio"]:disabled
{ 
	background-image:url(theme:radio-disabled);  
}
menu li[type="radio"]:checked
{ 
	background-image:url(theme:radio-checked-normal);  
}
menu > li[type="radio"]:checked:hover
{ 
	background-image:url(theme:radio-checked-hover);  
}
menu li[type="radio"]:checked:active
{ 
	background-image:url(theme:radio-checked-pressed);  
}
menu li[type="radio"]:checked:disabled
{ 
	background-image:url(theme:radio-checked-disabled);  
}

/* checkmark menu item */
menu li[type="check"]
{ 
	behavior:check; 
	background-repeat:no-repeat; 
	background-position:3px 50%;
	background-image:url(theme:check-normal);  
}
menu li[type="check"]:hover
{ 
	background-image:url(theme:check-hover);  
}
menu li[type="check"]:active
{ 
	background-image:url(theme:check-pressed);  
}
menu li[type="check"]:disabled
{ 
	background-image:url(theme:check-disabled);  
}
menu li[type="check"]:checked
{ 
	background-image:url(theme:check-checked-normal);  
}
menu li[type="check"]:checked:hover
{ 
	background-image:url(theme:check-checked-hover);  
}
menu li[type="check"]:checked:active
{ 
	background-image:url(theme:check-checked-pressed);  
}
menu li[type="check"]:checked:disabled
{ 
	background-image:url(theme:check-checked-disabled);  
}

