html, body{
	height: 635px;
	width: 100%;
	margin: 0 0 1px;
	padding: 0;
}

html {
	*background: #000000;
}

body {
  	font: 85%/0.9 HanWangMingBlack, 'Microsoft jhenghei', verdana, helvetica, sans-serif;
	background: #262021;
	line-height: 110%;
	padding:0px;
  	color: #DDDDDD;
	text-align: center;
	overflow-x: hidden;
}

.wrapper {
	background-image: url('./img/top_corner.jpg');
	background-repeat: no-repeat;
	background-position: -8px 0px;
	margin: 0 auto;
	width: 700px;
	height: 100%;
	padding: 0 50px 0 50px;
	margin-top: -25px;
}

#top {
	width: 700px;
	height: 120px;
	margin-top: 40px;
}

#title-head {
	background: url('./img/title1.png');
	float: left;
	height: 68px;
	width: 40px;
}

#title2-head{
	background: url('./img/title2.jpg');
	float: left;
	height: 45px;
	width: 58px;
}

#title {
	float: right;
	width: 490px;
	height: 68px;
	background-color: #332f2e;
	text-align: left;
}

#title img {
	vertical-align: top;
}

#title2 {
	float: right;
	width: 472px;
	height: 45px;
	background: url('./img/title2-bg.gif');
	background-repeat: repeat-x;
}

#title2 img {
	vertical-align: top;
}

#logo {
	display: block;
	float: left;
}

#thumbnail {
	margin-top: 6px;
	vertical-align: bottom;
	text-align: left;
	width: 170px;
	height: 114px;
	/*padding-left: 1px;*/
	float: right;
	background-image: url('./img/vertical_top.gif');
	background-repeat: no-repeat;
	background-position: left bottom;
}

#thumbnail img {
	margin-top: 46px;
	margin-left: 1px;
	vertical-align: top;
}

#grayline {
	width: 1px;
	height: 100%;
	float: left;
	background-image: url('./img/gray.gif');
	background-repeat: repeat-y;
}

#menu {
	background-image: url('./img/bottm_corner_top.jpg');
	background-repeat: no-repeat;
	background-position: right bottom;
	float: right;
	width: 170px;
	height: 100%;
	display: inline;
}

#menu-other {
	margin-top: 6px;
	background-image: url('./img/bottm_corner_top.jpg');
	background-repeat: no-repeat;
	background-position: right bottom;
	float: right;
	width: 170px;
	height: 100%;
	display: inline;
}

#submenu {
	float: right;
	width: 169px;
	height: 100%;
}

#submenu a {
	text-decoration: none;
	color: #DDDDDD;
}

#submenu div {
	text-indent: -10px;
	line-height: 40px;
	font-size: 14;
	font-weight: 900;
	margin-right: 22px;
	margin-bottom: 5px;
	width: 147px;
	height: 39px;
	background-image: url('./img/tab_bg.gif');
	background-repeat: no repeat;
	background-position: left top;
	text-align: center;
}

#submenu div.top {
	margin-top: 2px;
	margin-bottom: 5px;
	width: 147px;
	height: 39px;
	background-image: url('./img/tab_bg.gif');
	background-repeat: no repeat;
	background-position: left top;
}

#submenu div.bottom {
	margin-bottom: 50px;
	width: 147px;
	height: 39px;
	background-image: url('./img/tab_bg.gif');
	background-repeat: no repeat;
	background-position: left top;
}

#frame {
	width: 528px; /*img width: 504px*/
	height: 366px; /*img height: 336px*/
	margin: 2px 0 2px 0;
	/*padding: 9px 8px 9px 7px;*/
	background: #AAAAAA;
	float: left;
}


#content {
	width: 700px;
	height: 370px;
	padding-top: 6px;
	background-image: url('./img/horizontal_line.gif');
	background-repeat: no-repeat;
	background-position: left top;
	text-align: right;
}

#content-other {
	width: 700px;
	height: 406px; /*to be changed on the fly on each page*/
	background-image: url('./img/horizontal_line.gif');
	background-repeat: no-repeat;
	background-position: left top;
}

#main-content {
	width: 530px;
	height: 100%;
	float: left;
}

#text-content {
	float: left;
	width: 530px;
	height: 361px; /*result of content-other.height - title2.height*/
	background: url('./img/background.jpg');
	background-repeat: repeat-y;
}

#text {
	margin-left: 45px;
	margin-right: 25px;
	width: 460px;
	height: 100%;
	
	font-family:'Microsoft jhenghei', verdana, helvetica, sans-serif;
	text-align: left;
	line-height: 19px;
	font-size: 14;
}

#text p {
	font-family: HanWangMingBlack, 'Microsoft jhenghei', verdana, helvetica, sans-serif;
	margin: 5px 0 5px;
}

#text table {
	border-collapse: collapse;
}

#text table, td, th {
	vertical-align: top; border: 2px solid gray;
}

#footer{
	text-align: left;
	width: 700px;
	height: 130px;
	background-image: url('./img/bottm_corner_bottom.jpg');
	background-repeat: no-repeat;
	background-position: right top;
}

#footcontent {
	color: #AAAAAA;
	font-size: 12;
	width: 531px;
	height: 130px;
	text-align: center;
	background-image: url('./img/vertical_bottom.gif');
	background-repeat: no-repeat;
	background-position: right top;
}

#footcontent a {
	text-decoration: none;
	color: #AAAAAA;
}

/* Dropdown menu*/
.clear {clear:both}	
/* remove the list style */
#nav {
	padding:0; 
	list-style:none;
}	
	
	/* make the LI display inline */
	/* it's position relative so that position absolute */
	/* can be used in submenu */
	#nav li {
		float:left;
		display:block; 
		width:130px; 
		background:#333333; 
		position:relative;
		z-index:500; 
		margin:0 1px;
	}
		
	/* this is the parent menu */
	#nav li a {
		display:block; 
		padding:5px;
		height:16px; 
		text-decoration:none; 
		color:#fff; 
		text-align:center; 
		color:#DDDDDD;
	}

	#nav li a:hover {
		color:#fff;
	}
	
	/* you can make a different style for default selected value */
	#nav a.selected {
		color:#f00;
	}
	
		/* submenu, it's hidden by default */
		#nav ul {
			position:absolute; 
			left:0; 
			display:none; 
			margin:0 0 0 -1px; 
			padding:0; 
			list-style:none;
		}
		
		#nav ul li {
			width:130px; 
			float:left; 
			border-top:1px solid #DDDDDD;
		}
		
		/* display block will make the link fill the whole area of LI */
		#nav ul a {
			display:block;  
			height:15px;
			padding: 8px 5px;
			text-align:left;			
			color:#DDDDDD;
		}
		
		#nav ul a:hover {
			text-decoration: none;	
		}
/*********************************************************************/
