.ddsmoothmenu{
font: bold 12px Verdana;
width: 100%;
margin-left:23px;
}

.ddsmoothmenu ul{
z-index:100;
margin: 0 ;
padding: 0;
list-style-type: none;
}

/*Top level list items*/
.ddsmoothmenu ul li{
position: relative;
display: inline;
float: left;
width:230px;
}

/*Top level menu link items style*/
.ddsmoothmenu ul li a{
display: block;
color: white;
padding: 10.2px 37.7px;
text-decoration: none;
}

* html .ddsmoothmenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
display: inline-block;
}

.ddsmoothmenu ul li a:link, .ddsmoothmenu ul li a:visited{
color: white;
}

.ddsmoothmenu ul li a.selected { /*CSS class that's dynamically added to the currently active menu items' LI A element*/
background: #271669 !important; 
color: white;
}

.ddsmoothmenu ul li a:hover,.read{
background: #271669; /*background of menu items during onmouseover (hover state)*/
color: white;
}
	
/* sub menus */
.ddsmoothmenu ul li ul{
    position:absolute;	/* 讓第二層ul跳脫文件流以利定位 */
    width:230px;	/* 固定寬度 */
    overflow:visible;	 /* 避免出現捲軸 */
    clear:left;	/* 讓ul與母階層li相同位置 */
    margin:0 0 0 0;	/* 再利用margin作定位 */
}

/*Sub level menu list items (alters style from Top level List Items)*/
.ddsmoothmenu ul li ul li{
width:230px;
}

/*All subsequent sub menu levels vertical offset after 1st level sub menu */
.ddsmoothmenu ul li ul li ul{
margin:0 0 0 100px;
}

/* Sub level menu links style */
.ddsmoothmenu ul li ul li a{
font-size:14px;
font-weight:bold;
line-height:26px;
width: 200px; /*width of sub menus*/
text-align:left;
padding:5px 0 5px 28px;
margin-left: 0px;
margin-bottom:-1px;
border-top-width: 0;
border-top: 1px solid #E9D3ED;
border-right: 1px solid #E9D3ED;
border-left: 1px solid #E9D3ED;
border-bottom: 1px solid #E9D3ED;
}

.ddsmoothmenu ul li ul li ul{
    /* 讓第二層ul跳脫文件流以利定位 */
    position:absolute;
    /* 固定寬度 */
    width:110px;
    /* 避免出現捲軸 */
    overflow:visible;
    /* 讓ul與母階層li相同位置 */
    clear:left;
    /* 再利用margin作定位 */
    margin:-36px 0 0 195px;
}

.ddsmoothmenu ul li ul li a:link, .ddsmoothmenu ul li ul li a:visited{
color: #7C2C6D;
}

.ddsmoothmenu ul li ul li a.selected { /*CSS class that's dynamically added to the currently active menu items' LI A element*/
background: #271669 !important; 
color: white;
}

.ddsmoothmenu ul li ul li a:hover,.read{
background: #271669; /*background of menu items during onmouseover (hover state)*/
color: white;
}

.ddsmoothmenu ul li ul{
    /* 預先隱藏第二層 */
    visibility:hidden;
}
.ddsmoothmenu ul li:hover ul{
    /* 觸動第一層時，顯示第二層 */
    visibility:visible;
}
.ddsmoothmenu ul li:hover ul li ul{
    /* 顯示第二層時，隱藏第三層，避免同時彈出 */
    visibility:hidden;
}
.ddsmoothmenu ul li ul li:hover ul{
    /* 觸動第二層時，顯示第三層 */
    visibility:visible;
}

.ddsmoothmenu ul li ul a{	
	font-weight: 500;
	width: 80px; /*width of sub menus*/
	margin: 0 3px 0 15px;
	height: 25px;
	line-height: 20px;
	padding: 0 10px;
	font-size: 14px;
	color: #7C2C6D;
	background-color:#F7EDF7;
}



/* Holly Hack for IE \*/
* html .ddsmoothmenu{height: 1%;} /*Holly Hack for IE7 and below*/


/* ######### CSS classes applied to down and right arrow images  ######### */

.downarrowclass{
position: absolute;
top: 12px;
right: 7px;
}

.rightarrowclass{
position: absolute;
top: 6px;
right: 5px;
}

/* ######### CSS for shadow added to sub menus  ######### */

.ddshadow{ 
position: absolute;
left: 0;
top: 0;
width: 0;
height: 0;
background-color: #ccc; /* generally should be just a little lighter than the box-shadow color for CSS3 capable browsers */
}

.toplevelshadow{
margin: 5px 0 0 5px; /* in NON CSS3 capable browsers gives the offset of the shadow */
opacity: 0.8; /* shadow opacity mostly for NON CSS3 capable browsers. Doesn't work in IE */
}

.ddcss3support .ddshadow.toplevelshadow {
margin: 0; /* in CSS3 capable browsers overrides offset from NON CSS3 capable browsers, allowing the box-shadow values in the next selector to govern that */
/* opacity: 1; */ /* optionally uncomment this to remove partial opacity for browsers supporting a box-shadow property which has its own slight gradient opacity */
}

.ddcss3support .ddshadow {
background-color: transparent;
box-shadow: 5px 5px 5px #aaa; /* box-shadow color generally should be a little darker than that for the NON CSS3 capable browsers background-color */
-moz-box-shadow: 5px 5px 5px #aaa;
-webkit-box-shadow: 5px 5px 5px #aaa;
}



/* ddsmoothmenu2-----------------------------------------------  */

.ddsmoothmenu2 ul{list-style-type: none;}
.ddsmoothmenu2 ul li{float: left; margin-right:7px}
.ddsmoothmenu2 ul li a{display: block;text-decoration: none;}
* html .ddsmoothmenu2 ul li a{display: inline-block;}

	
/* sub menus */
.ddsmoothmenu2 ul li ul{
    position:absolute;	/* 讓第二層ul跳脫文件流以利定位 */
    width:110px;	/* 固定寬度 */
    overflow:visible;	 /* 避免出現捲軸 */
    clear:left;	/* 讓ul與母階層li相同位置 */
    margin:0 0 0 0;	/* 再利用margin作定位 */
	z-index:10
}

/*Sub level menu list items (alters style from Top level List Items)*/
.ddsmoothmenu2 ul li ul li{
	width:150px;
	border-top: 1px solid #62B31D;
	border-right: 1px solid #62B31D;
	border-left: 1px solid #62B31D;
	border-bottom: 1px solid #62B31D;
	padding:7px 7px 7px 15px;
	height: 200px;
	line-height: 20px;
	color: #4A8412;
	background-color:#EDF7E2;
	margin-top:5px;
	margin-left:-143px
}

.ddsmoothmenu2 ul li ul li ul{
    /* 讓第二層ul跳脫文件流以利定位 */
    position:absolute;
    /* 固定寬度 */
    width:110px;
    /* 避免出現捲軸 */
    overflow:visible;
    /* 讓ul與母階層li相同位置 */
    clear:left;
    /* 再利用margin作定位 */
    margin:-36px 0 0 195px;
}


.ddsmoothmenu2 ul li ul{
    /* 預先隱藏第二層 */
    visibility:hidden;
}
.ddsmoothmenu2 ul li:hover ul{
    /* 觸動第一層時，顯示第二層 */
    visibility:visible;
}
.ddsmoothmenu2 ul li:hover ul li ul{
    /* 顯示第二層時，隱藏第三層，避免同時彈出 */
    visibility:hidden;
}
.ddsmoothmenu2 ul li ul li:hover ul{
    /* 觸動第二層時，顯示第三層 */
    visibility:visible;
}
