/*---------------------------------------------------------------------
   Basic Style Sheet
   Version 1.0
   Author  Lai, Chan Huai
   Email   chanhuai@gmail.com
   website
---------------------------------------------------------------------*/

/* =Typography
---------------------------------------------------------------------*/
html, body, form, fieldset, h1, h2, h3, h4, h5, h6, p, pre,
blockquote, ul, ol, dl, address, div {
        margin: 0;
        padding: 0;
}

body {
        font: normal 1em "Trebuchet MS", Arial, Helvetica, sans-serif;
        color: #222;
        background: #B64E1B url('images/bg.jpg') repeat-x;
        padding: 20px 0px;
        margin: 0px;
        text-align:center;
}

h2, h3, h4, h5{
	font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
}
h1 {
    font: normal 1.6em Arial, Verdana, sans-serif; letter-spacing: -0.06em; color: #0094D5; line-height: 2.5em;
}

h2 {
    font-size: 1.3em; color: #8E4600; line-height: 2em;
}

h3 {
     font-size: 1.2em; color: #A8562E; padding: 1em 0;
}

h4 {
     font-size: 1em; color: #8E4600; padding: 1em 0;
}


/* =Element
---------------------------------------------------------------------*/


a {
        text-decoration: none;
        color: #242424;
}

img {
        border: none;
}

p {
    font-size: 1em;
}

td{
        vertical-align: top;
}

.picborder { margin-right: 10px; padding: 10px; border: 1px solid #CCC; background: #FFF; text-decoration: none; border-bottom: no-border; }
.picborder-right { margin-left: 10px; padding: 10px; border: 1px solid #CCC; background: #FFF; }
.pic-right { margin-left: 10px; padding: 10px; background: #FFF; }

/* =Layout
---------------------------------------------------------------------*/
#wrapper {
        width: 800px;
        margin: 0px auto;
        padding: 0;
        border: 10px solid #FFF;
        background: #fff url('images/bg-container.gif') repeat-y;

}

/* Sidebar div */
#sidebar {
        width: 200px;
        float: left;
        background: #fff;
}

#logo {
        background: #f5f5f5 url('images/bg-logo.jpg');
        height: 260px;
        padding: 10px;
}

#logo h3 {
        color: brown;
}

#logo h4 {
        color: blue;
}

#news {
    padding: 70px 10px 10px 10px; text-align: left; background: #ddd url('images/bg-news.jpg') no-repeat;
}

#news h2 {
    font-size: 1.2em; color: #222; line-height: 1.5em;
}

#news h4 {
    margin-top: 20px; font-size: 1em; color: #222; line-height: 1em;
}

#news p {
    font: normal 0.8em arial, helveetica, sans-serif; color: #222; line-height: 0.9em;
}

#news a {
        color: red;
}

/* Main Area Div */
#mainarea {
        width: 600px;
        float: right;
        background: #fff;
}

#header {
        padding: 10px 20px 15px 20px;
        text-align: left;
        background: #fff;
        font-size: 0.8em;
}

#header a {
        color: #bbb;
}

#header-index {
    background: #FFF url('images/header01.jpg') bottom right no-repeat;
    text-align: left; padding: 0;   
}


.right {
        float: right;
}

.left {
        float: left;
}
/* Nav
****************************************************/
#nav {	
        background: url('images/bg-nav.jpg') no-repeat;
        text-align: left;
		width: 180px;
}

#nav ul {
        margin: 0px;
        padding: 15px 15px 10px 15px;
        list-style: none;
        width: 160px;
}

#nav ul li {
        margin: 0px;
        padding: 0px;
}

#nav li a {
        margin: 0px;
        padding: 2px 0 0 10px;
        display: block;
        font: bold 0.8em arial, verdana, sans-serif;
        color: #FFFFF5;
        height: 22px;
        border-bottom: 1px solid #D6DB87;
}

#nav li a:hover {    
    color: #FFFFF5; background: #717171;
}

#nav li a.last {
        border-bottom: none;
}

#content {
        padding: 10px 10px 10px 30px;
        background: #fff;
        text-align: left;
}

#primary {
    padding-bottom: 1em;
    /*border-bottom: 1px solid #CCC;*/
}

#primary  p {
    font-size: 0.9em; word-spacing: 0.2em;
	padding-bottom: 1em; 
}

#primary  li {
    margin-left: 2em; font-size: 0.9em; 
}

#primary  li a {
    color: #006699; text-decoration: underline; 
}
/*
#primary img{
    float: left; 
    width: 150px;
    margin-right: 5px;
}
*/
#primary a {
    color: #003366; text-decoration: underline;
}

#pritext {
    width: 380px; border: 0px solid #000;
	
}


#secondary {
    padding: 10px;
    border-top: solid 3px #EEE;
	font: normal 0.8em "Trebuchet MS", Arial, Helvetica, sans-serif;
}

#secondary-left {
    float: left;
	width:280px;
	position: relative;
	padding: 10px;
    background: #EEE;
}
#secondary-left h3 {
  padding: 5px 0 10px 10px; font: normal 1.2em "Trebuchet MS", Arial, Helvetica, sans-serif;
}
#secondary-left a {
   font-size: 1.1em;
}
#secondary-left a:hover {
   text-decoration: none;
}

#secondary-right {
    float: right;
	width:230px;
	position: relative;
	padding: 0;
   
}


/*
#secondary {
    padding: 10px 0 0 0;
    background: #fff url('images/vline.jpg') repeat-y;
}

#secondary h3 { color: brown;
}

#secondary h4{ margin-top: 10px; color: blue;
}

#secondary a {
        color: red;
}
*/
/*
#secondary img {
        width: 200px;
}
*/
#sectxt { width: 330px;
}
#sectxt h4 { font-size: 1.2em; color: #91BCC3; line-height: 0.8em;
}
#sectxt p { font-size: 0.85em; color: #222; line-height: 1em;
}

#sectxt-prod { width: 100%;}
#sectxt-prod  h4 { font-size: 1em; color: #449CBE; line-height: 0.8em; padding-top: 3.5em;}
#sectxt-prod  p, #sectxt-prod  td { font-size: 0.7em; color: #222; line-height: 1em; }
#sectxt-prod  td a { color: #A8562E; }

#footer {
	font-size: 0.75em;
        margin: 10px 0 0 0;
        padding: 20px 10px;
        color: #666;
        border-top: 1px solid #bbb;
        background: #fff;
}

#footer a{
        color: #333;
}


/* =Teaser Box
------------------------------------------------------------*/
 #primary .table1 {border: 2px solid #E3E3E3;border-collapse:collapse; width:550px; /*margin: 0 auto;*/}
		#primary .table1 td {background: #fff url("images/sprites.gif") repeat-x 0 -1600px;padding:3px;border: 1px solid #fff}
		#primary .table1 th {text-align:left;border: 1px solid #fff}
		#primary .table1 thead th {color:#fff;font: 14px verdana,arial,sans-serif;background: #900 url("images/sprites.gif") repeat-x 0 -1300px;padding: 10px 6px}
		#primary .table1 tbody th {color:#fff;font: 12px verdana,arial,sans-serif;background: #900 url("images/sprites.gif") repeat-x 0 -1400px;padding: 6px}
		#primary .table1 tbody td {color:#333;font: 0.8em arial,verdana,sans-serif;background: #FFF;padding: 6px; border-bottom:1px solid #EEE;}	
		#primary .table1 tbody td.description {font-size: 0.75em; font-weight:bold; color:#267DBF;}	
		#primary .table1 tbody td.click {color:#555555;font-size: 0.7em;}	
		#primary .table1 li a {text-decoration: none; color: #000000;}	
		#primary .table1 tbody td a:hover{text-decoration: underline; color: #046380; }	
		#primary .table1 tbody th.sub {font: bold 0.89em arial,verdana,sans-serif;color:#000;background: #efefef url("images/sprites.gif") repeat-x 0 -1500px;padding: 6px}
			#primary .table1 tbody th.sublink  {color:#550000; font-size: 0.7em; background: #efefef url("images/sprites.gif") repeat-x 0 -1500px; padding: 6px}
		

.clear {
        clear: both;
}

.clearfix:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}

.clearfix {display: inline-block;}

/* Hides from IE-mac \*/
* html .clearfix {height: 1%;}
.clearfix {display: block;}
/* End hide from IE-mac */

