﻿#menuwrapper li {
    z-index: 999999;
}

/* We remove the margin, padding, and list style of UL and LI components */
#menuwrapper ul, #menuwrapper ul li{
    margin:0px;
    padding:0px;
    list-style:none;
}

/* We apply background color and border bottom white and width to 150px */
#menuwrapper ul li{
	/*border-top:solid 1px #dddddd;
    border-bottom:solid 1px #dddddd;*/
	/*border-left:solid 1px #dddddd;
	border-right:solid 1px #dddddd; */
	margin-bottom:-1px;
	border:1px solid #dddddd;
   /* width:153px; */
	cursor:pointer;
	/* margin:0px; */
}

#menuwrapper ul li:first-child{
	border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

#menuwrapper ul li:last-child{
	margin-bottom:0;
	border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

/* We apply the background hover color when user hover the mouse over of the li component */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li:hover,
#menuwrapper ul li.iehover{
    position:relative;
}

/* We apply the link style */
#menuwrapper ul li a{
    padding:3px 5px;
    color:#000000;
    display:block;
    text-decoration:none;
	background: transparent;
	height:27px;
	font-weight: bold;
}

#menuwrapper a:hover {
	background-color: #eeeeee;
	color: black !important;
	/* border: 1px solid black;
	border-top-left-radius: 4px;
    border-top-right-radius: 4px;
	border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px; */
}

/**** SECOND LEVEL MENU ****/
/* We make the position to absolute for flyout menu and hidden the ul until the user hover the parent li item */
#menuwrapper ul li ul{
  /*  border-top:solid 1px black; */
    position:absolute;
    display:none;
}

/* When user has hovered the li item, we show the ul list by applying display:block, note: 150px is the individual menu width.  */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li:hover ul, 
#menuwrapper ul li.iehover ul{
    left:100%;
    top:0px;
    display:block;
	color:black;
}


/* We style the color of level 2 links */
#menuwrapper ul li:hover ul li a,
#menuwrapper ul li.iehover ul li a{
    color:#000000; 
    display:inline-block;
    width:220px;
}

/**** THIRD LEVEL MENU ****/
/* We need to hide the 3rd menu, when hovering the first level menu */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li:hover ul li ul,
#menuwrapper ul li.iehover ul li ul{
    position:absolute;
    display:none;
}

/* We show the third level menu only when they hover the second level menu parent */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li ul li:hover ul,
#menuwrapper ul li ul li.iehover ul{
    display:block;
    left:100%;
    top:0;
}

/* We change the level 3 link color */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li ul li:hover ul li a,
#menuwrapper ul li ul li.iehover ul li a{
    color:#000000;
}


/**** FOURTH LEVEL MENU ****/
/* We need to hide the 4rd menu, when hovering the first level menu */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li ul li:hover ul li ul,
#menuwrapper ul li ul li.iehover ul li ul{
    position:absolute;
    display:none !important;
}

/* We show the third level menu only when they hover the second level menu parent */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li ul li ul li:hover ul,
#menuwrapper ul li ul li ul li.iehover ul{
    display:block !important;
    left:100%;
    top:0;
}

/* We change the level 3 link color */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li ul li ul li:hover ul li a,
#menuwrapper ul li ul li ul li.iehover ul li a{
    color:#000000;
}

/**** FIFTH LEVEL MENU ****/
/* We need to hide the 4rd menu, when hovering the first level menu */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li ul li ul li:hover ul li ul ,
#menuwrapper ul li ul li ul li.iehover ul li ul{
    position:absolute;
    display:none !important;
}

/* We show the third level menu only when they hover the second level menu parent */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li ul li ul li ul li:hover ul,
#menuwrapper ul li ul li ul li ul li.iehover ul{
    display:block !important;
    left:100%;
    top:0;
}

/* We change the level 3 link color */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li ul li ul li ul li:hover ul li a,
#menuwrapper ul li ul li ul li ul li.iehover ul li a{
    color:#000000;
}


/***** SIXTH LEVEL MENU ***/
/* hide */
#menuwrapper ul li ul li ul li ul li:hover ul li ul ,
#menuwrapper ul li ul li ul li ul li.iehover ul li ul{
    position:absolute;
    display:none !important;
}
/*show */
#menuwrapper ul li ul li ul li ul li ul li:hover ul,
#menuwrapper ul li ul li ul li ul li ul li.iehover ul{
    display:block !important;
    left:100%;
    top:0;
}

/* link */ 
#menuwrapper ul li ul li ul li ul li ul li:hover ul li a,
#menuwrapper ul li ul li ul li ul li ul li.iehover ul li a{
    color:#000000;
}

/* Clear float */
.clear{
    clear:both;
}