<?php
include("next.tpl");
?>
<div id="build" class="gid34"><a href="#" onClick="return Popup(34,4);" class="build_logo">
	<img class="building g34" src="img/x.gif" alt="Stonemason's Lodge" title="Stonemason's Lodge" />
</a>
<h1>Stonemason's Lodge <span class="level">Level <?php echo $village->resarray['f'.$id]; ?></span></h1>
<p class="build_desc">The stonemason's lodge is an expert at cutting stone. The further the building is extended the higher the stability of the village's buildings.</p>


	<table cellpadding="1" cellspacing="1" id="build_value">
		<tr>
			<th>Current stability bonus:</th>
			<td><b><?php echo $bid34[$village->resarray['f'.$id]]['attri']; ?></b> Percent</td>
		</tr>
		<tr>
		<?php 
        if(!$building->isMax($village->resarray['f'.$id.'t'],$id)) {
		$next = $village->resarray['f'.$id]+1+$loopsame+$doublebuild+$master;
		if($next<=20){
        ?>
			<th>Stability bonus at level <?php echo $next; ?>:</th>
			<td><b><?php echo $bid34[$next]['attri']; ?></b> Percent</td>
            <?php
            }else{
        ?>
			<th>Stability bonus at level 20:</th>
			<td><b><?php echo $bid34[20]['attri']; ?></b> Percent</td>
            <?php
			}}
            ?>
		</tr>
	</table>
<?php 
include("upgrade.tpl");
?>
</p></div>