#agavi_subnav {
	margin-bottom: 20px;
	overflow: hidden;
}

#agavi_subnav h1 {
	line-height: 36px;
}

#agavi_subnav ul {
	margin: 5px;
	float: right;
	overflow: hidden;
	
	list-style: none;
}

#agavi_subnav ul li {
	float: left;
}

#agavi_subnav ul li.active a {
	margin: 0 3px;
	padding: 5px 10px 4px;
	
	display: block;
	
	color: #333;
	text-shadow: 0 1px 1px #fff;
	text-decoration: none;
	
	background-color: #efefef;
	
	border-bottom: 1px solid #ccc;
	-webkit-border-radius: 4px;
}

#agavi_subnav ul li a {
	margin: 0 3px;
	padding: 5px 10px 4px;
	
	display: block;
	
	color: #333;
	text-shadow: 0 1px 1px #fff;
	text-decoration: underline;
}

.agavi_content_documentation ol.thirdlevel
{
	margin-bottom: 20px;
	padding: 0 40px;
	font-size: 120%;
	line-height: 25px;
	font-weight: bold;
	overflow: auto;
}

.agavi_content_documentation ol.thirdlevel > li:nth-child(odd) {
	float:left;
	width: 48%;
	clear:left;
}

.agavi_content_documentation ol.thirdlevel ol {
	margin: 5px 20px 20px;
	font-weight: normal;
}

.agavi_content_documentation ol.thirdlevel > li:nth-child(even) {
	float:left;
	width: 48%;
	margin-left: 4%;
}

.agavi_content_documentation ol.thirdlevel li a {
	color: #333;
}

#guide {
	font-size: 160%;
}

.guide {
	margin-bottom: 20px;
}

.support-links {
	margin: 15px 0;
	
	overflow: hidden;
	
	border: 1px solid #bbb;
	
	-webkit-border-radius: 2px;
	-moz-border-radius: 2px;
	-o-border-radius: 2px;
	border-radius: 2px;
	
	-webkit-box-shadow: 2px 2px 2px #E1E1E1;
	-moz-box-shadow: 2px 2px 2px #E1E1E1;
	-o-box-shadow: 2px 2px 2px #E1E1E1;
	box-shadow: 2px 2px 2px #E1E1E1;
}

.support-links .support-link {
	float: left;
	width: 439px;
	
	text-decoration: none;
}
/*
.support-links .support-link:first-child {
	width: 438px;
	border-right: 1px solid #bbb;
}*/

.support-link span {
	display: block;
}

.support-link span.heading {
	margin: 0;
	padding: 5px 10px;
	clear: both;
	
	color: #111;
	font-size: 120%;
	text-shadow: 0 1px 1px #fff;
	font-weight: normal;
	
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0.1, #E6E6E6), color-stop(0.6, #D6D6D6));
	background: -moz-linear-gradient(top, #E6E6E6, #C9C9C9);
	background-color: #D4D4D4;
	
	border-top: 1px solid #fff;
	border-bottom: 1px solid #aaa;
	
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

.support-link span.heading {
	color: #444;
}

.support-link span.description {
	margin: 0;
	padding: 10px;
	float: left;
	
	color: #111;
	text-shadow: 0 1px 1px #fff;
	
	overflow: hidden;
	
	-webkit-box-shadow: inset 0px 0px 20px #E7E7E7;
	-moz-box-shadow: inset 0px 0px 20px #D3D3D3;
	-o-box-shadow: inset 0px 0px 20px #D3D3D3;
	box-shadow: inset 0px 0px 20px #E7E7E7;
	
	background-color: #F8F8F8;
	
	border-top: 1px solid #fff;
	border-left: 1px solid #fff;
	border-right: 1px solid #ccc;
	border-bottom: 1px solid #ccc;
}

.support-link:hover span.heading {
	background: -webkit-gradient(linear, left top, left bottom, color-stop(0.1, #D7E9FD), color-stop(0.6, #C5D6EB));
	background: -moz-linear-gradient(top, #D7E9FD, #C5D6EB);
	background-color: #C4D4E5;
}

.support-link:hover span.heading {
	color: #444A54;
}

.support-link:hover span.description {
	background-color: #E8F1FB;
	
	-webkit-box-shadow: inset 0px 0px 20px #CDD7E5;
	-moz-box-shadow: inset 0px 0px 20px #CDD7E5;
	-o-box-shadow: inset 0px 0px 20px #CDD7E5;
	box-shadow: inset 0px 0px 20px #CDD7E5;
	
	color: #444A54;
}


#toc {
	float: right;
	list-style: none;	
}

#toc li {
	position: relative;
}

#toc li a {
	display: block;
	padding: 5px 10px;
	
	background-color: #efefef;
	border: 1px solid #ccc;
	border-radius: 4px;
	color: #666;
}

/* This is for the docs text */
#main
{
/*	width: 610px;*/
/*	padding-left: 250px;*/
	
	line-height: 20px;
	color: #444;
}

#main p
{ 
	margin-top: 1em; 
}

#main h1
{ 
	padding-top: 0.5em;
	padding-bottom: 1em;
}

#main h1.topictitle1 {
	font-size: 20px;
	padding: 0;
}

#main pre, 
#main dl
{ 
	background: #F9F9F9;
	padding: 15px;
	border: 1px solid #ccc;
}

#main pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word;       /* Internet Explorer 5.5+ */
}

#main dd
{
	padding-left: 1em;
}

#main dt
{
	font-weight: bold;
}

#main span.apiname
{
	font-weight: bold;
}

#main kbd
{
	font-weight: bold
}

#main div.section
{
	padding-top: 1em;
}

#main h2.sectiontitle
{
/*	border-bottom: 1px solid #ccc;*/
	margin: 1em 0 0.5em;
	font-size: 15px;
	font-weight: normal;
}

#main pre.sh_sourceCode, 
#main dl
{
	border: 1px solid #CCC; 
	margin-top: 2em; 
	margin-bottom: 2em;
}

#main table {
	margin: 15px 0;
	padding: 10px;
	
	width: 100%;
}

#main table th, #main table td {
	padding: 5px;
	
	border: 0;
	
	border-bottom: 2px solid #f1f1f1;
}

#main table caption {
	padding: 0 5px;
	text-align: left;
	font-weight: bold;
	
	color: #777;
}

#main img {
	margin: 20px;
	padding: 5px;
	border: 1px solid #ccc;
}

#main .apiname {
	padding: 3px;
	font-family: monospace;
	background-color: #efefef;
}

#main .p .codeblock, #main .p .sh_php {
	margin: 20px 0;
}

#main ul,
#main ol
{
	margin: 10px 30px;
}

#main ul li,
#main ol li
{
	margin-bottom: 5px;
}

#toc_page {
	display: none;
	margin-bottom: 30px;
	
	background-color: #EAEAEA;
	
	border: 1px solid #ccc;
	
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
}

#toc_page .thirdlevel {
	margin: 0;
	padding: 10px 40px 20px;
	height: 180px;
	overflow-y: scroll;
	
	border-top: 1px solid #fff;
	
	-webkit-border-radius: 4px;
	-moz-border-radius: 4px;
	-o-border-radius: 4px;
	border-radius: 4px;
	
	overflow: auto;
	
	color: #777;
	text-transform: capitalize;
	text-shadow: 0 1px 1px #fff;
}

#toc_page .thirdlevel>li {
	width: 350px;
	float: left;
}

#toc_page .thirdlevel>li:nth-child(2n+1) {
	padding-right: 60px;
	clear: both;
}

#toc_page .thirdlevel li {
	line-height: 22px;
	font-size: 12px;
}

#toc_page .thirdlevel li a {
	color: #464646;
}

#toc_page ::-webkit-scrollbar {
	width: 20px;
}

#toc_page ::-webkit-scrollbar-thumb:vertical {
	height: 50px;
	border-width: 8 0 0 0;
	-webkit-border-image: url(../images/thumb.png) 0 0 0 0 stretch stretch;
}

#toc_page a {
	color: #777;
}
