* {
	padding:0;
	margin:0;
}
html,body {
	height:100%;
	font:8pt Tahoma,"MS Sans Serif";
}
/* สำหรับ link ทั่วไป */
a:link {
	color:maroon;
	text-decoration: none;
}
a:visited {
	color:maroon;
	text-decoration: none;
}
a:hover {
	color:#526AF9;
	text-decoration: none;
}
#wrap {
	position:relative; /* needed for footer positioning*/
	margin:0 auto; /* center, not in IE5 */
	width:100%;
	background:white;

	height:auto !important; /* real browsers */
	height:100%; /* IE6: treaded as min-height*/
	min-height:100%; /* real browsers */
}
/* Logo */
div#logo {
	display:table;
	width:95%;
	margin:0 auto;
	padding:5px 5px 15px 5px;
	border-bottom:4px solid #f0f0f0;
}
div#logo h1 {
	/* title */
	display:table;
	width:250px;
	float:left;
	font:18pt Verdana,Tahoma,"Comic Sans MS";
}
div#logo p {
	/* sub title */
	display:table;
	width:200px;
	float:right;
	text-align:center;
	color:#a0a0a0;
	font-size:8pt;
	padding-top:20px;
}
/* footer */
div#footer {
	border-top:4px solid #f0f0f0;
	padding:10px 0 20px 0;
	text-align:center;
	color:#808080;
	font-size:100%;
	bottom:0;
	display:table;
	width:95%;
	margin:0 auto;
}
div#footer a {
	color:#808080;
	text-decoration:none;
}
div#footer a:hover {
	text-decoration:underline;
}
/* กรอบ login */
#login {
	width:400px;
	height:110px;
	margin:20px auto 10px auto;
	border:1px solid #505050;
	background-color:#ffffff;
}
#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;
}
/* กรอบแสดงรายการหมวดหมู่ */
#listcategory  h1 {
	font-weight:normal;
	font-size:100%;
	text-align:center;
	color:navy;
}
#listcategory table {
	margin:0 auto;
	width:80%;
}
#listcategory th {
	padding:8px;
	background-color:#F0F0F0;
}
#listcategory td {
	padding:5px;
	vertical-align:top;
}
#listcategory tr.bg1 {
	background-color:#FAFAFA;
}
#listcategory tr.bg2 {
	background-color:#F0F0F0;
}
/* ตาราง เพิ่ม-แก้ไข category */
#addcategory {
	border:1px solid #505050;
	background-color:#ffffff;
	width:470px;
	margin:10px auto;
}
#addcategory h1 {
	font-weight:bold;
	color:#ffffff;
	font-size:100%;
	text-align:center;
	margin:2px;
	padding:3px;
	background-color:#505050;
}
#addcategory label {
	float:left;
	position:relative;
	width:70px;
	padding-right:5px;
	font-weight:bold;
	color:#777777;
	text-align:right;
	line-height:20px;
}
#addcategory p {
	margin:3px;
	line-height:20px;
}
/* แสดงข้อความ error */
#error {
	border:1px solid red;
	background-color:#FFFFCC;
	color:black;
	text-align:center;
	padding:20px;
	margin:0 auto;
	display:table;
	line-height:20px;
}
#error h1 {
	font-weight:bold;
	color:#ffffff;
	font-size:110%;
	text-align:center;
	margin:-18px -18px 10px -18px;
	padding:3px;
	background-color:#505050;
}
#error em {
	font-size:110%;
	font-weight:bold;
	font-style:normal;
	color:red;
}

input {
	font:8pt Tahoma,"MS Sans Serif";
	border:1px solid #505050;
	padding:2px;
	margin:2px;
}
img {
	border:none;
}
.red {
	color:red;
}
.large {
	font-size:12pt;
}
.larger {
	font-size:26pt;
}
.hidden {
	display:none;
}
select {
	font:100% Tahoma,"MS Sans Serif";
	border:1px solid #505050;
}
option {
	font:100% Tahoma,"MS Sans Serif";
	padding:2px;
}
td.center {
	text-align:center;
}
ul {
	list-style-type:none;
	float:right;
	margin-right:15px;
	margin-top:5px;
}
li {
	display:inline;
	position:relative;
}
li a {
	font-weight:bold;
	text-decoration:none;
	color:#cccccc;
	background:#f0f0f0;
	border-bottom:1px solid #cccccc;
	padding:6px 20px 3px 20px;
}	
li a:hover {
	color:#286ea0;
	border-bottom:4px solid #286ea0;
	background:#f4f4f4;
}