﻿

/* Add a margin - for this demo only - and a relative position with a high z-index to make it appear over any element below */
#menu{clear:left; position:relative; width:980px; height:25px; z-index:100;}

/* remove margin, padding etc in unordered lists */
#level1, #level1 ul {padding:0; margin:0; list-style-type: none;}

/* link size, color and borders 
CHANGE WIDTH, FONT_SIZE, COLOUR, HEIGHT to CUSTOMISE*/
#level1 a, #level1 a:visited {display:block;width:152px; font-size:14px; letter-spacing:.7px;color :#fff; height:25px; line-height:24px; text-decoration:none; text-indent:5px; border:1px solid #000; border-width:1px 0 1px 1px;}

/* Set up the sub level borders */
#level1 li ul li a, #level1 li ul li a:visited {border-width:0 1px 1px 1px;}
/* 1st item in list needs top border as well */
#level1 li a.toplistitem, #level1 li a.toplistitem:visited {border-width:1px;}

/* Set up the list items */
/* set BACKGROUND for color of items with no descendents */
#level1 li {float:left; background:#7484ad;}
/* set BACKGROUND for color of items with descendents, also controls image used for indicating descendents */
#level1 li.flyout {background:#7484ad url(../images/flyout.gif) no-repeat right center;}
#level1 li.dropdown {background:#7484ad url(../images/dropdown.gif) no-repeat right center;}

/* sets position for Non-IE browsers and IE7 */
#level1 li:hover {position:relative;}
/* sets BACKGROUND color for hover */
#level1 li:hover > a {background:#dfd7ca; color:#c00;}
/* next line does same for IE5.5/6 and triggers sub menus. change BACKGROUND, COLOR for hover color */
* html #level1 li a:hover {position:relative; background:#dfd7ca; color:#c00;}

#level1 a#home, #level1 a#home:visited{background-color:#ff0000; width:60px; color:#ffffff; font-weight:bold}	

/* Hide lower level list until hover over list item above it */
#level1 li ul {display:none;}

/* Set up the sublevel lists with a position absolute for flyouts and overrun padding. TOP, LEFT, WIDTH
may need adjusting if menu size changed The transparent gif is  IE fix */
#level1 li:hover > ul {display:block; position:absolute; top:-11px; left:80px; padding:10px 30px 30px 30px; background:transparent url(transparent.gif); width:120px;}
/* Position the first sub level beneath the top level non- IE and IE7 */
#level1 > li:hover > ul {left:-30px; top:16px;}

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


/* For accessibility of the top level menu when tabbing */
#level1 li a:active, #level1 li a:focus {background:#dfd7ca; color:#c00;}


/* Next section for IE5.5 and IE6 which uses CSS visibility instead of standard display */
/* Below makes sublevels appear */

/* change the drop down levels from display:none; to visibility:hidden; */
* html #level1 li ul {visibility:hidden; display:block; position:absolute; top:-11px; left:80px; padding:10px 30px 30px 30px; background:transparent url(transparent.gif);}

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

/* make the second level visible when hover on first level link and position it */
#level1 li a:hover ul {
visibility:visible; left:-30px; top:14px; lef\t:-31px; to\p:15px;
}

/* make the third level visible when you hover over second level link and position it and all further levels */
#level1 li a:hover ul a:hover ul{ 
visibility:visible; top:-11px; left:80px;
}
/* make the fourth level visible when you hover over third level link */
#level1 li a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}
/* make the fifth level visible when you hover over fourth level link */
#level1 li a:hover ul a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}
/* make the sixth level visible when you hover over fifth level link */
#level1 li a:hover ul a:hover ul a:hover ul a:hover ul a:hover ul { 
visibility:visible;
}

