/* original: css_flyoutverticalmenu.css*/

/* Define the body style */
body {
    font-family:Arial;
    font-size:12px;
}

/* We remove the margin, padding, and list style of UL and LI components */
#menuwrapper ul, #menuwrapper ul li{
    margin:0;
    padding:0;
    list-style:none;
}

/* We apply background color and border bottom white and width to 100% (it was 150px) */
#menuwrapper ul li{
    background-color:#0C47B3;
    border-bottom:solid 1px #cccccc;
    width:100%;
	cursor:pointer;
}

/* 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{
    background-color:#adadff;
    position:relative;
}

/* We apply the link style */
#menuwrapper ul li a{
    padding:5px 15px;
    color:#ffffff;
    display:inline-block;
    text-decoration:none;
}


/**** 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{
    position:absolute;
    display:none;
}

/* When user has hovered the li item, we show the ul list by applying display:block, note: 100% (it was 150px) is the individual menu width.  */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li:hover ul, 
#menuwrapper ul li.iehover ul{
    right:100%;
    top:0px;
    display:block;
}

/* we apply different background color to 2nd level menu items*/
#menuwrapper ul li ul li{
    background-color:#0C47B3;
}

/* We change the background color for the level 2 submenu when hovering the menu */
/* for IE < 9 we using class .iehover */
#menuwrapper ul li:hover ul li:hover,
#menuwrapper ul li.iehover ul li.iehover{
    background-color:#476CAF;
}

/* We style the color of level 2 links */
#menuwrapper ul li ul li a{
    color:#ffffff;
    display:inline-block;
    width:180px;
}

/**** 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:hover ul li:hover ul ,
#menuwrapper ul li.iehover ul li.iehover ul{
    display:block;
    right:100%;
    top:0;
}


/* BACKGROUND of 3 LEVEL (will be applied for all levels below it too) I hid it but keep it for future */
/* We change the background color for the level 3 submenu*/
/* for IE < 9 we using class .iehover */

/*#menuwrapper ul li:hover ul li:hover ul li,     */
/*#menuwrapper ul li.iehover ul li.iehover ul li{      */
/*    background:#86d3fa;      */
/*}           */

/* We change the background color for the level 3 submenu when hovering the menu */
/* for IE < 9 we using class .iehover */

/*#menuwrapper ul li:hover ul li:hover ul li:hover,       */
/*#menuwrapper ul li.iehover ul li.iehover ul li.iehover{        */
/*    background:#358ebc;   */
/*}         */

/* We change the level 3 link color */
/* for IE < 9 we using class .iehover */

/*#menuwrapper ul li:hover ul li:hover ul li a,      */
/*#menuwrapper ul li.iehover ul li.iehover ul li a{      v
/*    color:#ffffff;      */
/*}     */

/* END of BACKGROUND of 3 LEVEL  */

/*******************************************************/
/*******************************************************/

/**** Fadhil ... 4 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:hover ul li ul,
#menuwrapper ul li.iehover ul li.iehover ul li ul{
    position:absolute;
    display:none;
}
/* We show the 4 level menu only when they hover the 3 level menu parent */
/* for IE < 9 we using class .iehover */
#menuwrapper  ul li:hover ul li:hover ul li:hover ul,
#menuwrapper ul li.iehover ul li.iehover ul li.iehover ul{
    display:block;
    right:100%;
    top:0;
}


/**** 5 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:hover ul li:hover ul li:hover ul li ul,
#menuwrapper ul li.iehover ul li.iehover ul li.iehover ul li ul{
    position:absolute;
    display:none;
}
/* We show the 5 level menu only when they hover the 4 level menu parent */
/* for IE < 9 we using class .iehover */
#menuwrapper  ul li:hover ul li:hover ul li:hover ul li:hover ul,
#menuwrapper ul li.iehover ul li.iehover ul li.iehover ul li.iehover ul{
    display:block;
    right:100%;
    top:0;
}




/* Clear float */
.clear{
    clear:both;
}
