var d=document;
d.write ('<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><script type="text/javascript" src="js/yourpers.js"></script><LINK href=main.css rel=STYLESHEET type=text/css><script language=javascript src=js/hp_new.js></script><script language=javascript src=js/pers.js></script><script language=javascript src=js/statsup.js></script><script language=javascript src="js/sell.js?1"></SCRIPT><script language=javascript SRC="js/w.js"></SCRIPT><script src="js/fightn.js"></SCRIPT>');
function show_head(curstate,fourthname,code)
{
d.write ('<body topmargin="0" style="word-spacing: 0; margin-left: 0; margin-right: 0" leftmargin=0>');
if (curstate!=4)
{
var pers='';
var inv='';
var add='';
var fght='';
var fourth='';
if (curstate==0) pers='DISABLED';
if (curstate==1) inv='DISABLED';
if (curstate==5) fght='DISABLED';
if (curstate==3) add='DISABLED';
d.write('<table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/design/hot/head_background.gif" height=46> <tr> <td width="301" background="images/design/hot/head_left.jpg" align="center" height=46> <table border="0" width="250" cellspacing="0" cellpadding="0"> <tr> <td width="128"> <input class="head" type="button" value="Персонаж" onclick="location=\'main.php?go=pers\'" style="width: 110; height: 18" '+pers+'>
<input class="head" type="button" value="Инвентарь" onclick="location=\'main.php?go=inv\'" style="width: 110; height: 18" '+inv+'></td> <td width="122" align="center" >');
d.write('<input class="head" type="button" value="Поединки" onclick="location=\'main.php?go=fights\'" style="width: 110; height: 20" '+fght+'>');
d.write('</td> </tr> </table> </td> <td align="center">[img]images/design/hot/arrow_1.gif[/img][img]images/design/hot/head.jpg[/img][img]images/design/hot/arrow_2.gif[/img]</td> <td align="center" width="301" background="images/design/hot/head_right.jpg" > <table border="0" width="250" cellspacing="0" cellpadding="0" > <tr> <td width="112" align="center">');
if (curstate!=2)
{
d.write('<input class="head" type="button" value="Вернуться" onclick="location=\'main.php?go=back\'" style="width: 110; height: 20">');
if (fourthname!='') d.write("
");
}
if (fourthname!='')
fourth = "<input class=head type=button value='"+fourthname+"' "+code+" style='width: 110; height: 16'>";
else
fourth = '<input class="head" type="button" value="Выход" style="width: 110; height: 16" onclick="exit()">';
d.write('</td> <td align="right" width="138" > <input class="head" type="button" value="Возможности" style="width: 110; height: 16" onclick="location=\'main.php?go=addon\'" '+add+'>'+fourth+'</td> </tr> </table> </td> </tr> </table>');
}
}
function exit()
{
if (confirm("Вы действительно хотите выйти?"))top.location='exit.php?rand='+Math.random();
}
var curTimeFor;
var curTimeInt;
function waiter(time)
{
curTimeFor = time+1;
curTimeInt = setInterval("winterv()",1000);
}
function winterv()
{
if(curTimeFor>0)
{
document.all("waiter").innerHTML = 'Действие, ещё [b]'+curTimeFor+'[/b] сек...[/i]';
curTimeFor = curTimeFor - 1;
}
else
{
clearInterval(curTimeInt);
document.all("waiter").innerHTML = '<a href=main.php>Обновление...</a>[/i]';
window.location = "main.php";
}
}
/*
d.write('<table border="0" width="100%" cellspacing="0" cellpadding="0" background="images/design/hot/head_background.gif" height=29> <tr> <td width="301" background="images/design/hot/head_left.jpg" align="center" height=29> <table border="0" width="250" cellspacing="0" cellpadding="0"> <tr> <td width="128"> <input class="head" type="button" value="Персонаж" onclick="location=\'main.php?go=pers\'" style="width: 110; height: 18" '+pers+'>
<input class="head" type="button" value="Инвентарь" onclick="location=\'main.php?go=inv\'" style="width: 110; height: 18" '+inv+'></td> <td width="122" align="center" >');
d.write('<input class="head" type="button" value="<a href="Поединки" onclick="location=\'main.php?go=fights\'" style="width: 110; height: 20" '+fght+'>');
d.write('</td> </tr> </table> </td> <td align="center">[img]images/design/hot/arrow_1.gif[/img][img]images/design/hot/head.jpg[/img][img]images/design/hot/arrow_2.gif[/img] </td> <td align="center" width="301" background="images/design/hot/head_right.jpg" > <table border="0" width="250" cellspacing="0" cellpadding="0" > <tr> <td width="112" align="center">');
if (curstate!=2)
{
d.write('<input class="head" type="button" value="Вернуться" onclick="location=\'main.php?go=back\'" style="width: 110; height: 20">');
if (fourthname!='') d.write("
");
}
if (fourthname!='')
fourth = "<input class=head type=button value='"+fourthname+"' "+code+" style='width: 110; height: 16'>";
else
fourth = '<input class="head" type="button" value="Выход" style="width: 110; height: 16" onclick="exit()">';
d.write('</td> <td align="right" width="138" > <input class="head" type="button" value="Возможности" style="width: 110; height: 16" onclick="location=\'main.php?go=addon\'" '+add+'>'+fourth+'</td> </tr> </table> </td> </tr> </table>');
*/