
<?php if($this->display['header']): ?>
<!--BEGIN HEADER-->
<div id='header'>
<?php include $this->header; ?>
</div>
<!--END HEADER-->
<?php endif; ?>

<?php if($this->display['menu']): ?>
<!--BEGIN MENU-->
<div id='menu'>
	<ul>
<?php
$menu = array(
	'en' => array('Home','Our Mission','Our Families','Support Us','Legal',
				'Contact Us','Guestbook','Links'),
	'de' => array('Home','Über Uns','Die Familien','Helfen Sie Uns',
				'Rechtliches','Kontakt','Gästebuch','Links')
);
foreach($menu[$this->lang] as $key => $value):
	$link = strtolower(str_replace(' ','',$menu['en'][$key]));
	$active = ($this->pageName == $link) ? " class='active'" : '';
?>
    <li>
      <a title='<?php echo $value ?>' href='<?php echo $link ?>.php'<?php echo $active ?>>
        <?php echo $value ?>
      </a>
    </li>
<?php endforeach; ?>
	</ul>
</div>
<!--END MENU-->
<?php endif; ?>

<div id='content'>
	<table>
	<thead>
		<tr>
			<td class="top_left_corn">&nbsp;</td>
			<td class="horz_top">&nbsp;</td>
			<td class="top_right_corn">&nbsp;</td>
		</tr>
	</thead>
	<tbody>
		<tr>
			<td class="vert_left">&nbsp;</td>
			<td class='content'>
			  
<?php if(!empty($this->errors)): ?>
        <div id='errors'>
          <ul>
<?php foreach($this->errors as $err): ?>
            <li><?php echo $err ?></li>
<?php endforeach; ?>
          </ul>
        </div>
<?php endif; ?>

<?php if(!empty($this->messages)): ?>
        <div id='messages'>
          <ul>
<?php foreach($this->messages as $msg): ?>
		        <li><?php echo $msg ?></li>
<?php endforeach; ?>
          </ul>
        </div>
<?php endif; ?>
				
<!--BEGIN_CONTENT-->
			<?php include $this->content; ?>
<!--END_CONTENT-->
			</td>
			<td class="vert_right">&nbsp;</td>
		</tr>
	</tbody>
	<tfoot>
		<tr>
			<td class="bottom_left_corn">&nbsp;</td>
			<td class="horz_bottom">&nbsp;</td>
			<td class="bottom_right_corn">&nbsp;</td>
		</tr>
	</tfoot>
	</table>
</div>

<?php if($this->display['footer']): ?>
<!--BEGIN FOOTER-->
<div id='footer'>
<?php include $this->footer; ?>
</div>
<!--END FOOTER-->
<?php endif; ?>
