* {
	padding:0;
	margin:0;
}
body {
	margin:0 auto;
	font:8pt Tahoma,"MS Sans Serif";
	background:#f4f4f4 url(img/bg.gif) top center repeat-y;
}
img {
	border:none;
}
.red {
	color:red;
}
.count { /* แสดงจำนวนเว็บในหมวดนั้นๆ */
	color:green;
	font-size:90%;
}
.date { /* แสดงวันที่ add หรือ edit */
	color:#FF6666;
	font-size:90%;
}
.visited { /* แสดงจำนวนคนคลิกเข้าไปดู */
	color:maroon;
	font-size:90%;

}
iframe {
	width:100px;
	height:100px;
	display:none;
}
.search { /* highlight ข้อความค้นหา */
	background-color:yellow;
	color:navy;
}
.searchresult { /* จำนวนการค้นหาที่พบ */
	color:green;
}
span#wait2 { /* พื้นที่แสดงผลรูปรอประมวลผล */
	margin-left:5px;
	margin-top:5px;
	width:16px;
	height:16px;
	background-position:center;
	background-repeat:no-repeat;
	position:absolute;
}
#wrap { /* พื้นที่หลัก */
	float:none;
	margin:5px auto;
	background:#ffffff;
	color:#303030;
	width:760px; /* Logo width */
}

#header { /* header */
	margin:0 auto;
	height:45px;
}

#header h1 { /* title */
	width:550px;
	float:left;
	font:18pt Verdana,Tahoma,"Comic Sans MS";
}
#header .small {
	font-size:12pt;
}
#header .large {
	font-size:26pt;
}
#header h2 { /* sub title */
	width:200px;
	float:right;
	text-align:center;
	line-height:20px;
	color:#a0a0a0;
	font-size:8pt;
}
#header .thin { /* sub title 2 */
	font-weight:normal;
}
#headerphoto { /* Logo */
	width:760px; 
	height:80px;
	background:#ffffff url(img/header.jpg) center no-repeat;
}
#content { /* ส่วนแสดงเว็บไดเร็คทอรี่ */
	float:left;
	width:545px;
	padding:3px;
	background-position:center;
	background-repeat:no-repeat;
}
#newweb { /* ส่วนแสดงเว็บที่มาใหม่ */
	padding:3px;
	border:1px solid #286ea0;
	line-height:16px;
	margin:0 20px 20px 20px;
	height:100px;
}
#newwebwait { /* ไม่แสดงรูปรอโหลด */
	background-position:center;
	background-repeat:no-repeat;
	background-image:url(img/wait2.gif);
	/* กำหนดให้เหมือนของ .tabmenu a เพื่อมีความสูงเท่ากัน */
	display:inline;
	position:static;
	font-weight:bold;
	padding:4px;
}
/* tab menu ของ ส่วนแสดงเว็บที่มาใหม่ */
ul.tabmenu {
	margin-left:25px;
	list-style-type:none;
	padding:4px;
}
.tabmenu li{
	display:inline;
	position:relative;
}
.tabmenu a {
	text-decoration:none;
	font-weight:bold;
	color:#505050;
	padding:4px;
	border:1px solid #dddddd;
	border-top:4px solid #dddddd;
	border-bottom:1px solid #286ea0;
	border-bottom:none;
	background:#f4f4f4;
}
.tabmenu a:hover {
	text-decoration:none;
	color:#286ea0;
	border-top:4px solid #286ea0;
	background:#eaeaea;
}
.tabmenu a.current {
	color:#286ea0;
	border-top:4px solid #286ea0;
	border-left:1px solid #286ea0;
	border-right:1px solid #286ea0;
	border-bottom:1px solid #ffffff;
	padding-top:5px;
	background:#ffffff;
	padding-bottom:4px;
}
#rightmodule { /* พื้นที่แสดงผลด้านขวา */
	background-color:#fafafa;
	text-align:left;
	padding:3px;
	float:right;
	width:200px;
	border-left:dotted 1px #E1E1E1;
}
#rightmodule h4 {
	width:190px;
	border-bottom:solid 1px #E1E1E1;
	float:none;
	font-size:100%;
	color:#505050;
	margin:0 auto;
}
#searchlayer {
	text-align:center;
	width:180px;
	float:none;
	margin:20px 0 20px 0;
}
#searchlayer input {
	border:1px solid #505050;
	padding:2px;
	font:100% Tahoma,"MS Sans Serif";
}
#menulayer {
	width:180px;
	float:none;
	margin:20px 5px 20px 5px;
}
#menulayer ul {	
	list-style:none;
	font-size:100%;
}	
#menulayer li {
	margin-bottom:4px;
}
#menulayer li a {
	font-weight:bold;
	height:20px;
	text-decoration:none;
	color:#505050;
	display:block;
	padding:6px 0 0 10px;
	background:#f4f4f4;
	border-left:4px solid #cccccc;
}	
#menulayer li a:hover {
	background:#eaeaea;
	color:#286ea0;
	border-left:4px solid #286ea0;
}
#content ul {
	list-style:none;
}
#content li {
}

#footer { /* footer */
	clear:both;
	margin:0 auto;
	padding:10px 0 20px 0;
	border-top:4px solid #f0f0f0;
	width:500px; /* กว้างเท่ากับ Logo */
	text-align:center;
	color:#808080;
	font-size:90%;
}
#footer a {
	color:#808080;
	text-decoration:none;
}
#footer a:hover {
	text-decoration:underline;
}

#divadd { /* add,edit URL */
	float:none;
	margin:10px auto 10px;
	border:1px solid #505050;
	background-color:#ffffff;
	padding-bottom:5px;
}

#divadd label {
	float:left;
	position:relative;
	width:100px;
	padding-right:5px;
	font-weight:bold;
	color:#777777;
	text-align:right;
}
#divadd p {
	line-height:20px;
}
#divadd input {
	font:8pt Tahoma,"MS Sans Serif";
	border:1px solid #505050;
	padding:2px;
	margin:2px;
}
#divadd textarea {
	font:8pt Tahoma,"MS Sans Serif";
	border:1px solid #505050;
	padding:2px;
	margin:2px;
}
#divadd h1 {
	font-weight:bold;
	color:#ffffff;
	font-size:100%;
	text-align:center;
	margin:2px;
	padding:3px;
	background-color:#505050;
}
#divadd select {
	border:1px solid #505050;
	font:100% Tahoma,"MS Sans Serif";
	margin:2px;
}
#divadd option {
	padding:3px 3px 0 3px;
}
#divadd p.comment {
	color:green;
	font-size:90%;
	padding-left:110px;
}

/* ตารางแสดงหัวข้อ category */
table#categorylist {
	padding:10px;
	border:none;
}
#categorylist td {
	vertical-align:top;
	color:#aaaaaa;
	padding:10px;
}
#categorylist a {
	color:maroon;
	text-decoration:none;
	border-left:4px solid gray;
	padding-left:10px;
}
#categorylist a:hover {
	text-decoration:none;
	color:#526AF9;
}
#categorylist a.subcategory {
	border:none;
	padding:0;
	margin:0;
	color:#aaaaaa;
}
#categorylist a:hover.subcategory {
	color:#526AF9;
}
/* ตารางแสดงรายการเว็บไซต์ */
#weblist {
	width:100%;
	padding:5px;
}
#weblist td {
	vertical-align:top;
	padding-bottom:5px;
	border-bottom:4px solid #f0f0f0;
}
#weblist .thumbnail {
	width:100px;
}
#weblist .address {
	color:green;
}
.thumbnail img {
	border:1px solid #cccccc;
	width:92px; /* ขนาดของ thumbnail */
	margin:5px;
}
#weblist a {
	color:blue;
	text-decoration:none;
}
#weblist a:hover {
	text-decoration:none;
}

/* สำหรับโมดูล Counter */
.counter1 {
	color:white;
	font-size:90%;
	background-color:#5083F9;
	text-align:center;
	padding:3px;
}
.counter2 {
	font-size:90%;
	background-color:#D5D8F9;
	text-align:center;
	padding:3px;
}
.hidden {
	display:none;
}
.counter1 a {
	text-decoration:none;
	color:white;
}
.counter1 a:hover {
	text-decoration:none;
}
/* กรอบ login */
#login {
	width:400px;
	height:110px;
	margin:20px auto 10px auto;
	border:1px solid #505050;
	background-color:#ffffff;
}
#login input {
	font:8pt Tahoma,"MS Sans Serif";
	border:1px solid #505050;
	padding:2px;
	margin:2px;

}
#login h1 {
	font-weight:bold;
	color:#ffffff;
	font-size:100%;
	text-align:center;
	margin:2px;
	padding:3px;
	background-color:#505050;
}
#login label {
	float:left;
	position:relative;
	width:70px;
	padding-right:5px;
	font-weight:bold;
	color:#777777;
	text-align:right;
	line-height:20px;
}
#login p {
	margin:3px;
	line-height:20px;
}
#linkpage {
	text-align:center;
}
#linkpage .currpage {
	color:green;
	font-weight:bold;
}
#linkpage a {
	text-decoration:none;
	color:maroon;
}
#linkpage a:hover {
	text-decoration:none;
	color:#526AF9;
}
/* พื้นที่แสดงลิงค์มาใหม่ */
#newlink li {
	list-style:none;
	color:#aaaaaa;
}
#newlink a {
	text-decoration:none;
	color:maroon;
	font-style:normal;
}
#newlink a:hover {
	text-decoration:none;
	color:#526AF9;
}