<?php

/*** Freedom City | Check RPGBUNNY.COM for more Full RPG Sources | www.rpgbunny.com ***/include "antet.php"; include "func.php";

if (isset($_POST["x"], $_POST["y"])) {$x=$_POST["x"]; $y=$_POST["y"];}
else {$x=rand(0, $m); $y=rand(0, $n);}
$data=map($x, $y);
$i=0;
?>
        <div align="left">
        <label>
        <?php echo $lang['jumpTo'] ?>:
          <input class='textbox' type="text" id="x" size="2" value="<?php echo $x; ?>">
        </label>
        <input class='textbox' type="text" id="y" size="2" value="<?php echo $y; ?>">
        <label>
        <input class='button' type="button" onClick="map()" value="<?php echo $lang['go'] ?>">
        </label>
     <div style="position:relative; top:60; left:0;">
	       <div style="position:relative; top:14; left:230; width:30;"><?php echo $y+3; ?></div>
        <div style="position:relative; top:15; left:193; width:30;"><?php echo $y+2; ?></div>
        <div style="position:relative; top:16; left:156; width:30;"><?php echo $y+1; ?></div>
        <div style="position:relative; top:17; left:119; width:30;"><?php echo $y; ?></div>
        <div style="position:relative; top:18; left:82; width:30;"><?php echo $y-1; ?></div>
        <div style="position:relative; top:19; left:45; width:30;"><?php echo $y-2; ?></div>
        <div style="position:relative; top:20; left:8; width:30;"><?php echo $y-3; ?></div>
        <div style="position:relative; top:40; left:8; width:30;"><?php echo $x-3; ?></div>
        <div style="position:relative; top:41; left:45; width:30;"><?php echo $x-2; ?></div>
        <div style="position:relative; top:42; left:82; width:30;"><?php echo $x-1; ?></div>
        <div style="position:relative; top:43; left:119; width:30;"><?php echo $x; ?></div>
        <div style="position:relative; top:44; left:156; width:30;"><?php echo $x+1; ?></div>
        <div style="position:relative; top:45; left:193; width:30;"><?php echo $x+2; ?></div>
        <div style="position:relative; top:46; left:230; width:30;"><?php echo $x+3; ?></div>
        </div>
	    <div style="position:relative; top:-185; left:60;">
        <img style="position:absolute; left:185;" <?php map_img($data, $x-3, $y+3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:222; top:20;" <?php map_img($data, $x-2, $y+3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:259; top:40;" <?php map_img($data, $x-1, $y+3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:296; top:60;" <?php map_img($data, $x, $y+3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:333; top:80;" <?php map_img($data, $x+1, $y+3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:370; top:100;" <?php map_img($data, $x+2, $y+3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:407; top:120;" <?php map_img($data, $x+3, $y+3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:148; top:20;" <?php map_img($data, $x-3, $y+2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:185; top:40;" <?php map_img($data, $x-2, $y+2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:222; top:60;" <?php map_img($data, $x-1, $y+2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:259; top:80;" <?php map_img($data, $x, $y+2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:296; top:100;" <?php map_img($data, $x+1, $y+2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:333; top:120;" <?php map_img($data, $x+2, $y+2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:370; top:140;" <?php map_img($data, $x+3, $y+2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:111; top:40;" <?php map_img($data, $x-3, $y+1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:148; top:60;" <?php map_img($data, $x-2, $y+1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:185; top:80;" <?php map_img($data, $x-1, $y+1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:222; top:100;" <?php map_img($data, $x, $y+1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:259; top:120;" <?php map_img($data, $x+1, $y+1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:296; top:140;" <?php map_img($data, $x+2, $y+1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:333; top:160;" <?php map_img($data, $x+3, $y+1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:74; top:60;" <?php map_img($data, $x-3, $y, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:111; top:80;" <?php map_img($data, $x-2, $y, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:148; top:100;" <?php map_img($data, $x-1, $y, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:185; top:120;" <?php map_img($data, $x, $y, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:222; top:140;" <?php map_img($data, $x+1, $y, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:259; top:160;" <?php map_img($data, $x+2, $y, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:296; top:180;" <?php map_img($data, $x+3, $y, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:37; top:80;" <?php map_img($data, $x-3, $y-1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:74; top:100;" <?php map_img($data, $x-2, $y-1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:111; top:120;" <?php map_img($data, $x-1, $y-1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:148; top:140;" <?php map_img($data, $x, $y-1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:185; top:160;" <?php map_img($data, $x+1, $y-1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:222; top:180;" <?php map_img($data, $x+2, $y-1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:259; top:200;" <?php map_img($data, $x+3, $y-1, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:0; top:100;" <?php map_img($data, $x-3, $y-2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:37; top:120;" <?php map_img($data, $x-2, $y-2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:74; top:140;" <?php map_img($data, $x-1, $y-2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:111; top:160;" <?php map_img($data, $x, $y-2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:148; top:180;" <?php map_img($data, $x+1, $y-2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:185; top:200;" <?php map_img($data, $x+2, $y-2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:222; top:220;" <?php map_img($data, $x+3, $y-2, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:-37; top:120;" <?php map_img($data, $x-3, $y-3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:0; top:140;" <?php map_img($data, $x-2, $y-3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:37; top:160;" <?php map_img($data, $x-1, $y-3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:74; top:180;" <?php map_img($data, $x, $y-3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:111; top:200;" <?php map_img($data, $x+1, $y-3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:148; top:220;" <?php map_img($data, $x+2, $y-3, $i, $imgs); ?> width="74" height="41">
        <img style="position:absolute; left:185; top:240;" <?php map_img($data, $x+3, $y-3, $i, $imgs); $i=0; ?> width="74" height="41">
        <img src="<?php echo $imgs ?>map/map_back.gif" width="518" height="281" border="0" usemap="#Map" style="position:absolute; left:-37;">
        <map name="Map" id="Map">
          <area shape="poly" coords="223,20,258,40,294,20,259,0" <?php map_lnk($data, $x-3, $y+3, $i); ?>>
          <area shape="poly" coords="260,40,295,60,331,40,296,20" <?php map_lnk($data, $x-2, $y+3, $i); ?>>
          <area shape="poly" coords="297,60,332,80,368,60,333,40" <?php map_lnk($data, $x-1, $y+3, $i); ?>>
          <area shape="poly" coords="334,80,369,100,405,80,370,60" <?php map_lnk($data, $x, $y+3, $i); ?>>
          <area shape="poly" coords="371,100,406,120,442,100,407,80" <?php map_lnk($data, $x+1, $y+3, $i); ?>>
          <area shape="poly" coords="408,120,443,140,479,120,444,100" <?php map_lnk($data, $x+2, $y+3, $i); ?>>
          <area shape="poly" coords="445,140,480,160,516,140,481,120" <?php map_lnk($data, $x+3, $y+3, $i); ?>>
          <area shape="poly" coords="186,40,221,60,257,40,222,20" <?php map_lnk($data, $x-3, $y+2, $i); ?>>
          <area shape="poly" coords="223,60,258,80,294,60,259,40" <?php map_lnk($data, $x-2, $y+2, $i); ?>>
          <area shape="poly" coords="260,80,295,100,331,80,296,60" <?php map_lnk($data, $x-1, $y+2, $i); ?>>
          <area shape="poly" coords="297,100,332,120,368,100,333,80" <?php map_lnk($data, $x, $y+2, $i); ?>>
          <area shape="poly" coords="334,120,369,140,405,120,370,100" <?php map_lnk($data, $x+1, $y+2, $i); ?>>
          <area shape="poly" coords="371,140,406,160,442,140,407,120" <?php map_lnk($data, $x+2, $y+2, $i); ?>>
          <area shape="poly" coords="408,160,443,180,479,160,444,140" <?php map_lnk($data, $x+3, $y+2, $i); ?>>
          <area shape="poly" coords="149,60,184,80,220,60,185,40" <?php map_lnk($data, $x-3, $y+1, $i); ?>>
          <area shape="poly" coords="186,80,221,100,257,80,222,60" <?php map_lnk($data, $x-2, $y+1, $i); ?>>
          <area shape="poly" coords="223,100,258,120,294,100,259,80" <?php map_lnk($data, $x-1, $y+1, $i); ?>>
          <area shape="poly" coords="260,120,295,140,331,120,296,100" <?php map_lnk($data, $x, $y+1, $i); ?>>
          <area shape="poly" coords="297,140,332,160,368,140,333,120" <?php map_lnk($data, $x+1, $y+1, $i); ?>>
          <area shape="poly" coords="334,160,369,180,405,160,370,140" <?php map_lnk($data, $x+2, $y+1, $i); ?>>
          <area shape="poly" coords="371,180,406,200,442,180,407,160" <?php map_lnk($data, $x+3, $y+1, $i); ?>>
          <area shape="poly" coords="112,80,147,100,183,80,148,60" <?php map_lnk($data, $x-3, $y, $i); ?>>
          <area shape="poly" coords="149,100,184,120,220,100,185,80" <?php map_lnk($data, $x-2, $y, $i); ?>>
          <area shape="poly" coords="186,120,221,140,257,120,222,100" <?php map_lnk($data, $x-1, $y, $i); ?>>
          <area shape="poly" coords="223,140,258,160,294,140,259,120" <?php map_lnk($data, $x, $y, $i); ?>>
          <area shape="poly" coords="260,160,295,180,331,160,296,140" <?php map_lnk($data, $x+1, $y, $i); ?>>
          <area shape="poly" coords="297,180,332,200,368,180,333,160" <?php map_lnk($data, $x+2, $y, $i); ?>>
          <area shape="poly" coords="334,200,369,220,405,200,370,180" <?php map_lnk($data, $x+3, $y, $i); ?>>
          <area shape="poly" coords="75,100,110,120,146,100,111,80" <?php map_lnk($data, $x-3, $y-1, $i); ?>>
          <area shape="poly" coords="112,120,147,140,183,120,148,100" <?php map_lnk($data, $x-2, $y-1, $i); ?>>
          <area shape="poly" coords="149,140,184,160,220,140,185,120" <?php map_lnk($data, $x-1, $y-1, $i); ?>>
          <area shape="poly" coords="186,160,221,180,257,160,222,140" <?php map_lnk($data, $x, $y-1, $i); ?>>
          <area shape="poly" coords="223,180,258,200,294,180,259,160" <?php map_lnk($data, $x+1, $y-1, $i); ?>>
          <area shape="poly" coords="260,200,295,220,331,200,296,180" <?php map_lnk($data, $x+2, $y-1, $i); ?>>
          <area shape="poly" coords="297,220,332,240,368,220,333,200" <?php map_lnk($data, $x+3, $y-1, $i); ?>>
          <area shape="poly" coords="38,120,73,140,109,120,74,100" <?php map_lnk($data, $x-3, $y-2, $i); ?>>
          <area shape="poly" coords="75,140,110,160,146,140,111,120" <?php map_lnk($data, $x-2, $y-2, $i); ?>>
          <area shape="poly" coords="112,160,147,180,183,160,148,140" <?php map_lnk($data, $x-1, $y-2, $i); ?>>
          <area shape="poly" coords="149,180,184,200,220,180,185,160" <?php map_lnk($data, $x, $y-2, $i); ?>>
          <area shape="poly" coords="186,200,221,220,257,200,222,180" <?php map_lnk($data, $x+1, $y-2, $i); ?>>
          <area shape="poly" coords="223,220,258,240,294,220,259,200" <?php map_lnk($data, $x+2, $y-2, $i); ?>>
          <area shape="poly" coords="260,240,295,260,331,240,296,220" <?php map_lnk($data, $x+3, $y-2, $i); ?>>
          <area shape="poly" coords="1,140,36,160,72,140,37,120" <?php map_lnk($data, $x-3, $y-3, $i); ?>>
          <area shape="poly" coords="38,160,73,180,109,160,74,140" <?php map_lnk($data, $x-2, $y-3, $i); ?>>
          <area shape="poly" coords="75,180,110,200,146,180,111,160" <?php map_lnk($data, $x-1, $y-3, $i); ?>>
          <area shape="poly" coords="112,200,147,220,183,200,148,180" <?php map_lnk($data, $x, $y-3, $i); ?>>
          <area shape="poly" coords="149,220,184,240,220,220,185,200" <?php map_lnk($data, $x+1, $y-3, $i); ?>>
          <area shape="poly" coords="186,240,221,260,257,240,222,220" <?php map_lnk($data, $x+2, $y-3, $i); ?>>
          <area shape="poly" coords="223,260,258,280,294,260,259,240" <?php map_lnk($data, $x+3, $y-3, $i); ?>>
        <area shape="circle" coords="424,231,12" href="javascript: template('map_.php', '<?php echo "x=".($x+1)."&y=".$y; ?>')" title="East">
        <area shape="circle" coords="95,49,12" href="javascript: template('map_.php', '<?php echo "x=".($x-1)."&y=".$y; ?>')" title="West">
        <area shape="circle" coords="95,230,12" href="javascript: template('map_.php', '<?php echo "x=".$x."&y=".($y-1); ?>')" title="South">
        <area shape="circle" coords="424,49,12" href="javascript: template('map_.php', '<?php echo "x=".$x."&y=".($y+1); ?>')" title="North">
        </map>
        </div>
		<div id="descriptor" style="position:relative; top:-250; left:370;">
          <table class="q_table_desc" style="border-collapse: collapse" width="250" border="1">
            <tr>
              <td colspan="2" align="center"><?php echo $lang['description'] ?>
            </tr>
            <tr>
              <td width="117" align="center"><?php echo $lang['player'] ?><td></td>
            </tr>
            <tr>
              <td width="117" align="center"><?php echo $lang['population'] ?><td></td>
            </tr>
            <tr>
              <td width="117" align="center"><?php echo $lang['alliance'] ?><td></td>
            </tr>
          </table>
        </div>
