<?
session_start();
include "conf.php";
$data = mysql_connect($base_name, $base_user, $base_pass);
mysql_select_db($db_name,$data);

?>

<html>
<head>
<META http-equiv=Content-Type content="text/html; charset=windows-1251">
<META http-equiv=Cache-Control content=no-cache>
<META http-equiv=Pragma content=no-cache>
<META http-equiv=Expires content=0>
<META http-equiv=imagetoolbar content=no><LINK href="styles/design2.css" type=text/css rel=stylesheet>
<SCRIPT language=javascript type=text/javascript>

function showtable (tblname) {
	hidesel(tblname);
	hidemenu(0);
	document.getElementById('menu'+tblname).style.visibility = 'visible';
	document.getElementById('menu'+tblname).style.width = '';
	document.getElementById('menu'+tblname).style.overflow = 'visible';
}

function hidesel (tblname) {
	for (var i=1;i<=5;i++) {
		if (i!=tblname) {document.getElementById('el'+i).style.backgroundColor='';document.getElementById('el'+i).style.color='';}
	}	
}

function hidemenu (time) {
	for (var i=1;i<=4;i++) {
		document.getElementById('menu'+i).style.visibility = 'hidden';
		document.getElementById('menu'+i).style.width = '1px';
		document.getElementById('menu'+i).style.overflow = 'hidden';
	}	
}

function jumptopath (path,topframe) {
	var rnd=Math.random();
	if (!topframe) {
		top.frames['main'].location.href = ''+path+'&rand='+rnd;
	} else {
		top.location.href = ''+path+'&rand='+rnd;
	}
}

function loadpers() {
	document.getElementById('el4').style.backgroundColor='#404040';
	document.getElementById('el4').style.color='#FFFFFF';
	showtable('4');
}
function url(url){
top.main.location.href = ""+url;
}
function url2(url){
top.main.location.href = url;
}
function quit(){
if(confirm("Вы уверены что хотите выйти из игры?")){top.location.href='main.php?act=exit';}
}

</SCRIPT>
</HEAD>
<BODY onload=loadpers();>
<TABLE style="HEIGHT: 100%" cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="HEIGHT: 73px" vAlign=top align=left>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD style="BACKGROUND-IMAGE: url(img/sand_top_03.gif)"><IMG height=32 src="img/demons_top_01.gif" width=236></TD>
<TD style="BACKGROUND-IMAGE: url(img/sand_top_03.gif)" vAlign=top align=right width="100%">
<TABLE height=18 cellSpacing=0 cellPadding=0 width=450 border=0>
<TBODY>
<TR>
<TD vAlign=top width=31><IMG height=18 src="img/mennu112_043.gif" width=38></TD>
<TD vAlign=top>
<TABLE height=14 cellSpacing=0 cellPadding=0 width="100%" background=img/mennu112_06.gif border=0>
<TBODY>
<TR align=middle>
<TD class=main_text id=el1 onclick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('1');">Знания</TD>
<TD width=1><IMG height=11 src="img/mennu112_09.gif" width=1></TD>
<TD class=main_text id=el2 onclick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('2');">Общение</TD>
<TD width=1><IMG height=11 src="img/mennu112_09.gif" width=1></TD>
<TD class=main_text id=el3 onclick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('3');">Безопасность</TD>
<TD width=1><IMG height=11 src="img/mennu112_09.gif" width=1></TD>
<TD class=main_text id=el4 style="COLOR: #ffffff; BACKGROUND-COLOR: #404040" onclick="this.style.backgroundColor='#404040'; this.style.color='#FFFFFF'; showtable('4');">Персонаж</TD>
<TD width=1><IMG height=11 src="img/mennu112_09.gif" width=1></TD>
<TD class=main_text id=el5 onClick="quit();">Выход&nbsp;</TD></TR></TBODY></TABLE></TD>
<TD vAlign=top width=31><IMG height=18 src="img/mennu112_023.gif" width=31></TD></TR></TBODY></TABLE></TD></TR>
<TR>
<TD class=menutop><IMG height=13 src="img/sand_top_05.gif" width=15><IMG height=13 src="img/demons_top_06.gif" width=79></TD>
<TD class=menutop noWrap align=right width="100%">
	<SPAN id=menu1 style="VISIBILITY: hidden; OVERFLOW: hidden; WIDTH: 1px">
		| <A class=menutop onclick=this.blur(); href="lib/index.php" target=_blank>Библиотека</A>
		| <A class=menutop onclick=this.blur(); href="#">FAQ</A> 	
		| <A class=menutop onclick=this.blur(); href="lib/law.php" target=_blank>Законы</A> 
		| <A class=menutop onclick=this.blur(); href="#">Правила безопасности</A> 
	</SPAN> 
	<SPAN id=menu2 style="VISIBILITY: hidden; OVERFLOW: hidden; WIDTH: 1px">
		| <A class=menutop onclick=this.blur(); href="news.php" target=_blank>Новости</A>
		| <A class=menutop onclick=this.blur(); href="/forum" target=_blank>Форум</A> 
		| <A class=menutop onclick=this.blur(); href="stat.php" target=_blank>Рейтинг</A>
	</SPAN> 
	<SPAN id=menu3 style="VISIBILITY: hidden; OVERFLOW: hidden; WIDTH: 1px">
		| <A class=menutop onclick=this.blur(); href="#">Правила</A>  
		| <A class=menutop onclick=url("ank.php?act=Mail"); href="#">Смена e-mail</A>  
		| <A class=menutop onclick=url("ank.php?act=pass"); href="#">Смена пароля</A>  
	</SPAN> 
	<SPAN id=menu4 style="VISIBILITY: visible; OVERFLOW: visible">
		| <A class=menutop onClick=url("main.php?act=inv&razdel=obj"); href="#">Инвентарь</A>  
		| <A class=menutop onClick=url("zayavka.php"); href="#">Поединки</A> 
		| <A class=menutop onclick=url("ank.php?act=info"); href="#">Анкета</A>
	</SPAN>&nbsp;
</TD></TR>
<TR style="BACKGROUND-IMAGE: url(img/demons_top_14.gif)">
<TD><IMG height=17 src="img/demons_top_09.gif" width=15><IMG height=17 src="img/demons_top_10.gif" width=79><IMG height=17 src="img/demons_top_11.gif" width=122></TD>
<TD align=right width="100%"><IMG height=17 src="img/demons_top_16.gif" width=24></TD></TR>
<TR>
<TD style="BACKGROUND-IMAGE: url(img/sand_top_20.gif)"><IMG height=11 src="img/sand_top_17.gif" width=15><IMG height=11 src="img/demons_top_18.gif" width=79></TD>
<TD style="BACKGROUND-IMAGE: url(img/sand_top_20.gif)" align=right width="100%"><IMG height=11 src="img/sand_top_23.gif" width=24></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>
