/**********************************

Use: Reset Styles for all browsers

***********************************/

body, p, blockquote {
    margin: 0;
    padding: 0;
}

a img, iframe { border: none; }

/* Headers
------------------------------*/

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    padding: 0;
    font-size: 100%;
}

/* Lists
------------------------------*/

ul, ol, dl, li, dt, dd {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Links
------------------------------*/

a, a:link {}
a:visited {}
a:hover {}
a:active {}

/* Forms
------------------------------*/

form, fieldset {
    margin: 0;
    padding: 0;
}

fieldset { border: 1px solid #000; }

legend {
    padding: 0;
    color: #000;
}

input, textarea, select {
    margin: 0;
    padding: 1px;
    font-size: 100%;
    font-family: inherit;
}

select { padding: 0; }body, div { font-family: 'lucida grande', helvetica, verdana, arial, sans-serif }
body {
    margin: 0;
    padding: 0;
    text-align:center;
    font-size: 13px;
    color: #333;line-height: 1.5em;
}
body{
    background: url('../images/bg_wrapper.png') repeat-y top center;
    background-color: #eeeeee;
}
a:link,a:visited{
    color:#333333;
    text-decoration: none;
}
a:hover{
    color:#ff860d;
}
#maincontainer{
    width: 970px; /*Width of main container*/
    margin: 0 auto; /*Center container on page*/
}

#contentwrapper{
    float: left;
    width: 100%;
}

#contentcolumn{
    margin: 0 190px 0 190px; /*Margins for content column. Should be "0 RightColumnWidth 0 LeftColumnWidth*/
}

#contentcolumn2{
    margin: 0 0px 0 190px; /*Margins for content column. Should be "0 RightColumnWidth 0 LeftColumnWidth*/
}

#leftcolumn{
    float: left;
    width: 180px; /*Width of left column in pixel*/
    margin-left: -970px; /*Set margin to that of -(MainContainerWidth)*/
}

#rightcolumn{
    float: left;
    width: 180px; /*Width of right column*/
    margin-left: -180px; /*Set left margin to -(RightColumnWidth)*/
}

#footer{
    clear: left;
    width: 100%;
    text-align: center;
    padding: 20px 0 40px 0;
    background-color: #525252;
    color:#fff;
    border-top: 6px solid #2d2d2d;
}
.innertube{
    margin: 10px; /*Margins for inner DIV inside each column (to provide padding)*/
    margin-top: 0;
    margin-bottom: 0;
}
.clr{
    clear:both;
}
/* Main menu */
.topmenu_t div.topmenu {
    background: url('../images/topmenu/menu_tl.png') no-repeat top left;
}
.topmenu_box {
    background: #ffffff url('../images/topmenu/menu_tc.png') repeat-x top left;
}
.topmenu_t {
    background: transparent url('../images/topmenu/menu_tr.png') no-repeat top right;
}
.topmenu_t div, .topmenu_t {
    width: 100%;
    font-size: 1px;
    height: 42px;
}
.topmenu {
    text-align: left;
}
.topmenu ul{
    padding-left: 20px;
}
.topmenu li{
    display: inline;
}
.topmenu li a{
    float: left;
    color: white;
    text-decoration: none;
    padding:11px 15px;
    font: bold 13px Arial;
}
.topmenu li a:visited{
    color: white;
}

.topmenu li a:hover, .topmenu li .current{
    color: white;
    background: transparent url('../images/topmenu/menu_tc_over.png') repeat-x;
}

.sidebar{
    display:block;
    width: 180px;
}
.sidebar ul{
    text-align: left;
    list-style: none;
    margin:0;
    font-size:14px;
}
.sidebar li{
    background: url('../images/menu_middle.png') no-repeat;
    height:34px;
}
.sidebar li span{
    padding-left:18px;
    line-height: 2em;
}
.sidebar li.last{
    height:34px;
    background: url('../images/menu_bottom.png') bottom no-repeat;
}

.sidebar li a:link, .sidebar li a:visited{
    color:#373737;
    text-decoration: none;
}
.sidebar li a:hover{
    color:#ff8000;
}

/* หัว sidebar สีน้ำเงิน*/
.sidebar div.menu_blue{
    background: url('../images/menu_blue.png') top no-repeat;
    height: 34px;
    text-align: left;
}
.sidebar div.menu_blue span{
    font-size: 16px;
    color:#ffffff;
    font-weight: bold;
    line-height: 2em;
    padding: 0 0 0 15px;
}

/* Sidebar สมาชิกล่าสุด */
.sidebar_lastmem{
    display:block;
    width: 180px;
    text-align: left;
}
.sidebar_lastmem div.menu_gray{
    background: url('../images/menu_gray.png') top no-repeat;
    font-size: 16px;
    color:#333333;
    font-weight: bold;
    line-height: 2em;
    padding: 0 0 0 15px;
    text-align: left;
}
.sidebar_lastmem ul{
    text-align: left;
    list-style: none;
    margin:0;
    font-size:14px;
    border: 1px solid #d7d7d7;
    border-top: none;
    border-bottom: none;
    padding: 4px;
    background: url('../images/menu_bottom.png') bottom no-repeat;
}
.sidebar_lastmem li{
    padding: 4px;
}

/* หัว sidebar สีน้ำเท่า*/
.sidebar div.menu_gray{
    background: url('../images/menu_gray.png') top no-repeat;
    height: 34px;
    text-align: left;
}
.sidebar div.menu_gray span{
    font-size: 16px;
    color:#414141;
    font-weight: bold;
    line-height: 2em;
    padding: 0 0 0 15px;
}

/* สถิติเว็บ */
#sidebar_static{
    display: block;
    width: 180px;
    height: 140px;
    background: url('../images/static.png') no-repeat;
}

/* member login */
#member_login{
    display: block;
    width: 180px;
    height: 179px;
    background: url('../images/bg_member_login.png') no-repeat;
}

#member_login .login{
    padding: 50px 0 0 12px;
    text-align: left;
}
#member_login label{
    font-size:12px;
    color:#fff
}
#member_login input{
    padding:2px
}
a.a_register:link, a.a_register:visited{
    color:#0080c0;
    text-decoration: none;
}
a.a_register:hover{
    color:#ff8000;
    text-decoration: underline;
}
/*แสดงรูปสมาชิกหลักจาก login แล้ว*/
.sidebar li.top{
    text-align: center;
    height:auto;
    background: url('../images/menu_middle_t.png') top repeat-y;
}
.sidebar li.top p{
    font-size: 12px;
    text-align: left;
    font-weight: bold;
    color:#3b5998;
    padding:5px 2px 2px 10px;
    background: url('../images/menu_middle.png') bottom no-repeat;
}
.sidebar li span.article{
    padding-right: 5px;
    background: url('../images/edit.gif') no-repeat;
}
.sidebar li span.forum{
    padding-right: 5px;
    background: url('../images/irc_online.png') no-repeat;
}
.sidebar li span.profile{
    padding-right: 5px;
    background: url('../images/gadu.png') no-repeat;
}
.sidebar li span.logout{
    padding-right: 5px;
    background: url('../images/logout.png') no-repeat;
}

/* Table GridView*/
.gridview{
    width: 100%;
    border: 0px solid #c9c9c9;
    border-collapse: collapse;
    text-align: left;
}
.gridview th{
    height: 12px;
    border-bottom: 1px solid #c9c9c9;
    padding: 8px 3px;
}
.gridview td{
    height: 16px;
    border: 0px solid #c9c9c9;
    padding: 5px 3px;
}
.gridview .th, .gridview .th_forum{
    font-weight: bold;
    color: #ffffff;
    background-color: #3e73a8;
    text-align: center;
}
.gridview .th{
    background-color: #3e73a8;
}
.gridview .th_forum{
    background-color: #f7941d;
}
.gridview a:link, .gridview a:visited{
    color:#0b55c4;
    text-decoration: none;
}
.gridview a:hover, .gridview a:active{
    text-decoration: underline;
}

/* navigator_bar*/
.bcm_box {
    background: #ffffff url('../images/navigatorbar/nav_tc.png') repeat-x top left;
}
.bcm_t div {
    background: url('../images/navigatorbar/nav_tl.png') no-repeat top left;
    text-align: left;
}
.bcm_t {
    background: transparent url('../images/navigatorbar/nav_tr.png') no-repeat top right;
}
.bcm_b div {
    background: url('../images/navigatorbar/nav_bl.png') no-repeat bottom left;
}
.bcm_b {
    background: transparent url('../images/navigatorbar/nav_br.png') no-repeat bottom right;
}
.bcm_bc {
    background: transparent url('../images/navigatorbar/nav_bc.png') repeat-x bottom left;
}
.bcm_t div, .bcm_t, .bcm_b div, .bcm_b {
    width: 100%;
    font-size: 1px;
    height: 14px;
}
.bcm_content {
    border-left:1px solid #d7d7d7;
    border-right:1px solid #d7d7d7;
    text-align: left;
    padding:0 10px 0 10px;
}
.bcm_box span.previous{

}
.bcm_box span.delimiter{
    padding:0 1em;
    background: url('../images/i-breadcrumb-bullet.gif') center no-repeat;
}
.bcm_box span.current{
    color:#888888;
}
.bcm_box span.previous a{
    color: #0080c0;
    text-decoration: none;
}
.bcm_box span.previous a:hover{
    color:#ff8000;
    text-decoration: underline;
}

/*topic*/
.topic_box {
    background: #ffffff url('../images/topic_tc.png') repeat-x top left;
}
.topic_t {
    background: transparent url('../images/topic_tr.png') no-repeat top right;
}
.topic_b div {
    background: url('../images/topic_bl.png') no-repeat bottom left;
}
.topic_b {
    background: transparent url('../images/topic_br.png') no-repeat bottom right;
}
.topic_bc {
    background: transparent url('../images/topic_bc.png') repeat-x bottom left;
}
.topic_t div, .topic_t {
    width: 100%;
    font-size: 1px;
    height: 46px;
}
.topic_b div, .topic_b {
    width: 100%;
    font-size: 1px;
    height: 15px;
}
.topic_content {
    border-left:1px solid #d7d7d7;
    border-right:1px solid #d7d7d7;
}

/* topic article */
.topic_t div.article {
    background: url('../images/topic_article.png') no-repeat top left;
    font-size: 20px;
    text-align: left;
}

/* topic forum */
.topic_t div.forum {
    background: url('../images/topic_forum.png') no-repeat top left;
    font-size: 20px;
    text-align: left;
}

/*topic register*/
.register_t div.register {
    background: url('../images/regis_tl.png') no-repeat top left;
}
.register_box {
    background: #ffffff url('../images/regis_tc.png') repeat-x top left;
}
.register_t {
    background: transparent url('../images/regis_tr.png') no-repeat top right;
}
.register_t div, .register_t {
    width: 100%;
    font-size: 1px;
    height: 50px;
}
.register_content {
    text-align: left;
    background: url('../images/bg_green.png') repeat-x top left;
}
.register_content div.myform {
    clear:left;
    padding-top: 0.4em;
}
.register_content div.myform label.lbl{
    float: left;
    font-size: 1em;
    padding:0.2em;
    margin-right: 4px;
}
.register_content div.myform input.txt{
    font-size: 1.2em;
    padding:2px;
}

/*topic guestbookr*/
.gbook_t div.gbook {
    background: url('../images/gbook_tl.png') no-repeat top left;
}
.gbook_box {
    background: #ffffff url('../images/gbook_tc.png') repeat-x top left;
}
.gbook_t {
    background: transparent url('../images/gbook_tr.png') no-repeat top right;
}
.gbook_t div, .gbook_t {
    width: 100%;
    font-size: 1px;
    height: 50px;
}
.gbook_content {
    text-align: left;
}
.gbook_content div.myform {
    clear:left;
    padding-top: 0.4em;
}
.gbook_content div.myform label.lbl{
    float: left;
    font-size: 1em;
    padding:0.2em;
    margin-right: 4px;
}
.gbook_content div.myform input.txt{
    font-size: 1.2em;
    padding:2px;
}
.gbook_content ul{
    list-style: none;
}
.gbook_content li{
    margin-top:15px;
    padding:5px;
    background-color: #fbfbfd;
    border: 1px dotted #e5e5e5;
}
/* POST & Reply*/
.post_by{
    font-size: 12px;
    color: #666680;
}
.post_by_date{
    font-size: 10px;
    color: #666680;
}
.post_buy span.icon{

}
.block_post{
    padding: 4px;
    text-align: left;
}
.block_post p.title{
    font-size:130%;
    font-weight: bold;
    color:#0076ae;
    padding:10px 0 20px 0;
}
.block_post div.block_postby{
    clear:both;
    float:left;
    width:100%;
    background-color: #f5f5f5;
    color:#828282;
    border-top: 1px solid #dfdfdf;
    border-bottom: 1px solid #dfdfdf;
}
.block_post div.block_postby .left{
    float:left;
    width:350px;
    padding: 5px;
}
.block_post div.block_postby .right{
    float:right;
    padding: 5px;
}

.block_ckeditor{
    clear: both;
    padding: 40px 0 20px 0;
    text-align: left;
}
.block_ckeditor p.title{
    padding: 4px;
    text-align: left;
    background: url('../images/th_bg.png') repeat-x;
}

.block_reply{
    text-align: left;
    border: 5px solid #8c8c8c;
}
.block_reply div.content{
    padding:10px;
    background-color: #ffffff;
}
.block_reply div.reply_by{
    background-color: #f5f5f5;
    color:#828282;
    border-top: 1px solid #dfdfdf;
    padding: 5px;
}

.block_nologin{
    padding:10px;
    background-color: #ffe8f3;
    border:1px solid #ffaed7;
    font-size: 1.2em;
}

/* Article LastPost*/
#article_last ul{
    list-style: none;
}
#article_last li{
    display:block;
    padding: 4px 0;
    border-bottom: 1px dashed #cfcfcf;
}
#article_last li a:link, #article_last li a:visited{
    color:#007cb9;
    text-decoration: none;
}
#article_last li a:hover{
    color:#ee9a11;
    text-decoration: underline;
}
#article_last .pic{
    float:left;
    width:70px;
    text-align: left;
}
#article_last .pic img{
    border:1px solid #dbdbdb;
}
#article_last .info{
    margin:0;
    text-align:left;
    overflow:hidden; /** เพิ่มลงไป **/
}

/* Menu Side Forum*/
#menu_forum{
    display: block;
    width: 180px;
}
#memu_forum img{
    border:0px;
}
/* Forum LastPost*/
#forum_last ul{
    list-style: none;
}
#forum_last li{
    display:block;
    padding: 4px 0;
    border-bottom: 1px dashed #cfcfcf;
}
#forum_last li a:link, #forum_last li a:visited{
    color:#007cb9;
    text-decoration: none;
}
#forum_last li a:hover{
    color:#ee9a11;
    text-decoration: underline;
}
#forum_last .pic{
    float:left;
    width:70px;
    text-align: left;
}
#forum_last .pic img{
    border:0;
}
#forum_last .info{
    margin:0;
    text-align:left;
    overflow:hidden;
}


/*Facebox*/
.myfacebox-success{
    font-size:1.2em;
    color:#355a88;
}
.myfacebox-error{
    font-size:1.2em;
    color:#ff0000;
}


/* Pagination */
.pagination strong{

}

.pagination a{
    padding: 0.2em 0.5em;
    background-color: #efefef;
    border: 1px solid #c1c1c1;
    margin-right: 2px;
    color: #006697;
}
.pagination a:link, .pagination a:visited{
    text-decoration: none;
}
.pagination a:hover{
    background-color:#d3d3d3;
    text-decoration: underline;
}a.btn_login {
    display: block;
    width:60px;
    height:25px;
    background:url('../images/btn_login.png') no-repeat 0px 0px;
}
a.btn_login:hover {
    color:#333333;
    background:url('../images/btn_login.png') no-repeat 0px -25px;
}
/*ตอบบทความ*/
a.btn_post{
    display: block;
    width:100px;
    height:30px;
    background:url('../images/btn_post.png') no-repeat 0px 0px;
}
a.btn_post:hover{
    background:url('../images/btn_post.png') no-repeat 0px -30px;
}

/*สร้างบทความใหม่*/
a.btn_newarticle{
    display: block;
    width:100px;
    height:30px;
    background:url('../images/btn_newarticle.png') no-repeat 0px 0px;
}
a.btn_newarticle:hover{
    background:url('../images/btn_newarticle.png') no-repeat 0px -30px;
}

/*logout*/
a.btn_logout{
    display: block;
    width:90px;
    height:20px;
    background:url('../images/button_logout.png') no-repeat 0px 0px;
}
a.btn_logout:hover{
    background:url('../images/button_logout.png') no-repeat 0px -20px;
}

/*สร้างกระทู้ใหม่*/
a.btn_newforum{
    display: block;
    width:100px;
    height:30px;
    background:url('../images/btn_newforum.png') no-repeat 0px 0px;
}
a.btn_newforum:hover{
    background:url('../images/btn_newforum.png') no-repeat 0px -30px;
}
a.readmore{
    padding: 2px 20px 4px 0px;
    background: url('../images/bullet_zone.png') right no-repeat;
}
