/*



*/
/* เอาไว้บอกว่าตอนนี้ใช้ CSS version ล่าสุดหรือเปล่า */
#footer:after, h2#TopHeader:after{
	content:" (CSS v.0.2.4)";
	font-size: 11px;
}


*, html
{
	font-family: Arial, Helvetica, sans-serif;
}

body, form, ul, li, p, h1, h2, h3, h4, h5
{
	margin: 0;
	padding: 0;
}
html, body 
{
	height: 100%;
}
/* body { background: #606061 /*url(gr_bg_header.jpg) 0 0 repeat-x*/;} */
body#error { background: #000000; text-align: center; height: auto !important; }


body{
	line-height:1.4em;
	background-color:#c1e5ff;
}

.clear
{
	height: 0 !important;
	line-height: 0 !important;
	clear: both !important;
	font-size: 1px !important;
	margin: 0;
	padding: 0;
	float: none !important;
}
img
{
	border: none;
}
p
{
	font-size: 1em;
	margin: 0 0 1em 0;
}

/* Styles for scalable font consistency */

html { font-size: 100%; height: 100%; /* IE hack */ }
body { font-size: 0.80em; } /* Base font 12px */
table { font-size: 100%; /* IE hack */ }

input, select, textarea, th, td { font-size:1em; }

h1 { font-size: 5.416em; line-height: 1em; } 
h2 { font-size: 2em; line-height: 1em; margin: 0 0 0.792em 0; }

h1,h2,h3,h4,h5,h6{
	font-family:"Varela Round",Arial;
}

/*

body{
	font: 100% Tahoma,Arial;
	line-height:1.4em;
	margin:0;
	padding:0;
	background-color:#c1e5ff;
}


table,td,tr,th,li,ul,b,br,p,ol,textarea,input{
	font-size: 9pt;
	font-family:Tahoma,Arial;
}

h1,h2,h3,h4,h5,h6{
	font-family:Arial;
}




img{
	border:none;
}
*/



a:link{
	color:#333;
}

a:visited{
	color:#333;
}

a:hover{
	color#666;
	text-decoration:none;
}

a:active{
	color#F00;
}

.highlight ,  .tag { 
	background-color: #DDD;
	background-color: rgba(0,0,0,0.1); 
	padding: 3px; 
	border-radius: 4px;
	-o-border-radius: 4px;
	-ms-border-radius: 4px;
	-moz-border-radius: 4px;
	-webkit-border-radius: 4px;
	cursor: pointer;
}

	.tag:hover{
		background: rgba(0,0,0,0.2);
	}

.red{
	color:#900;
	/*-weight:bold;*/
	background: #FEE;
	
}

	.red:hover{
		background: #FDD !important;
	}
	
		.red .highlight{
			background: #FCC;
			background: rgba(255,0,0,0.3);
		}
		
		.red .contentbox a{
			color:#900;
		}
	
	

.green{
	color:#060;
	/*font-weight:bold;*/
	background: #EFE;
}

	.green:hover{
		background: #DFD !important;
	}
	
		.green .highlight{
			background: #CFC;
			background: rgba(0,255,0,0.3);
		}
		
		.green .contentbox a{
			color: #060;
		}

.blue{
	color:#006;
	background: #EEF;
}

	.blue:hover{
		background: #DDF !important;
	}
	
		.blue .highlight{
			background: #CCF;
			background: rgba(0,0,255,0.2);
		}
		
		.blue .contentbox a{
			color: #006;
		}

/* สองสีผสมกัน */
.red.blue, .purple{
	color: #606;
	background: #FDF;
}	

	.red.blue:hover, .purple:hover{
		background: #FCF !important;
	}		
		
		.red.blue .highlight, .purple .highlight{
			background: #FBF;
			background: rgba(230,0,255,0.3);
		}
		
		.red.blue .contentbox a, .purple .contentbox a{
			color: #006;
		}		
		
		
		
		
.grey{
	color:#333;
	background: #EEE;
}

	.grey:hover{
		background: #DDD !important;
	}
	
		.grey .highlight{
			background: #CCC;
		}
		
			.grey .contentbox a{
				color: #333;
			}

.orange{
	color: #930;
	background: #FEB;
}

	.orange:hover{
		background: #FDB !important;
	}
	
		.orange .highlight{
			background: #FCA;
		}
		
			.orange .contentbox a{
				color: #930;
			}
	
	
.black{
	color:#EEE !important;
	background: #000;

}	
	
	.black:hover{
		background: #333 !important;
		color: #FFF;
	}
	
		.black .highlight{
			background: #666;
		}
		
		.black:hover .highlight{
			background: #555 !important;
		}
		
			.black .contentbox a{
				color:#DDD;
			}
	
.done{
	text-decoration:line-through;
}	

.alert{
	background: #fceabb; 
	background: -moz-linear-gradient(top, #fceabb 0%, #ffe882 50%, #ffdf60 51%, #f9e1a4 100%); 
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#fceabb), color-stop(50%,#ffe882), color-stop(51%,#ffdf60), color-stop(100%,#f9e1a4)); 
	background: -webkit-linear-gradient(top, #fceabb 0%,#ffe882 50%,#ffdf60 51%,#f9e1a4 100%); 
	background: -o-linear-gradient(top, #fceabb 0%,#ffe882 50%,#ffdf60 51%,#f9e1a4 100%); 
	background: -ms-linear-gradient(top, #fceabb 0%,#ffe882 50%,#ffdf60 51%,#f9e1a4 100%); 
	background: linear-gradient(top, #fceabb 0%,#ffe882 50%,#ffdf60 51%,#f9e1a4 100%);
	font-weight: bold;
	margin-bottom: 2px;
	border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;
	-moz-border-radius: 8px;
	-webkit-border-radius: 8px;				
}
	
.quote:before{	
	content:"“";
	font-size: 50px;
	position:relative;
	top:18px;
	font-family:Georgia;
	color:#666;
	padding-right: 5px;
	margin-left: -15px;
}	

.quote:after{
	content: "”";
	font-size: 50px;
	position:relative;
	top:18px;	
	font-family:Georgia;	
	color:#666;
	padding-left: 5px;
}
	
.yellowgreen{
	color:#AF0;
}


.show{
	display: block;
}

.hide{
	display: none;
}


.button{
	border:1px outset #DDD;
	padding:3px;
	color:white;
	background-color:#EEE;
	border-radius: 4px 4px;
	-o-border-radius: 4px 4px;
	-ms-border-radius: 4px 4px;
	-moz-border-radius: 4px 4px;
	-webkit-border-radius: 4px 4px;
	
}

.button2{
	border: 1px outset #DDD;
	padding:3px;
	background-color:#EEE;
}

.button a:link, .button a:visited, .button a:hover, .button a:active{
	color:white;
}


.hidden{
	display: none;
}

.loading{
	background: url("../img/ajax-loader.gif") no-repeat center center !important;
	min-width: 30px;
	min-height: 22px;
	text-indent: 400px !important;
	display:block !important;
	overflow: hidden !important;
	border: none;
}


.loading2{
	background: url("../img/ajax-loader.gif") no-repeat center center !important;
}


.ResultError , .ResultOK{

	border-radius: 8px 8px;
	-o-border-radius: 8px 8px;
	-ms-border-radius: 8px 8px;
	-moz-border-radius: 8px 8px;
	-webkit-border-radius: 8px 8px;
	font: bold 13px Arial;
	padding:10px;
	text-align:center;
	margin: 5px auto;
	width:300px;
	box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
	-o-box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
	-ms-box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
}

.ResultError{
	color:#F00;
	background-color:#FEE;
	border: 1px solid #D00;
	border-top: 2px solid #D00;
	border-bottom: 2px solid #D00;	
}

.ResultOK{
	border: 1px solid #0D0;
	border-top: 2px solid #0D0;
	border-bottom: 2px solid #0D0;
	color:#090;
	background-color:#EFE;

}
.ResultBox{
	border: 1px solid #AAD;
	font: bold 13px Arial;
	padding:10px;
	text-align:center;
	color:#009;
	background-color:#EEF;
	margin-bottom:5px;
	width:40%;
	margin-left:auto;
	margin-right:auto;	
	box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
	-o-box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
	-ms-box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
	-moz-box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
	-webkit-box-shadow: 0px 3px 10px rgba(0,0,0,0.5);
}



h2#TopHeader{
	/* width:100%; */
	font-size: 16px;
	font-family: Arial, Helvetica, sans-serif;
	color:white;
	 padding:5px;
	padding-top:10px;
	display:block;
	margin:0;
	height:30px;
	text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);
	-o-text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);
	-ms-text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);
	-moz-text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);			
	-webkit-text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);
}

	h2#TopHeader a{
		color:white;
		text-decoration:none;
		font-family: Arial, Helvetica, sans-serif;
	}
	
		h2#TopHeader a:hover{
			color:#EEE;
			text-shadow: 0 0 5px rgba(255,255,255,0.8);
			-o-text-shadow: 0 0 5px rgba(255,255,255,0.8);
			-ms-text-shadow: 0 0 5px rgba(255,255,255,0.8);
			-moz-text-shadow: 0 0 5px rgba(255,255,255,0.8);
			-webkit-text-shadow: 0 0 5px rgba(255,255,255,0.8);
		}

	.version{
		font-size: 11px;
	}



#MainHeader{
	/* /img/admin/head1.jpg */
	background:#1e88d3 url("/img/admin/head1.jpg") no-repeat center top;

/*	url("/img/bg/Glacier_Lake2.jpg") no-repeat center top; */
	background-size: cover;
	position:relative;
	height:40px;
	 
/*	-webkit-transition: all 1s ease;
	-moz-transition: all 1s ease;
	-ms-transition: all 1s ease;
	-o-transition: all 1s ease;
	transition: all 1s ease; */
}

	#MainHeader:hover{
		/* height: 300px; */
	}

#PersonalHeader{
	position:absolute;
	top:0;
	right:0;
	padding:4px;
	padding-right:10px;
	float:right;
}

#PersonalHeader a, #PersonalHeader{
	font-weight: bold;
	font-family: Arial, Helvetica, sans-serif;
	letter-spacing: 0;
	font-size: 12px;
	color: #DDE;
	text-decoration: none;
	text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);
	-o-text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);
	-ms-text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);
	-moz-text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);
	-webkit-text-shadow: 0.1em 0.1em 5px rgba(0,0,0,0.5);				
}

	#PersonalHeader a:hover{
		color: white;
	}


/*==========================*/
/*		CSS Menu			*/
/*==========================*/

#navlist {
	padding: 2px 0;
	margin-left: 0;
	border-bottom: 1px solid #778;
	font: bold 12px Verdana, sans-serif;
/*	margin-top:1px;  */
	margin-bottom:0;
	
	position: absolute;
	bottom: 0px;
}

#navlist li {
	list-style: none;
	margin: 0;
	display: inline;
}

#navlist li a {
	padding: 3px 0.4em;
	padding-bottom:6px;	
	margin-left: 2px;
	border: 1px solid #778;
	border-bottom: none;
	background: #3dafff;
	color:#0DD;
	text-decoration: none;
	font-family: Arial, Helvetica, sans-serif;
}

#navlist li a:link { color: #000; }
#navlist li a:visited { color: #000; }

#navlist img, #PersonalHeader img{
	border:0;
	vertical-align:middle;
}

#navlist li a:hover {
	color: #000;
	background: #78c7fe;
	border-color: #FFF;
}

#navlist li a#current {
	background: #c1e5ff;
	border-bottom: 1px solid #c1e5ff;
		
}

/*==========================*/
/*		My Menu				*/
/*==========================*/

#MainMenu{
	background-color:#099;
	margin:0;
}

#MainMenu ul{
	margin:0;
	margin-left:40px;
	margin-top:1px;	
	/* border-bottom: 1px solid #F00;	*/
}

#MainMenu li{
	padding-top:2px;
	font: Bold 15px Arial;
	display:inline;
	padding-left: 5px;
	padding-right:5px;
	padding-bottom:-1px;
	text-align:center;
	background-color:#0BB;
	margin-right: 5px;
	margin-bottom:3px;
}

#MainMenu #selected{
	background-color:white;
	/* border-bottom:1px solid #FFF; */
	padding-bottom:2px;
	border-bottom: 1px solid #FFF;
}

#MainMenu a:link, #MainMenu a:visited, #MainMenu a:active{
	text-decoration:none;
	text-align:center;
	font: bold 0.8em Arial;
	color:#000;
	padding:3px;
}

#MainMenu a:hover{
	color:#033;
	background-color:#0DD;
	padding:1px auto 1px auto;
}

#RightMenu{
	margin:0;
	position:absolute;
	padding-right:5px;
	top:45px;
	right: 5px;
}




#body{
	background-color:#FFF;
	padding:5px;
	margin:8px;
	/* min-height:200px; */
	/* top:70px; */
	position: relative;

}

#body li{
	line-height:1.5em;
}

#MyMenu{
 background-color:#BAE2FD;
}


ul{
	margin-top:4px;
}



#AdminMessage{
	/* background-color:#EEE; */
	width: 50%;
	height: 250px;
	margin:10px;
	padding:5px;
}

#LoginBoxCover{
	width:300px;
	height:280px;
}

#LoginBox{
	position:absolute;
	width:300px;
	height:280px;
	top: 100px;
	right: 10px;
	text-align:center;
	padding: 5px;
	background-color:#EEE;
}

#navbottom{
	text-align:center;
	padding: 10px;

}
	
	#navbottom a{
		background: rgba(0,0,0,0.3);
		padding: 4px 8px;
		text-decoration: none;
		color:white;
		border-radius: 8px;
	}

		#navbottom a:hover{
			background: rgba(0,0,0,0.2);
		}
	

#footer{
	font: 11px Arial;
	position:relative;
	text-align: center;
	padding: 10px 0;
	clear: both;
}

#leftMenu{
	float:left;
	clear:right;
}



.xeditbutton, .sortbutton, .addbutton, .xdeletebutton{
	border-radius: 3px;
}

a.xeditbutton{
	color: #DDD;
	background-color:#999;
	padding: 2px;
	border: 1px solid #AAA;
	text-decoration: none;
}
a:hover.editbutton{
	color: #FFF;
	background-color:#666;
}


a.xdeletebutton{
	color: #FDD;
	background-color:#900;
	padding: 2px 4px;
	border: 1px solid #F00;
	text-decoration: none;
	/* -webkit-transition: left ease 3s; */
	left: 0px;
	position: relative;
}

.deletebutton{
	/* -webkit-transition: right ease 3s; */
}

a:hover.deletebutton{
	color: #FFF;
	background-color:#F00;
}


	
#messageBox{
	position: fixed;
	top: 40px;
	left: 0;
	z-index: 1000;
	width: 100%;
	margin: 0 auto;
}	
	
#justform{
	/* width: 600px; */
	width: 55%;
}	
	
	
#postbox{
	margin: 0 auto;
	max-width: 800px;
	background: #EEE;
	border-radius: 16px 16px;
	-o-border-radius: 16px 16px;
	-ms-border-radius: 16px 16px;
	-moz-border-radius: 16px 16px;
	-webkit-border-radius: 16px 16px;
	padding: 2px 15px;
	margin-top: -18px;
	box-shadow: 0px 2px 8px rgba(0,0,0,0.4);
	-o-box-shadow: 0px 2px 8px rgba(0,0,0,0.4);
	-ms-box-shadow: 0px 2px 8px rgba(0,0,0,0.4);
	-moz-box-shadow: 0px 2px 8px rgba(0,0,0,0.4);
	-webkit-box-shadow: 0px 2px 8px rgba(0,0,0,0.4);
	
	background: #eeeeee; /* Old browsers */ 
	background: -moz-linear-gradient(top, #eeeeee 0%, #cccccc 100%); /* FF3.6+ */ 
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#eeeeee), color-stop(100%,#cccccc)); /* Chrome,Safari4+ */ 
	background: -webkit-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Chrome10+,Safari5.1+ */ 
	background: -o-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* Opera 11.10+ */ 
	background: -ms-linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* IE10+ */ 
	background: linear-gradient(top, #eeeeee 0%,#cccccc 100%); /* W3C */ 
/*	filter:	progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=0 ); / * IE6-9 */	
	
}

#postbox h2{
	padding: 15px 5px;
	text-shadow: 0px 2px 0px #FFF;
	-o-text-shadow: 0px 2px 0px #FFF;
	-ms-text-shadow: 0px 2px 0px #FFF;
	-moz-text-shadow: 0px 2px 0px #FFF;
	-webkit-text-shadow: 0px 2px 0px #FFF;
}


#postbox p{
	display: inline;
	float: left;
	/* border: 1px solid red; */
	position: relative;
	padding: 3px;
}

#postbox label{
	position: absolute;
	top: -16px;
	left: 8px;
	font-size: 11px;
	font-weight: bold;
	color: #666;
}

#postbox:after{
	content: ".";
	visibility: hidden;
	clear: both;
}

.clearData {
	width: 20px;
	height: 20px;
	background: #BBB;
	color: white;
	text-align: center;
	font-family: Arial;
	font-weight: bold;
	font-size: 14px;
	line-height: 20px;
	position: relative;
	right: 5px;
	top: -5px;	
	display: block;
	border-radius: 15px;
	-o-border-radius: 15px;
	-ms-border-radius: 15px;		
	-moz-border-radius: 15px;
	-webkit-border-radius: 15px;
	cursor: pointer;
}

.clearData:hover{
	background: #AAA;
	color: white;
}


.closeButton{
	width: 20px;
	height: 20px;
	background: #BBB;
	color: white;
	text-align: center;
	font-family: Arial;
	font-weight: bold;
	font-size: 14px;
	line-height: 20px;
	position: absolute;
	right: 5px;
	top: 5px;	
	display: block;
	border-radius: 15px;
	-o-border-radius: 15px;
	-ms-border-radius: 15px;		
	-moz-border-radius: 15px;
	-webkit-border-radius: 15px;
	cursor: pointer;
}


.closeButton:hover{
	background: #AAA;
	color: white;
}





.editor p{
	display: inline-block;
}

.editor label{	
	display: none;
}

.clear{
	clear: both;

}

.line{
	border-bottom: 2px solid #DDD;
	max-width: 680px;
	margin: 0 auto;
}

#stuffname{
	width: 473px;
	
}

.uploadbox{
	width: 50px;
	height: 50px;
	float: left;
	background: #999;
	color: white;
	font-weight: normal;
	border: 1px solid #777;
	text-align: center;
	line-height: 50px;
	overflow: hidden;
	position: relative;
}

#upload.hover, .uploadbox:active{
	border: 1px solid #AAA;
	background: #666;
}

	.uploadbox span.deletephoto{
		width: 10px;
		height: 10px;
		background: #900;
		text-align: center;
		font-size: 10px;
		line-height: 8px;
		font-weight: normal;
		color: #FDD;
		overflow: hidden;
		position: absolute;
		right: 0px;
		top: 0px;
		cursor: pointer;
	}
	
	div#uploadpic{
		position: relative;
		width: 52px;
		height: 52px;
		float: left;
		margin: -8px 8px 0px 3px;
	}
	
	
	span#deletepic{
		width: 14px;
		height: 14px;
		background: #900;
		text-align: center;
		font-size: 10px;
		line-height: 14px;
		font-weight: normal;
		color: #FDD;
		overflow: hidden;
		position: absolute;
		right: -10px;
		top: -10px;
		cursor: pointer;
		display: none;
	}	

		span#deletepic:hover{
			background: #F00;
		}
	
.inputlogin{
	width: 180px;
	font-size: 16px;
	padding: 4px;
}	
	

.inputbox, .xsubmitbtn{
	font-size: 16px;
	padding: 3px;
}

	.editor .inputbox{
		font-size: 16px;
		padding: 3px;
		line-height: 26px;
		width: 110px;
	}	
	
		.editor .contentbox input{
			width: 340px;
		}
		
			.editor .startbox input, .editor .expirebox input{
				text-align: center;
			}

			
	span.submitbox{
		display:block;
		width: 80px;
		position: absolute;
		right: 8px;
		top: 8px;
		text-align:right;
	}

.submitbtn{
	font-weight: bold;
}

#date_start, #date_expire{
	text-align: center;
	width: 116px;
}

#leftBox{
	width:50%;
	min-width: 150px;
	float:left;
	padding-left: 3%;
}

	#leftBox h2{
		padding: 20px 0 5px 0;
	}

#rightBox{
	width:38%;
	min-width: 280px;
	float: left;
	
}

	#rightBox table{
		margin: 0 auto;
	}
	
		#rightBox h3{
			padding: 10px 0;
		}

		
#wrapper-bottom{
	width:800px;
	margin: 0 auto;
	margin-top:20px;
	background: white;
}

#side-message{
	width: 270px;
	/* height: 100px; */
	background: #EEE;
	border-radius: 14px 14px;
	-o-border-radius: 14px 14px;
	-ms-border-radius: 14px 14px;
	-moz-border-radius: 14px 14px;
	-webkit-border-radius: 14px 14px;				
	float: right;
	padding: 15px;
	margin-top: -40px;
	position: relative;
}

	#side-message ul{
		margin-top: 10px;
		padding-left: 15px;
	}
		#side-message li{
			padding-bottom: 4px;
		}

#sidebar{
	float: right;
	width: 150px;
	background: #EEE;
	height: 500px;
	padding: 20px;
	border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;		
	-webkit-border-radius: 8px;
	-moz-border-radius: 8px;
	position: relative;
}		
	#sidebar h3{
		margin-bottom: 15px;
	}
	
		#sidebar p{
			color:#666;
			color:rgba(0,0,0,0.6);
		}
		
#maincontent{ 
	float: left;
	max-width: 600px;
	min-width: 300px;
	margin: 0 auto;
	/* border: 1px dashed red; */
}

	#data-Table table td{
		border-bottom: 1px solid #DDD;
	}
	
	#data-Table table tr:hover{
		background: #E6EAE7;
	}

		#data-Table table tr:hover .highlight{
			background: #FFF;
		}	
	
	#data-Table ul{
		padding: 0;
		margin: 0;
		list-style-type: none;
	}	
	
	#data-Table li{
		border-bottom: 1px solid #DDD;
		clear: both;
		display: block;
		padding: 8px 3px;
		position: relative;
		-webkit-tap-highlight-color:rgba(0,0,0,0.3);
	}
		/*
		#data-Table li:after{
			content: ".";
			clear: left;
			visibility: hidden;
		}
		*/
		
			#data-Table li:hover{
				background: #EEE;
			}
			
				#data-Table li:hover .highlight{
					background: #FFF;
				}
				
					#data-Table li:hover span.startbox, #data-Table li:hover span.expirebox{
						color: #333;
					}
	
		#data-Table li span{
			display:inline-block;
			/*float: left;
			border: 1px dotted green;*/
		}
	
	
			#data-Table li span.highlight{
				display: inline;
			}	
	
	span.imagebox{
		
		width: 48px;
		height: 48px;
		display: inline-block;
	}
	
		.editor span.imagebox{
			margin: 5px 30px -15px 30px;
		}
	
		span.contentbox img{
			width: 48px;
			height: 48px;
			float: left;
			margin: 0px 5px 5px 0px;
			border: 1px solid #EEE;
		}
		
			span.contentbox img:hover{
				border: 1px solid #CCC;
			}
		
	
	span.contentbox{
		max-width: 580px;
		min-width: 580px;		
		padding: 3px 3px 8px 10px;
		position: relative;
		line-height: 28px;
		font-size: 16px;
		/*font-family:Georgia;
		 float:left;
		display: block; */
	}
	
		.editor span.contentbox{
			min-width: 480px;
			max-width: 480px;
			padding: 0px 0px 0px 4px;
		}
		
			.editor span.contentbox textarea{
				width: 450px;
			}
	
	span.expirebox{
		min-width: 300px;
		max-width: 300px;
		text-align: left;
		
		color: #666;
	}
	
		.editor span.expirebox{
			min-width: 230px;
			max-width: 230px;
		}
		
		span.startbox label, span.expirebox label{
			display: block;
		}
		
		
	
	span.startbox{
		min-width: 220px;
		max-width: 220px;
		text-align: left;
		text-indent: 30px;
		color: #999;
		color: rgba(0,0,0,0.4);
	}
	
	/*	span.startbox:before{
			content:url('/img/admin/icon_help.png');
		}
	*/
	
		.editor span.startbox{
			text-indent: 0px;
			min-width: 160px;
			max-width: 160px;
		}
	
		span.startbox:hover{
			color: #333;
		}
	
	
		span.startbox span{
			position: relative;
		}
	
	
	span.editbox{
		width:40px;
		text-align: right;
		position: absolute;
		right: 63px;
		top: 12px;
	}
	
	span.deletebox{
		width:50px;
		text-align: right;
		position: absolute;
		right: 10px;
		top: 12px;
	}
	
	.check{
		position: absolute;
		left: -25px;
	}

.expired{
	color: red;
	font-weight: bold;
}

.expiring{
	color: #F60;
	font-weight: bold;
}

.submitbtn{
    font-family: "Varela Round",Arial, Helvetica, sans-serif;
    font-size: 16px;
    padding: 6px 10px;
    border-radius: 16px;
    -o-border-radius: 16px;
    -ms-border-radius: 16px;        
    -moz-border-radius: 16px;
    -webkit-border-radius: 16px;	
	margin-top: -1px;
}

.submitbtn, .savebutton{
	/* -webkit-transition: all ease 0.5s; */
    color: #ffffff;
	background: #3c8500;
    background: -moz-linear-gradient(
        top,
        #40ff00 0%,
        #3c8500);
    background: -webkit-gradient(
        linear, left top, left bottom, 
        from(#40ff00),
        to(#3c8500));
    border: 1px solid #299100;
    -moz-box-shadow:
        0px 1px 3px rgba(000,000,000,0.5),
        inset 0px 0px 6px rgba(255,255,255,1);
    -webkit-box-shadow:
        0px 1px 3px rgba(000,000,000,0.5),
        inset 0px 0px 6px rgba(255,255,255,1);
    text-shadow:
        0px -1px 0px rgba(000,000,000,0.4),
        0px 1px 0px rgba(255,255,255,0.3);
}

.savebutton{
	border-radius: 8px;
	-o-border-radius: 8px;
	-ms-border-radius: 8px;		
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
	padding: 3px 6px;
	opacity: 0.3;
}

.submitbtn:hover {
    text-shadow: 0px 0px 4px rgba(255,255,255,0.8);
    -o-text-shadow: 0px 0px 4px rgba(255,255,255,0.8);
    -ms-text-shadow: 0px 0px 4px rgba(255,255,255,0.8);
    -moz-text-shadow: 0px 0px 4px rgba(255,255,255,0.8);
    -webkit-text-shadow: 0px 0px 4px rgba(255,255,255,0.8);                 
}

.submitbtn:active {

    color: #ffffff;
    background: -moz-linear-gradient(
        top,
        #186100 0%,
        #2fba00 75%,
        #1e9102);
    background: -webkit-gradient(
        linear, left top, left bottom, 
        from(#186100),
        color-stop(0.75, #2fba00),
        to(#1e9102));
    border: 1px solid #299100;
    -moz-box-shadow:
        0px 1px 3px rgba(000,000,000,0.5),
        inset 0px 0px 8px rgba(255,255,255,1);
    -webkit-box-shadow:
        0px 1px 3px rgba(000,000,000,0.5),
        inset 0px 0px 8px rgba(255,255,255,1);
    text-shadow:
        0px 0px 7px rgba(255,255,255,0.7),
        0px 0px 4px rgba(255,255,255,0.6);

	position:relative;
	top: 1px;
}



a.editbutton, a.deletebutton, #data-Table li{
	/* -webkit-transition: all ease 0.5s; */
}




a.editbutton, .editbutton , .cancelbutton{
	opacity: 0.0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
	text-decoration:none;	
    color: #ffffff;
    padding: 3px 6px;
	background: #999;
    background: -moz-linear-gradient(
        top,
        #d1d1d1 0%,
        #666666);
    background: -webkit-gradient(
        linear, left top, left bottom, 
        from(#d1d1d1),
        to(#666666));
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border: 1px solid #747475;
    -moz-box-shadow:
        0px 1px 3px rgba(000,000,000,0.5),
        inset 0px 0px 1px rgba(255,255,255,0.7);
    -webkit-box-shadow:
        0px 1px 3px rgba(000,000,000,0.5),
        inset 0px 0px 1px rgba(255,255,255,0.7);
    text-shadow:
        0px -1px 0px rgba(000,000,000,0.7),
        0px 1px 0px rgba(255,255,255,0.7);
        
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;        
        
}


/*button.css3button { */ 

#data-Table li:hover a.deletebutton, #data-Table li:hover a.editbutton{
	opacity: 1;
}

#data-Table li:hover .cancelbutton, #data-Table li:hover .savebutton, #data-Table li:hover .editbutton{
	opacity: 1;
}


a.deletebutton {
	opacity: 0.0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
	text-decoration:none;
    color: #ffffff;
    padding: 3px 6px;
	background: #ab0000;
    background: -moz-linear-gradient(
        top,
        #ff2819 0%,
        #ab0000);
    background: -webkit-gradient(
        linear, left top, left bottom, 
        from(#ff2819),
        to(#ab0000));
    border-radius: 8px;
    -moz-border-radius: 8px;
    -webkit-border-radius: 8px;
    border: 1px solid #7d0000;
    -moz-box-shadow:
        0px 1px 3px rgba(000,000,000,0.5),
        inset 0px 0px 2px rgba(255,255,255,0.7);
    -webkit-box-shadow:
        0px 1px 3px rgba(000,000,000,0.5),
        inset 0px 0px 2px rgba(255,255,255,0.7);
    text-shadow:
        0px -1px 0px rgba(000,000,000,0.4),
        0px 1px 0px rgba(255,255,255,0.3);
        
        
	-webkit-transition: all 0.5s ease;
	-moz-transition: all 0.5s ease;
	-ms-transition: all 0.5s ease;
	-o-transition: all 0.5s ease;
	transition: all 0.5s ease;               
        
} /* http://css3button.net/ */


a.editbutton:hover, a.deletebutton:hover, .editbutton:hover{
    text-shadow:
        0px 0px 3px rgba(255,255,255,0.7);
}


/* Search box */

#livesearch{
	max-width:600px;
	margin: 10px auto;
	text-align:center;
}

#livesearch label{
	font-weight: bold;
}

/* =================================
Wide 900px and below
=================================== */	
	
	
@media screen and (max-width: 900px) {

	#stuffname{
		width: 95%;
		
	}
	
	/* แก้ให้มองเห็นปุ่ม */
	a.editbutton, .editbutton , .cancelbutton, a.deletebutton{
		opacity: 0.4;
	}

}

/* =================================
Wide 800px and below
=================================== */	
	
	
@media screen and (max-width: 800px) {

	#wrapper-bottom{
		width: 100%;
		
	}
	
	#maincontent{
		float: none;
		/* width: 85%; */
		max-width: 100%;
		min-width: 100%;
		margin: 0 auto;
	}
	
	#data-Table{
		width:95%;
		margin: 0 auto;
	}
	

	#sidebar, #side-message{
		float: none;
		width: 90%;
		margin: 0 auto;
		height: auto;
		padding: 2%;
		margin-bottom: 15px;
	}
	
	
	#side-message{
		margin-bottom: 30px;
		margin-top: -25px;
		padding: 15px;
	}
	
	#justform {
		/* width: 55%; */
		float: none;
		width: 95%;
		margin: 0 auto;
	}

	.check{
		position: relative;
		left: 0px;
	}
	
	span.contentbox{
		max-width: 85%;
		min-width: 85%;		
		padding: 3px 0;
		position: relative;
		line-height: 24px;
		/* float:left;
		display: block; 
		background: #FEE; */
	}
	
	.quote:before{
		margin-left: 3px;
	}
	
	span.startbox{
		min-width: 40%;
		max-width: 40%;
		text-indent: 5px;
	}		
	
	span.expirebox{
		min-width: 50%;
		max-width: 50%;
	}

	
	span.editbox{
		/* min-width: 8%;
		max-width: 8%; */
		
	}
	
	span.deletebox{
		/* min-width: 7%;
		max-width: 7%; */
	}
	
}
		
/* ===================
Wide 640px and below
=================== */	
	
	
@media screen and (max-width: 600px) {

	#body{
		margin: 0;
		padding: 2px;
	}
	
	#stuffname{
		width: 95%; 
	}
	
	#navlist li a:link ,#navlink li a#current{
		padding: 8px;
		font-size: 14px;
	}
	
	#postbox{
		
	}
	
	#rightBox, #leftBox{
		float: none;
		/* width: 100%; */
		margin: 0 auto;
	}
	
	#leftBox{
		float:left;
		width:40%;
	}
	
	#rightBox{
		float: right;
		width: 55%;
	}
	
		#rightBox table{
			margin: 0 auto;
		}
	
	#MainHeader {
		height: 91px;
		margin-bottom: 0px;
	}

	h2#TopHeader {

		padding-top: 25px;

	}
	
	
		h2#TopHeader span.version{
			font-size: 11px;
		}
	

	#rightBox, #leftBox{
		float: none;
		 width: 90%; 
		margin: 0 auto;
	}

	#rightBox table{
		margin: 0 auto;
	}	

	#data-Table ul li{
		position: relative;
	}	
	
	span.contentbox{
		max-width: 80%;
		min-width: 80%;		
		padding: 3px 0;
		position: relative;
		line-height: 24px;
		/* float:left;
		display: block;
		background: #EEF; */
	}
	
	span.expirebox{
		min-width: 50%;
		max-width: 50%;
	}
	
	span.startbox{
		min-width: 40%;
		max-width: 40%;
		margin-left: 0px;
		text-indent: 5px;
	}	

	
	span.editbox, span.deletebox{
		position: absolute;
		top: 10px;
	}	
	
	.editor span.contentbox {
		min-width: 90%;
		max-width: 90%;
		padding: 0px 0px 0px 4px;
	}
	
	span.editbox{
		right: 60px;
		width: 50px;
	}	
	
	span.deletebox{
		right: 3px;
		width: 60px;
	}
	

	
	
	
}

@media screen and (max-width: 480px) {

	#tagbuttons{
		overflow:hidden;
		height: 16px;
	}


	h2#TopHeader{
		text-align: center;
		padding-top: 30px;
	}
	
	#personalheader {
		position: absolute;
		top: 0;
		left: 50%;
		padding: 4px;
		padding-right: 0px;
		text-align: center;
		width: 300px;
		margin-left: -150px;
	}

	#rightBox, #leftBox{
		float: none;
		width: 90%;
		margin: 0 auto;
	}
	
	#rightBox{
		min-width: 300px;
	}
	
	#rightBox table{
		margin: 0 auto;
	}
	
	
	#sidebar, #side-message{
		float: none;
		width: 90%;
		margin: 0 auto;
		height: auto;
		padding: 2%;
		margin-bottom: 15px;
	}
	
	
	#side-message{
		margin-bottom: 30px;
		margin-top: -25px;
		padding: 15px;
	}
	
	#justform{
		width: 100%;
	}
	
	#wrapper-bottom{
		width: 100%;
	}
	
	#data-Table{
		width: 100%;
		float: none;
	}
		
	#data-Table li span.contentbox{
		min-width: 80%;
		max-width: 80%;
		padding: 4px 0px 0px 0px;
		/*display: block;
		 border: 1px dotted blue; */
		font-size: 14px;
		padding-bottom: 5px;
		line-height: 26px;
		/* background: #EFF; */
		overflow: auto;
 	}
	
	div#uploadpic {
		margin: -8px 8px 30px 3px;
	}
	
	span.expirebox{
		min-width: 55%;
		max-width: 55%;
		text-align: left;
		font-size: 11px;
	}
	
	span.startbox{
		min-width: 40%;
		max-width: 40%;
		text-align: left;
		margin-left: 0px;
		text-indent: 4px;		
		font-size: 11px;
	}
	
	span.editbox, span.deletebox{
		position: absolute;
		display: block;
		
	}	
	
	.editor span.contentbox textarea {
		width:95%;
	}	

	
	span.editbox{
		right: 3px;
		width: 50px;
		max-width: 50px;
		min-width: 50px;
		top: 12px;
		text-align:right;
	}
	
		a.editbutton, a.deletebutton{
			width: 40px;
			text-align: center;
			display: block;
			padding: 1px 3px;
		}
	
	span.deletebox{
		right: 3px;
		width: 50px;
		max-width: 50px;
		min-width: 50px;		
		top: 40px;
	}	
	
	a.xeditbutton, a.xdeletebutton{
		width: 24px;
		height: 24px;
		display: block;
		background: #FAA url("../img/admin/delete_edit.png") no-repeat left top;
		text-indent: 1000px;
		overflow: hidden;
		padding: 0px;
		border-radius: 12px 12px;
		-webkit-border-radius: 12px 12px;
		border: none;
	}	
	
	a.xeditbutton{
		background-position: 0px -24px;
		background-color: #AAA;
	}
	
	
	
	
}
/* iPhone portrait */
@media screen and (max-width: 320px) {

	/* ซ่อนข้อมูลไปเลย */
	#leftBox{
		display: none;
	}

	#xCover{
		height: 340px;
		overflow:auto;
	
	}
	
	#xfooter{
		display: none;
	}

	#data-Table li span.contentbox{
		min-width: 240px;
		max-width: 240px;
		/*display: block;
		 border: 1px solid green;
		 background: #EFE; */
	}
	
	#sidebar{
		height: auto;
	}
	
	#stuffname{
		width: 280px;
	}
	
	.editor span.contentbox textarea {
		width: 280px;
	}
	

	
	span.submitbox {
		display: block;
		width: 30px;
		position: absolute;
		right: 35px;
		top: 10px;
		text-align: right;
	}
	
	span.expirebox{
		min-width: 55%;
		max-width: 55%;
		text-align: left;
		font-size: 12px;
	}
	
	span.startbox{
		font-size: 11px;
		min-width: 40%;
		max-width: 40%;
		text-align: left;
		margin-left: 0px;	
		text-indent: 5px;
	}	
	
	span.deletebox{
		/* right: 10px;
		width: 35px; */
	}
	
	span.editbox{
		/* right: 43px;
		width: 35px; */
	}
	
	

}