/* Add a margin - for this demo only - and a relative position with a high z-index to make it appear over any element below */
.main_menu
{
	padding: 4px 0 0 20px;
}
.main_menu li
{
	float: left;
}
.main_menu li a
{
	display: block;
	float: left;
	line-height: 44px;
	background: url(../images/bg_menu.gif) no-repeat 0 0;
	color: #fff;
	font-weight: bold;
	padding-left: 12px;
	width: 123px;
	_width: 135px;
}
.main_menu li a:hover
{
	text-decoration: none;
	background-position: 0 -44px;
	color: #df392f;
}
/* Set up the sub level borders */
.main_menu li ul li a, .main_menu li ul li a:visited {border-left: 1px solid #b30622; width: 133px; _width: 165px; padding: 6px 10px 4px 12px; color: #fff; font-size: 90%; background: #373737 url(transparent.gif); line-height: normal; font-weight: normal;}
/* Set up the list items */

/* For Non-IE browsers and IE7 */
.main_menu li:hover {position:relative;}
/* Make the hovered list color persist */
.main_menu li:hover > a {color: #df392f; background: url(../images/bg_menu.gif) no-repeat 0 -44px;}
.main_menu li:hover li:hover > a {color: #fff; background: #de382f url(transparent.gif);}
.main_menu li a:hover
{
	color: #df392f;
}
/* Set up the sublevel lists with a position absolute for flyouts and overrun padding. The transparent gif is for IE to work */
.main_menu li ul {display:none;}
/* For Non-IE and IE7 make the sublevels visible on list hover. This is all it needs */
.main_menu li:hover > ul {display:block; position:absolute; top:0px; left:180px; _left:181px; padding:0; background:transparent url(transparent.gif); width:165px;}
/* Position the first sub level beneath the top level liinks */
.main_menu > li:hover > ul {left:0px; top:44px;}

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

/* For IE5.5 and IE6 give the hovered links a position relative and a change of background and foreground color. This is needed to trigger IE to show the sub levels */
* html .main_menu li a:hover {position:relative; color:#df392f; }

/* For accessibility of the top level menu when tabbing */
.main_menu li a:active, .main_menu li a:focus {color:#df392f; }
.main_menu li ul li a:hover
{
	color:#fff;
	background: #de382f url(transparent.gif);
}
/* Set up the pointers for the sub level indication */



/* This lot is for IE5.5 and IE6 ONLY and is necessary to make the sublevels appear */

/* change the drop down levels from display:none; to visibility:hidden; */
* html .main_menu li ul {visibility:hidden; display:block; position:absolute; top:-1px; left:180px; padding:0;}

/* keep the third level+ hidden when you hover on first level link */
.main_menu li a:hover ul ul{
visibility:hidden;
}
/* make the second level visible when hover on first level link and position it */
.main_menu li a:hover ul {
visibility:visible; left:-30px; top:-1px; lef\t:-1px; to\p:45px;
}

/* make the third level visible when you hover over second level link and position it and all further levels */
.main_menu li a:hover ul a:hover ul{ 
visibility:visible; top:-1px; left:179px; lef\t:179px; to\p:-1px;
}

/* If you can see the pattern in the above IE5.5 and IE6 style then you can add as many sub levels as you like */
.main_menu li:hover li:hover > a {color:#fff;}
