﻿/******Menu common styling */
/* style the outer div to give it width */
.menu {font-size:12px; width:1020px; position:relative; z-index:1000; margin:0 auto; }

/* remove all the bullets, borders and padding from the default list styling */
.menu ul {padding:0;margin:0;list-style-type:none; height:36px; }

/* style the sub-level lists */
/* hide the sub levels and give them a positon absolute so that they take up no room 设置2级菜单的位置 */
.menu ul ul 
{
    width:10em;
    visibility:hidden;
    position:absolute;
    height:0;
    top:36px; 
    left:0; 
}

/* position the third level flyout menu 三级菜单位置 */
.menu ul ul ul{left:10em;top:0;width:8em;}

/* float the top list items to make it horizontal and a relative positon so that you can control the dropdown menu positon */
.menu ul li {float:left;height:36px;line-height:36px; display:block;}

/* style the sub level list items 鼠标移上去时，二级菜单项目 */
.menu ul ul li {display:block;width:12em;height:auto; line-height:1em;}

/* style the links for the top level 一级菜单宽度 左右边框线会显示到子菜单的左右表格式上 */
.menu a, .menu a:visited {display:block;float:left;height:100%; width:82px; text-decoration:none;color:#333333; text-align:center; padding:0 8px 0 8px;  background:transparent; background-image:url(../images/r6.png); background-repeat:no-repeat; background-position:right;}
/* hack IE5.x to get the correct the faulty box model and get the width right */
* html .menu a, * html .menu a:visited {width:6em;}

/* style the sub level links 二级菜单宽度 */
.menu ul ul a, .menu ul ul a:visited {
    display: block; background:url(../images/ico_arrow1.gif) no-repeat 5px 10px; 
    color: #333;
    width: 14em;
    height: 100%;
    line-height: 0.5em;
    padding: 1em 1em;
    border-bottom: 1px dotted #ccc;
    margin-left: -3em;  /* 二级菜单左侧位置 */
    border-right:0;
    border-left:0; text-align:left;
}
* html .menu ul ul a, * html .menu ul ul a:visited  {width:14em; width:12em;}


/* style the table so that it takes no part in the layout - required for IE to work */
.menu table {border-collapse:collapse; padding:0; margin:-1px; width:0; height:0; font-size:1em; z-index:100;}


/* style the third level background 三级菜单背景 */
.menu ul ul ul a, .menu ul ul ul a:visited { }

/* 调整英文菜单长短的问题 */
.menu ul a.sub1 {width:121px; font-size:13px;}
.menu ul a.sub2 {width:100px; font-size:13px;}
.menu ul a.sub3 {width:100px; font-size:13px;}

/* style the level hovers */
/* first 一级菜单样式 */
* html .menu a:hover {color:#ff0; position:relative; z-index:100;}
.menu li:hover {position:relative;}
.menu ul li a:hover { color:#ffffff; background-color:White; background-image:url(../images/index_11.jpg); background-repeat:no-repeat;} /* 一级菜单鼠标放上去的样子 */
/* second */
* html .menu ul ul a:hover{color:#0066FF;background:#7aa; position:relative; z-index:110;}
.menu ul ul li:hover {position:relative;}
.menu ul ul :hover > a {color:#0066FF; background-color:transparent; background-image:none; background:url(../images/ico_arrow1.gif) no-repeat 5px 10px;} /* 二级菜单鼠标放上去的样子 */
/* third */
* html .menu ul ul ul a:hover {background:#FFF; position:relative; z-index:120;}
.menu ul ul ul :hover > a {background:#999999; color:White;}
/* fourth */
.menu ul ul ul ul a:hover {background:#7aa; position:relative; z-index:130;}

/* make the second level visible when hover on first level list OR link 二级菜单UL的位置 */
.menu ul :hover ul{visibility:visible; height:auto; padding:0 3em 3em 3em; background-position:right bottom; background-repeat:no-repeat; background-color:White; left:0em;}
/* keep the third level hidden when you hover on first level list OR link */
.menu ul :hover ul ul{visibility:hidden;}
/* keep the fourth level hidden when you hover on second level list OR link */
.menu ul :hover ul :hover ul ul{visibility:hidden;}
/* make the third level visible when you hover over second level list OR link */
.menu ul :hover ul :hover ul{visibility:visible; left:9em;}
/* make the fourth level visible when you hover over third level list OR link */
.menu ul :hover ul :hover ul :hover ul {visibility:visible;}

/********* Menu End *******************/