/*********************************************
  CPG Dragonfly™ CMS
  ********************************************
  Copyright © 2004 - 2009 by CPG-Nuke Dev Team
  http://dragonflycms.org

  Dragonfly is released under the terms and conditions
  of the GNU GPL version 2 or any later version

  $Source: /cvs/themes/reDesign/style/cpgmm.css,v $
  $Revision: 1.24 $
  $Author: estlane $
  $Date: 2009/02/07 16:07:26 $
**********************************************/

/*    ------  Basic style ------    */


#menu li {
  background: transparent url('../images/backgrounds/header/menu/arrow_down.gif') no-repeat top right;
}
#menu li:hover {
  background-position: right 1px;
}
/* Current category */
/*some is in style.css already*/
#menu li.currentcategory a {
  margin-bottom: 0;/*border instead of margin*/
  }
#menu li.currentcategory:hover a {
  margin-bottom: 0;/*border instead of margin*/
  border-bottom: 1px solid #BEBEBE;
}
#menu li.currentcategory li a, #menu li.currentcategory:hover li a {
  border-bottom: 0;
}

/* Current submenu item */
#menu li.currentcategory li.current {
  background-color: #EDFBD9;
}
#menu:last-child li.currentcategory li.current {
  background-color: rgba(237, 251, 217, 0.5); /*For browsers that support alpha channel*/
}

#menu li.currentcategory li.current:hover {
  background-color: #6B819A;
}
#menu:last-child li.currentcategory li.current:hover {
  background-color: rgba(107, 129, 154, 0.5); /*For browsers that support alpha channel*/
}

/* Submenu */
#menu li ul {
  position: absolute;
  z-index: 10;
  visibility: hidden;
  margin: 0;
  padding: 2px;
  width: 160px; /* width of the dropdown lists*/
  border: 1px solid #BEBEBE;
  /*background-image: none;
  background-color: #FFF;*/
  background: #FFF url('../images/backgrounds/header/menu/submenu_bg.gif') repeat-y 0px 0px;
  line-height: normal;
  text-align: left;
}

/* Submenu's item */
#menu li ul li, #menu li ul li:hover {
  font: normal 12px Arial, Tahoma, sans-serif;
  width: 100%;
  position: relative;
  background-image: none;
  margin: 0; /*for no effect from horizontal menu*/
  padding: 0; /*for no effect from horizontal menu (give padding to A instead) */
  border: 0;
  text-align: left;
  line-height: 2.3em;
  height: 2.3em;
  text-shadow: #EFEFEF 0px 1px 2px;
}
#menu li ul li {
  background-color: transparent;/*Override horizontal menu's bg*/
  color: #000;
}

/* Submenu's item while hovering*/
#menu li ul li:hover {
  background-color: transparent;
  color: transparent;
  text-shadow: #000 0px 1px 2px;
}

/* Browsers that handle CSS3 */
#menu:last-child li ul li:hover {
  background-color: rgba(81, 98, 117, 0.5); /*For browsers that support alpha channel*/
}

/* If item has submenu
 (this is for the triangular right-pointing arrow on the end of a admincategory link) */
#menu li ul li a.submenu, #menu li ul li:hover li a.submenu {
  background: url('../images/backgrounds/header/menu/arrow_right.gif') no-repeat 98% top;
}
#menu li ul li:hover a.submenu, #menu li ul li li:hover a.submenu {
  background-position: 98% bottom;
}

/*Default color*/
#menu li:hover li a, #menu li li a, #menu li li:hover li a, #menu li li li a,
#menu li li:hover li:hover li a, #menu li li li li a {
  color: #000;
  border: 0;
}
/*Hover color*/
#menu li li:hover a, #menu li li li:hover a, #menu li li:hover li:hover li:hover a {
  color: #000;
  font-weight: bold;
  border: 0;
}

#menu li ul li a {
  display: block;
  margin: 0;
  padding: 0;
  position: relative;/*just to allow z-index*/
  z-index: 2;/*override the adminicon or other*/
  padding-left: 24px; /* width of #menu li ul li span + some extra padding */
  border: 0;
  height: 2.3em; /* we can't use inherit because ie6 is dumb */
  line-height: 2.3em;
  text-align: left;
  font-weight: inherit;
}



/* next 2 classes control the small images/symbols for categories, list links*/
#menu li ul li span {
  float: left;
  display: block;
  position: relative;/*just to allow z-index*/
  z-index: 1;/*behind the menulink itself, makes it clickable*/
  width: 12px;/*same as adminicon*/
  height: inherit !important;/* if no content */
  line-height: inherit !important;
  margin: 0px 0px 0px 3px; /* top margin must be line-height-12 or sth */
  background-position: center left !important;
  padding: 0;
  text-align: center;
  font: bold 11px Tahoma, Arial, sans-serif;
  color: #5F5F5F;
}
#menu li ul li:hover span {
  color: #FFF;
}
/*admin horizontal menu dot*/
#menu li b {
  font: bold 11px Tahoma, Arial, sans-serif;
  display: none;/*disable*/
}




#menu li ul li.disabled, #menu li ul li.hidden {
  font-style: italic;
}

/* Submenu's item border */
/*#menu li ul li, #menu li ul li:hover {
  border-top: 1px solid #FF0000;
}*/
/* Submenu's first item (doesn't comply with admin menu)*/
/*#menu li ul li.first, #menu li ul li.first:hover {
  border-top-width: 0;
}*/


/* fix the position */
#menu ul li ul li ul {
  top: 0;
  left: 100%;
}

/* simulate child selector for IE */
div#menu li:hover ul, #menu li:hover li:hover ul, #menu li:hover li:hover li:hover ul {
  visibility: visible;
}

#menu li:hover li ul, #menu li:hover li:hover li ul, #menu li:hover li:hover li:hover li ul {
  visibility: hidden;
}

/* do the normal show, with increased specificity */
#menu ul#menuList li:hover > ul {
  visibility: visible;
}
