.menu, .menu ul {list-style-type:none; padding:0; margin:0; font-family:arial, sans-serif;background:url(../images/menubg.jpg) left top repeat-x;padding-left:149px;width:610px;border-bottom:5px solid #c0c0c0}

/* Set up the top level list items and float left to place inline */
.menu li.top {display:block; float:left; position:relative;}

/* Style and position the table so it takes no part in the menu function. The font size is necessary for IE5.5 */
.menu table {border-collapse:collapse; width:0; height:0; position:absolute; top:0; left:0;}

/* Default top link link styling */
.menu li.top a.top_link {display:block; float:left; height:29px;}
.menu li.top a span {position:absolute; left:-9999px; top:0; z-index:0; font-size:10px;} /* move the link text off screen */

/* pre-load the hover images into the lists */
.menu li.p1 {width:68px; background:url(../images/home.jpg) left top no-repeat;}
.menu li.p2 {width:101px; background:url(../images/AboutIPI.jpg) left top no-repeat;}
.menu li.p3 {width:121px; background:url(../images/govern.jpg) left top no-repeat;}
.menu li.p4 {width:116px; background:url(../images/commercialmenu.jpg) left top no-repeat;}
.menu li.p5 {width:107px; background:url(../images/contact.jpg) left top no-repeat;}


/* set up the normal unhovered images in the links */
.menu li a#home {width:68px; background:url(../images/home.jpg) left top no-repeat;}
.menu li a#about {width:101px; background:url(../images/AboutIPI.jpg) left top no-repeat;}
.menu li a#govern {width:121px; background:url(../images/govern.jpg) left top no-repeat;}
.menu li a#commercial {width:116px; background:url(../images/commercialmenu.jpg) left top no-repeat;}
.menu li a#contact {width:107px; background:url(../images/contact.jpg) left top no-repeat;}


/* Style the list OR link hover. Depends on which browser is used */
.menu a:hover {visibility:visible;} /* for IE6 */
.menu li:hover { position:relative; z-index:200;} /* for IE7 */

/* make the links transparent on hover so that the hover images in the lists show through (no flicker) */
.menu li a#home:hover, .menu li:hover a#home,
.menu li a#products:hover, .menu li:hover a#products,
.menu li a#services:hover, .menu li:hover a#services,
.menu li a#contacts:hover, .menu li:hover a#contacts,
.menu li a#shop:hover, .menu li:hover a#shop{background:transparent;}

/* keep the 'next' level invisible by placing it off screen. */
.menu ul, 
.menu :hover ul ul, 
.menu :hover ul :hover ul ul,
.menu :hover ul :hover ul :hover ul ul,
.menu :hover ul :hover ul :hover ul :hover ul ul {position:absolute; left:-9999px; top:-9999px; width:0; height:0;}

/* set up the first drop down sub level */
.menu :hover ul.sub {left:0; top:29px; background: #eaeaea; padding:0;  white-space:nowrap; width:202px; height:auto;border-bottom:none}
.menu :hover ul.sub li {display:block; height:25px; position:relative; float:left; width:202px;}
.menu :hover ul.sub li a {display:block; font-size:12px; height:24px; width:200px; line-height:24px; text-indent:7px; color:#000066; text-decoration:none;font-weight:bold;border:1px solid #969696;border-top:none;}
.menu :hover ul.sub li a.fly {background:#fff url(../images/arrow.gif) 80px 7px no-repeat;}
.menu :hover ul.sub li a:hover {background:#c0c0c0; color:#000;}
.menu :hover ul.sub li a.fly:hover {background:#37a237 url(../images/arrow_over.gif) 80px 7px no-repeat; color:#fff;}
.menu :hover ul li:hover > a.fly {background:#37a237 url(../images/arrow_over.gif) 80px 7px no-repeat; color:#fff;} 

/* set up the flyout levels when hovering */
.menu :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul :hover ul,
.menu :hover ul :hover ul :hover ul :hover ul :hover ul
{left:90px; top:-4px; background: #fff; padding:3px 0; border:1px solid #888; white-space:nowrap; width:203px; z-index:200; height:auto; z-index:300;}
