<?header("content-type: text/css");
include("../db.php");

$page = "";
if(isset($_SERVER["HTTP_HOST"]))
	$page = substr($_SERVER["HTTP_HOST"],0,strpos($_SERVER["HTTP_HOST"],"."));
if($page == "my")
{
	$page = array();
	$rgb = "DC0208";
}
else
{
	$res = mysql_query("SELECT * FROM `pages` WHERE `name` = '" . mysql_real_escape_string($page) . "'") or die(mysql_error());
	$page = mysql_fetch_assoc($res);
	if(!$page)
	{
		$res = mysql_query("SELECT * FROM `pages` LIMIT 1") or die(mysql_error());
		$page = mysql_fetch_assoc($res);
	}
	switch($page["maincolor"])
	{
		case "orange":	$rgb = "F89603"; break;
		case "blue":	$rgb = "46B3D4"; break;
		case "green":	$rgb = "9EBD08"; break;
		case "red":		$rgb = "DC0208"; break;

		default:
			$rgb = "F89603";
	}
}


?>

body {
	margin: 0px;
	background-image: url(/img/topbg.png);
	background-repeat: repeat-x;
	background-position: top;
	font-family: "Trebuchet MS", Arial, Verdana;
	font-size: 12px;
	color: #333333;
}
img {
	border: 0;
}
form {
	margin: 0px 0px 5px 0px;
}
h1 {
	margin: 8px 0px;
	font-size: 24px;
	text-transform: capitalize;
	color: #F15722;
}
p {
	margin: 0px;
}
a {
	color: #666666;
	text-decoration: none;
}
a:hover {
	text-decoration: underline;
}
#mainboard {
	width: 920px;
	text-align: left;
}
#banner {
	height: 99px;
}
#logo {
	width: 300px;
	padding: 28px 0px 2px 10px;
	float: left;
}
#menu {
	float: right;
	margin-top: 61px;
}
#menu ul {
	margin:0;
	padding:0;
	list-style: none;
	list-style-image:none;
}
#menu ul li {
	margin:0 0 0 3px;
	padding:0;
	float:left;
}
#menu ul li a {
	color:#FFFFFF;
	display:block;
	height:28px;
}
#menu1 {
	background-image: url(/img/menu1.gif);
	background-repeat: no-repeat;
	width: 129px;
	height: 38px;
	color:#FFFFFF;
}
#menu1 a {
	padding:10px 0 0 32px;
}
#menu1:hover {
	text-decoration:underline;
	background-image: url(/img/menu1.1.gif);
}
#menu2 {
	background-image: url(/img/menu2.gif);
	background-repeat: no-repeat;
	width: 124px;
	height: 38px;
	color:#FFFFFF;
}
#menu2 a {
	padding:10px 0 0 25px;
}
#menu2:hover {
	text-decoration:underline;
	background-image: url(/img/menu2.1.gif);
}
#menu3 {
	background-image: url(/img/menu3.gif);
	background-repeat: no-repeat;
	width: 143px;
	height: 38px;
	color:#FFFFFF;
}
#menu3 a {
	padding:10px 0 0 21px;
}
#menu3:hover {
	text-decoration:underline;
	background-image: url(/img/menu3.1.gif);
}
#menu4 {
	background-image: url(/img/menu4.gif);
	background-repeat: no-repeat;
	width: 149px;
	height: 38px;
	color:#FFFFFF;
}
#menu4 a {
	padding:10px 0 0 32px;
}
#menu4:hover {
	text-decoration:underline;
	background-image: url(/img/menu4.1.gif);
}
#topline {
	height: 3px;
	background-color: #<?=$rgb?>;
}
#bottomline {
	height: 3px;
	background-color: #<?=$rgb?>;
	margin-bottom: 10px;
}
#nav {
	font-size: 12px;
	color: #999999;
	padding: 5px 10px;
}
#main {
}
#right {
	width: 280px;
	margin-left: 626px;
}
#news {
	background-image: url(/img/<?=$page["maincolor"]?>/nbg.png);
	background-repeat: no-repeat;
	width: 610px;
	margin-bottom: 10px;
	position: relative;
	min-height: 230px;
	margin-right: 10px;
	float: left;
}
#latest_left {
	float: left;
	width: 287px;
	position: relative;
}
#latest_right {
	width: 287px;
	margin-left: 290px;
	position: relative;
}
#l_title_green {
	background-image: url(/img/stbg.gif);
	height: 29px;
	padding: 3px 0px 0px 12px;
	font-size: 16px;
	color: #9EB109;
	background-repeat: no-repeat;
	font-weight: bold;
}
#l_title_red {
	background-image: url(/img/stbg.gif);
	height: 29px;
	padding: 3px 0px 0px 12px;
	font-size: 16px;
	color: #9EB109;
	background-repeat: no-repeat;
	font-weight: bold;
}
#l_title_blue {
	background-image: url(/img/stbg.gif);
	height: 29px;
	padding: 3px 0px 0px 12px;
	font-size: 16px;
	color: #298FCD;
	background-repeat: no-repeat;
	font-weight: bold;
}
#l_title_orange {
	background-image: url(/img/stbg.gif);
	height: 29px;
	padding: 3px 0px 0px 12px;
	font-size: 16px;
	color: #9EB109;
	background-repeat: no-repeat;
	font-weight: bold;
}

#pic1 {
	width: 136px;
	height: 136px;
	border: 2px solid #9EB109;
	float: left;
	margin-right: 1px;
}
#subpanel_pic_medium {
	background-repeat: no-repeat;
	width: 114px;
	height: 67px;
	border: 1px solid #676767;
	margin-bottom: 1px;
	margin-left:141px;
}

#pic4 {
	width: 136px;
	height: 136px;
	border: 2px solid #298FCD;
	float: left;
	margin-right: 1px;
}
#subpanel_pic_small {
	background-repeat: no-repeat;
	width: 114px;
	height: 44px;
	border: 1px solid #676767;
	margin-bottom: 1px;
	margin-left: 141px;
}

#comunity {
	width: 300px;
	float: left;
}
#Profile {
	width: 300px;
}
#About {
	width: 300px;
	margin-top: 10px;
}
#games {
	width: 300px;
	margin-left: 310px;
}
#footer {
	position: relative;
	width: 100%;
	float: left;
}
.menu1 {
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
	padding: 10px 0px 0px 25px;
}
.menu2 {
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
	padding: 10px 0px 0px 19px;
}
.menu3 {
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
	padding: 10px 0px 0px 12px;
}
.menu4 {
	font-size: 14px;
	font-weight: bold;
	color: #FFFFFF;
	padding: 10px 0px 0px 30px;
}
.largertxt {
	font-size: 14px;
}

.box1 {
	background-image: url(/img/box1_m.png);
	background-repeat: no-repeat;
	background-position: top;
	min-height: 232px;
	padding-bottom: 5px;
	padding-left: 20px;
}
.box1_top {
	background-image: url(/img/box1_top.gif);
	background-repeat: no-repeat;
	height: 10px;
	width: 300px;
}
.box1_bottom {
	background-image: url(/img/box1_bottom.gif);
	background-repeat: no-repeat;
	height: 10px;
	width: 300px;
}
.box1_mbg {
	background-image: url(/img/box1_mid.png);
	background-repeat: repeat-y;
}


/* coloured boxes */
.box1_blue {
	background-image: url(/img/blue/box1_m.png);
	background-repeat: no-repeat;
	background-position: top;
	min-height: 232px;
	padding-bottom: 5px;
	padding-left: 20px;
}
.box1_blue_top {
	background-image: url(/img/blue/box1_top.gif);
	background-repeat: no-repeat;
	height: 10px;
	width: 300px;
}
.box1_blue_bottom {
	background-image: url(/img/blue/box1_bottom.gif);
	background-repeat: no-repeat;
	height: 10px;
	width: 300px;
}
.box1_blue_mbg {
	background-image: url(/img/blue/box1_mid.png);
	background-repeat: repeat-y;
}

/* coloured boxes */
.box1_orange {
	background-image: url(/img/orange/box1_m.png);
	background-repeat: no-repeat;
	background-position: top;
	min-height: 232px;
	padding-bottom: 5px;
	padding-left: 20px;
}
.box1_orange_top {
	background-image: url(/img/orange/box1_top.gif);
	background-repeat: no-repeat;
	height: 10px;
	width: 300px;
}
.box1_orange_bottom {
	background-image: url(/img/orange/box1_bottom.gif);
	background-repeat: no-repeat;
	height: 10px;
	width: 300px;
}
.box1_orange_mbg {
	background-image: url(/img/orange/box1_mid.png);
	background-repeat: repeat-y;
}
/* coloured boxes */
.box1_green {
	background-image: url(/img/green/box1_m.png);
	background-repeat: no-repeat;
	background-position: top;
	min-height: 232px;
	padding-bottom: 5px;
	padding-left: 20px;
}
.box1_green_top {
	background-image: url(/img/green/box1_top.gif);
	background-repeat: no-repeat;
	height: 10px;
	width: 300px;
}
.box1_green_bottom {
	background-image: url(/img/green/box1_bottom.gif);
	background-repeat: no-repeat;
	height: 10px;
	width: 300px;
}
.box1_green_mbg {
	background-image: url(/img/green/box1_mid.png);
	background-repeat: repeat-y;
}


.box2 {
	background-image: url(/img/box2_m.png);
	background-repeat: no-repeat;
	background-position: left top;
	padding: 5px 20px;
	height: 232px;
	padding-bottom: 5px;
}
.box2_top {
	background-image: url(/img/box2_top.gif);
	background-repeat: no-repeat;
	width: 280px;
	height: 10px;
}
.box2_mbg {
	background-image: url(/img/box2_mid.png);
	background-repeat: repeat-y;
}
.box2_bottom {
	background-image: url(/img/box2_bottom.gif);
	background-repeat: no-repeat;
	width: 280px;
	height: 10px;
}
.box3 {
	background-image: url(/img/box3_mid.png);
	background-repeat: repeat-y;
	padding-left: 20px;
	padding-right: 20px;
	padding-bottom: 5px;
	height: 232px;
}
.box3_top {
	background-image: url(/img/box3_top.gif);
	background-repeat: no-repeat;
	width: 280px;
	height: 10px;
}
.box3_bottom {
	background-image: url(/img/box3_bottom.gif);
	background-repeat: no-repeat;
	width: 280px;
	height: 10px;
}


.box4 {
	background-image: url(/img/box4_mid.png);
	background-repeat: repeat-y;
	background-position: top;
	padding-bottom: 5px;
	width: 920px;
}
.box4_top {
	background-image: url(/img/box4_top.gif);
	background-repeat: no-repeat;
	width: 920px;
	height: 10px;
}
.box4_bottom {
	background-image: url(/img/box4_bottom.gif);
	background-repeat: no-repeat;
	width: 920px;
	height: 10px;
}


.title_green {
	font-size: 24px;
	color: #9EB109;
	padding-bottom: 10px;
	text-transform:capitalize;
}
.title_blue {
	font-size: 24px;
	color: #298FCD;
	padding-bottom: 10px;
	text-transform:capitalize;
}
.title_orange {
	font-size: 24px;
	color: #F15722;
	padding-bottom: 10px;
	text-transform:capitalize;
}
.stitle {
	background-image: url(/img/sbg.png);
	background-repeat: no-repeat;
	background-position: left;
	line-height: 14px;
	font-size: 10px;
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	padding-left: 5px;
	margin-top: 53px;
}
.stitle2 {
	background-image: url(/img/sbg.png);
	background-repeat: no-repeat;
	background-position: left;
	line-height: 14px;
	font-size: 10px;
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	padding-left: 5px;
	margin-top: 54px;
}
.stitle3 {
	background-image: url(/img/sbg.png);
	background-repeat: no-repeat;
	background-position: left;
	line-height: 14px;
	font-size: 10px;
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	padding-left: 5px;
	margin-top: 31px;
}
.bottom10 {
	margin-bottom: 10px;
}
.top10 {
	margin-top: 10px;
}
.top20 {
	margin-top: 20px;
}
.right10 {
	margin-right: 10px;
}
.left15 {
	margin-left: 15px;
}
.left35 {
	margin-left: 35px;
}
.blue {
	color: #298FCD;
	font-weight: bold;
}
.register a {
	color: #333333;
	text-decoration: none;
	border-bottom-width: 1px;
	border-bottom-style: dotted;
}
.register a:hover {
	border-bottom: 0;
	text-decoration: none;
}
.orange {
	color: #FF6600;
	font-weight: bold;
}
.orange  a {
	color: #FF6600;
	text-decoration: none;
	border-bottom: 1px dotted;
}
.orange  a:hover {
	border: 0;
	text-decoration: none;
}
.gray {
	color: #999999;
}
.gray a {
	color: #999999;
}
.orange_border {
	border: 2px solid #F15722;
}
.content {
	padding: 0px 20px 0px 0px;
}
.float_left {
	float: left;
}
.lineheight {
	margin: 3px 0px;
}
.input {
	width: 140px;
	font-size: 12px;
}
a.clearlink, a.clearlink:hover
{
	color: #333333;
	text-decoration: none;
}

.floatleft
{
	float: left;
}

.floatright
{
	float: right;
}

.clear
{
	clear: both;
}


.rovatar_panel p
{
	margin-bottom: 15px;
}

#personaloptions
{
	width: 150px;
}

#personaloptions div
{
	display: none;
	position: absolute;
	width: 130px;
	text-align: right;
	padding: 10px;
}

#personaloptions:hover div
{
	display: block;
}

#imageinfo b
{
	color: #9EBD08;
}

.imagecomment strong
{
	color: #9EBD08;
}
