/* vertical menu bar */


ul.mbv {
	margin: 0;
	padding: 0;
	list-style: none;
	width: 169px;
	line-height: 26px;
	height: 0px;

}

/*เส้นขอบ*/
ul.mbv ul {
	margin: 0;
	padding: 2;
	list-style: none;
	position: absolute;
	top:1; /* if using borders, -1 to align top borders */
	left: 175px;/*ระยะห่างระหว่างเมนูหลักกับเมนูย่อย*/
	width: 169px;/*ขนาดขอบ*/
	background: #FFFFFF;
	z-index: 1;
	border: 1px solid #666600;
}

ul.mbv li {
	margin: 0;
	padding: 0;
/* 	border-bottom: 1px solid transparant; fixes gap problem in IE */
	position: relative;
	width: 169px;
	background: #FFFFFF;
	z-index: 1;
	font-family: "Microsoft Sans Serif";
	font-size: 13px;
	text-decoration: none;
	color: #666600;
	heigh: 0px;
}

/* separator to mark end of menu group */

ul.mbv li.end {
	border-bottom: 0px dashed #399;
}

/*เมื่อ mouse over*/
ul.mbv li a:link,
ul.mbv li a:visited,
ul.mbv li a:hover,
ul.mbv li a:active {
	display: block;
	padding: 0;
	width: 169px;
	background: #FFFFFF;
	font-family: "Microsoft Sans Serif";
	font-size: 13px;
	text-decoration: none;
	color: #666600;
	font-weight: bold;
}

ul.mbv li a:hover,
ul.mbv li a:active {
	background: #CCCCCC;
	color: #FFF;
}

ul.mbv li a.hidden:link,
ul.mbv li a.hidden:visited {
	background: none url(images/dot01.gif) 100% -169px no-repeat;
	
}

ul.mbv li a.visible:link,
ul.mbv li a.visible:visited,
ul.mbv li a.visible:hover,
ul.mbv li a.visible:active {
	background: #cccccc url(images/dot01.gif) 100% -169px no-repeat;
	color: #FFF;
}
/*
เมื่อมีเมนูย่อย
*/




/* horizontal menu bar */

ul.mbh {
	margin: 0 0 0 0;
	padding: 0;
	list-style: none;
	width: 100%;
}

ul.mbh li {
	float: left;
	padding: 0;
	margin: 0;
	z-index: 1;
}

ul.mbh ul li {
	float: none;
	position: relative;
	border-bottom: 1px solid transparant; /* fixes gap problem in IE */
}

/* separator to mark end of menu group */
ul.mbh ul li.end {
	border-bottom: 1px dashed #399;
}

ul.mbh li ul {
	margin: 0;
	padding: 0;
	list-style: none;
	position: relative;
	top: 0;
	left: 0;
	background: transparant;
	z-index: 2;
}

ul.mbh ul ul {
	margin-left: .2em;
	position: absolute;
	top: 0; /* if using borders, -1px to align top borders */
	left: 9em;
}

ul.mbh li a:link,
ul.mbh li a:visited,
ul.mbh li a:hover,
ul.mbh li a:active {
	display: block;
	padding: .2em .5em;
	text-decoration: none;
	background: transparant;
	color: #399;
}

ul.mbh li a:hover,
ul.mbh li a:active {
	background: #399;
	color: #FFF;
}

ul.mbh ul li a:link,
ul.mbh ul li a:visited,
ul.mbh ul li a:hover,
ul.mbh ul li a:active {
	width: 8em;
}

ul.mbh ul li a.hidden:link,
ul.mbh ul li a.hidden:visited {
	background: transparant url(images/dot01.gif) 100% -12px no-repeat;
}

ul.mbh li a.visible:link,
ul.mbh li a.visible:visited,
ul.mbh li a.visible:hover,
ul.mbh li a.visible:active {
	background: #399;
	color: #FFF;
}

ul.mbh ul li a.visible:link,
ul.mbh ul li a.visible:visited,
ul.mbh ul li a.visible:hover,
ul.mbh ul li a.visible:active {
	background: #399 url(images/dot01.gif) 100% -62px no-repeat;
}

