/* --- GENERAL RULES --- */
body
{
	margin: 10px 0;
	padding: 0;
	color: #444;
	background: #0095A5;
	font: 85%/1.3 arial, helvetica, sans-serif;
}

h2, h3, h4, h5
{
	color: #000;
	clear: both;
}

h2
{
	font-size: 175%;
	margin: 0 0 .5em 0;
}

h3
{
	font-size: 120%;
	margin: 0 0 .5em 0;
}

h4, h5
{
	font-size: 100%;
	margin: 0 0 .5em 0;
}

h5
{
	font-weight: normal;
	font-style: italic;
	margin-top: -0.5em;
}

h2 strong, h3 strong
{
	color: #663;
}

p, ul
{
	margin: 0;
}

img
{
	border: none;
}

a
{
	text-decoration: none;
	color: #0095A5;
}

code
{
	font-family: courier, times, monospace;
	background: #eee;
}

caption
{
	font-weight: bold;
	font-size: 120%;
	margin: 1em 0 0 0;
	text-align: left;
}

/* --- HEADER RULES --- */
#header
{
	position: relative;
	margin-left: auto;
	margin-right: auto;
	background: url(/images/kingsgym_header4.gif) no-repeat 0 0 white;
	width: 1120px;
	height: 115px;
}

#header h1 span
{
	position: absolute;
	left: -5000px;
	width: 4000px;
}

#header ul
{
	position: absolute;
	top: 0;
	width: 100%;
	margin: 0;
	padding: 20px 0 0 0;
	list-style-type: none;
	text-align: right;
	font-size: 75%;
}

#header li
{
	margin-right: 20px;
}

/* --- TOPNAV RULES --- */
#topnav
{
	margin-left: auto;
	margin-right: auto;
	padding: 0;
	background: url(/images/kingsgym_topnav4.gif) no-repeat 0 0 white;
	width: 1120px;
	height: 20px;
}

#topnav a
{
	color: #0095A5;
}

#topnav a:hover, #topnav a:active
{
	color: black;
}

#topnav ul
{
	margin: 0 5px;
	padding: 0;
	list-style-type: none;
	text-align: right;
}

#topnav li
{
	display: inline;
	margin-right: 1em;
}

#topnav li a
{
	font-weight: bold;
 	text-transform: lowercase;
}

#topnav li#current a
{
	color: black;
}

/* --- CONTAINER RULES --- */
#container
{
	margin-left: auto;
	margin-right: auto;
	background: url(/images/kingsgym_sidebar4.gif) no-repeat 0 0 white;
	width: 1120px;
}

/* --- SIDEBAR RULES --- */
#sidebar
{
	float: left;
	width: 160px;
	margin: 75px 10px;
	padding-bottom: 1em;
	display: inline;
}

#sidebar a
{
	font-style: italic;
	font-weight: bold;
}

#sidebar ul
{
	padding: 0;
	margin: 0;
	list-style-type: none;
	text-align: left;
	font-size: 14px;
	line-height: 18px;
}

#sidebar ul ul
{
	font-size: 10px;
	line-height: 14px;
}

#sidebar li:hover ul,
#sidebar li#current ul
{
	padding-top: 7px;
}

#sidebar li
{
	background: url(/images/sidebar_list0.gif) no-repeat 0 0;
	padding: 1px 0 7px 10px;
}

#sidebar li a
{
	display: block;
}

#sidebar li a:hover, #sidebar li a:active, #sidebar li#current a,
#sidebar li#current ul a:hover, #sidebar li#current ul a:active, #sidebar li#current ul li#current a
{
	color: black;
}

#sidebar li#current ul a
{
	color: #0095A5;
}

#sidebar li#current
{
	background: url(/images/sidebar_list1.gif) no-repeat 0 0;
}

#sidebar li li
{
	display: none;
	background: url(/images/sidebar_sublist0.gif) no-repeat 0 0;
}

#sidebar li:hover li, #sidebar li:active li, #sidebar li#current li
{
	display: block;
}

#sidebar li#current li#current
{
	background: url(/images/sidebar_sublist1.gif) no-repeat 0 0;
}

#sidebar label
{
	font-weight: bold;
	color: #000;
	font-size: 120%;
}

#sidebar form
{
	margin: 0 0 1em 0;
	padding: 0;
}

#sidebar input#s
{
	width: 100%;
}

/* --- CONTENT RULES --- */
#content
{
	float: left;
	width: 560px;
	margin: 32px 20px 10px 20px;
	display: inline;
	padding-bottom: 1em;
}

#content a:hover, #content a:active
{
	color: black;
}

#content a
{
	padding-bottom: 1px;
	background: url(/images/dots-alink.gif) repeat-x 0 100%;
}

#content a.img
{
	padding-bottom: 0;
	background-image: none;
}

#content label span
{
	font-size: 80%;
	color: #555;
}

#content div
{
	clear: both;
	padding-bottom: 1em;
}

#content div.left
{
	text-align: left;
}

#content div.center
{
	text-align: center;
}

#content div.right
{
	text-align: right;
}

#content img
{
	clear: both;
	padding: 0 0 1em 0;
}

#content img.left,
#content img[align=left],
#content img[style="float: left;"]
{
	float: left;
	padding: 0 1em 1em 0;
}

#content img.right,
#content img[align=right],
#content imh[style="float: right;"]
{
	float: right;
	padding: 0 0 1em 1em;
}

#content ul.menu
{
	padding-left: 0;
	margin-left: 0;
}

#content ul.menu li
{
	border-top: 4px solid #D6EDEE;
	list-style-type: none;
	margin-bottom: 1em;
}

#content ul.menu h3
{
	margin-top: 0.5em;
}

#content ul.menu h3 a
{
	color: black;
	background: transparent;
}

#content ul.menu h3 a:hover
{
	background: url(/images/dots-alink.gif) repeat-x 0 100%;
}

/* --- INFOBAR RULES --- */
#infobar
{
	float: left;
	width: 320px;
	margin: 75px 10px 0px 10px;
	display: inline;
	padding-bottom: 1em;
	font-size: 85%;
}

#infobar a:hover, #infobar a:active
{
	color: black;
}

#infobar a
{
	padding-bottom: 1px;
	background: url(/images/dots-alink.gif) repeat-x 0 100%;
}

#infobar ul
{
	padding-left: 15px;
}

#infobar div.box
{
	padding: 10px 0 0 0;
	background: url(/images/infobar_wide_top.gif) top no-repeat;
}

#infobar div.box div
{
	padding: 0 10px 5px 10px;
	background: url(/images/infobar_wide_bottom.gif) bottom no-repeat;
}

#infobar div.box-yellow a,
#infobar div.box-blue a,
#infobar div.box-red a
{
	color: black;
	background: transparent;
	text-decoration: underline;
}

#infobar div.box-yellow ul.menu a,
#infobar div.box-blue ul.menu a,
#infobar div.box-red ul.menu a
{
	text-decoration: none;
}

#infobar div.box-yellow ul.menu a:hover,
#infobar div.box-blue ul.menu a:hover,
#infobar div.box-red ul.menu a:hover
{
	text-decoration: underline;
}

#infobar div.box-yellow
{
	padding: 10px 0 0 0;
	background: url(/images/infobar_wide_yellow_top.gif) top no-repeat;
}

#infobar div.box-yellow div
{
	padding: 0 10px 5px 10px;
	background: url(/images/infobar_wide_yellow_bottom.gif) bottom no-repeat;
}

#infobar div.box-blue
{
	padding: 10px 0 0 0;
	background: url(/images/infobar_wide_blue_top.gif) top no-repeat;
}

#infobar div.box-blue div
{
	padding: 0 10px 5px 10px;
	background: url(/images/infobar_wide_blue_bottom.gif) bottom no-repeat;
}

#infobar div.box-red
{
	padding: 10px 0 0 0;
	background: url(/images/infobar_wide_red_top.gif) top no-repeat;
}

#infobar div.box-red div
{
	padding: 0 10px 5px 10px;
	background: url(/images/infobar_wide_red_bottom.gif) bottom no-repeat;
}

#infobar div div.bottom
{
	clear: both;
	background: none;
}

#infobar img.left,
#infobar img[align=left],
#infobar img[style="float: left;"]
{
	float: left;
	padding: 0 10px 5px 0;
}

#infobar img.right,
#infobar img[align=right],
#infobar img[style="float: right;"]
{
	float: right;
	padding: 0 0 5px 10px;
}


/* --- FOOTER RULES --- */
#footer
{
	clear: both;
	font-size: 85%;
	padding: 10px 0 2px 0;
	background: url(/images/footer.gif) repeat-x 0 0 #D6EDEE;
	width: 1120px;
}

#footer p
{
	margin: 0 20px 0 200px;
}

/* --- CLASSES RULES --- */
.intro
{
	background: url(/images/dots-horizontal.gif) repeat-x 0 100%;
	padding-bottom: 1em;
	margin-bottom: 2em;
}

.post
{
	margin: 1em 0 3em;
}

.date
{
	font-size: 85%;
	font-style: italic;
	margin: 0 0 .5em 0;
}

.menu li
{
	padding: 0.25em 0;
}

.navigation-top
{
	margin: 0;
	padding: 0 0 3em;
	list-style-type: none;
	font-size: 85%;
}

.navigation-bottom
{
	margin: 0;
	padding: 2em 0 3em;
	list-style-type: none;
	font-size: 85%;
}

.alignleft
{
	float: left;
	width: 47%;
	background: url(/images/arrow2.gif) no-repeat 0 .4em;
	padding-left: 10px;
}

.alignright
{
	float: right;
	width: 47%;
	background: url(/images/arrow.gif) no-repeat 100% .4em;
	padding-right: 10px;
	text-align: right;
}

.wideinput {
	width: 100%;
}

.imagefloat
{
	float: right;
	margin: 0 0 1em 1em;
}

.sitelist
{
	clear: both;
	margin: 0;
	padding: 1em 0;
}

.sitelist img
{
	float: left;
	margin: 0 1em 1em 0;
	padding: 2px;
	border: 1px solid #bbb;
}

/* --- GALLERY --- */

#gallery .maximum_64 a img,
#gallery .maximum_96 a img,
#gallery .maximum_120 a img {
	#position: relative;
	#top: -50%;
	#left: -50%;
	clear: none;
	margin: 0;
	padding: 0;
}

#gallery .maximum_64 a,
#gallery .maximum_96 a,
#gallery .maximum_120 a {
	#position: absolute;
	#top: 50%;
	#left: 50%;
	display:table-cell;
	vertical-align: middle;
}

#gallery .maximum_64,
#gallery .maximum_96,
#gallery .maximum_120 {
	#position: relative;
	display:table;
	overflow: hidden;
	clear: none;
	float: left;
	margin: 0;
	padding: 0;
	text-align: center;
}

#gallery .maximum_64 {
	width: 80px;
	height: 80px;
	background: url(../images/frame_64.gif) no-repeat;
}

#gallery .maximum_96 {
	width: 112px;
	height: 112px;
	background: url(../images/frame_96.gif) no-repeat;
}

#gallery .maximum_120 {
	width: 140px;
	height: 140px;
	background: url(../images/frame_120.gif) no-repeat;
}

@media print
{
	body
	{
		background: white;
		margin: 0 0 0 80px;
	}

	#header
	{
		position: relative;
		background-image: none;
		width: auto;
		height: auto;
	}

	#header h1 span
	{
		position: relative;
		left: 0px;
	}

	#header ul
	{
		display: none;
	}

	#topnav, #sidebar, #footer
	{
		display: none;
	}

	#container
	{
		margin: 0;
		width: 560px;
		background-image: none;
	}

	#content
	{
		clear: both;
		float: none;
		margin: 0;
		padding: 0;
	}
}
