
<?php $var['rain'] = $GLOBALS; ?>
<!-- home | generated by RainTPL v 1.0 | www.RainTPL.com -->
<table width="906" cellpadding="0" cellspacing="0" border="0" align="center">
	<!-- HEADER i -->
	<!-- logo -->
	<tr>
		<td class="tpl_header" colspan="3" align="right"><div style="padding-right:12px;"><?php showBanner(1); ?></div></td>
	</tr>
	<!-- buttons -->
	<tr>
		<td class="tpl_main_l"></td>
		<td class="tpl_buttons">
			<ul>
				<li class='tpl_menu_b1'><a href="<?php echo $var["site_url"];?>" title="<?php echo $var["site_name"];?>"><div><h1><?php echo $var["site_name"];?></h1></div></a></li>
				<li class='tpl_menu_b2'><a href="index.php?page=download" title="Downloads"><div><h1>Download</h1></div></a></li>
				<li class='tpl_menu_b3'><a href="index.php?page=forum" title="Forums"><div><h1>Forums</h1></div></a></li>
				<li class='tpl_menu_b4'><a href="index.php?page=gallery" title="Gallery"><div><h1>Gallery</h1></div></a></li>
				<li class='tpl_menu_b5'><a href="index.php?page=search" title="Search"><div><h1>Search</h1></div></a></li>
				<li class='tpl_menu_b6'><a href="index.php?page=sitemap" title="Sitemap"><div><h1>Sitemap</h1></div></a></li>
				<li class='tpl_menu_b7'><a href="index.php?page=rss" title="RSS Feeds"><div><h1>RSS Feeds</h1></div></a></li>
			</ul>
		</td>
		<td class="tpl_main_r"></td>
	</tr>
	<!-- path -->
	<tr>
		<td class="tpl_main_l"></td>
		<td class="tpl_path"><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $var["showpath"];?></td>
		<td class="tpl_main_r"></td>
	</tr>
	<!-- HEADER e -->
	<!-- MAIN i -->
	<tr>
		<td class="tpl_main_l"></td>
		<td class="tpl_content">
			<!-- content -->
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<?php
	if( $var["fullscreen"] < 2 ){
?>
						<td class="tpl_navigator" valign="top">
							<!-- NAVIGATOR BLOCKS i -->
							<?php
		if( isset( $var["tpl_blocks_navigator"] ) ){
			$counter1 = 0;
			foreach( $var["tpl_blocks_navigator"] as $key1 => $value1 ){ 
?>
								<?php
			if( $value1["flag"] == 0 ){
?>
									<div class='tpl_block_nav'>
										<?php
				if( $value1["usetitle"] > 0 ){
?>
											<div class='tpl_block_nav_title'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
										<?php
				}
?>
									<div><?php echo $value1["content"];?></div>
									</div>
									<div class='tpl_block_nav_end'></div>
								<?php
			}
				elseif( $value1["flag"] == 1 ){
?>
									<?php
					if( $value1["usetitle"] > 0 ){
?>
										<div class='tpl_block_title_h1'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
									<?php
					}
?>
									<div class='tpl_block_body_h1'><?php echo $value1["content"];?></div>
								<?php
				}
					elseif( $value1["flag"] > 1 ){
?>
									<?php
						if( $value1["usetitle"] > 0 ){
?>
										<div class='tpl_block_title_h2'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
									<?php
						}
?>
									<div class='tpl_block_body_h2'><?php echo $value1["content"];?></div>
								<?php
					}
?>
								<div class='tpl_vspacer'></div>
							<?php
						$counter1++;
					}
				}
?>
							<!-- NAVIGATOR BLOCKS e -->
						</td>
					<?php
			}
?>
					<td class="tpl_main" valign="top">
						<!-- MAIN CONTENT i -->
							<!-- MESSAGES i -->
							<?php
			if( isset( $var["tpl_messages"] ) ){
				$counter1 = 0;
				foreach( $var["tpl_messages"] as $key1 => $value1 ){ 
?>
								<div class='tpl_mex_box'>
									<div class='tpl_mex_boxtop'><div></div></div>
									<div class='tpl_mex_boxcontent'>
										<div class='tpl_mex_title'><?php echo $value1["title"];?></div>
										<div><?php echo $value1["content"];?></div>
									</div>
									<div class='tpl_mex_boxbottom'><div></div></div>
								</div>
								<div class='tpl_vspacer'></div>
							<?php
					$counter1++;
				}
			}
?>
							<!-- MESSAGES e -->
												
							<!-- CENTRAL BLOCKS i -->
							<?php
			if( isset( $var["tpl_blocks_central"] ) ){
				$counter1 = 0;
				foreach( $var["tpl_blocks_central"] as $key1 => $value1 ){ 
?>
								<?php
				if( $value1["flag"] == 0 ){
?>
									<?php
					if( $value1["usetitle"] > 0 ){
?>
										<div class='tpl_block_title'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
									<?php
					}
?>
								<?php
				}
					elseif( $value1["flag"] == 1 ){
?>
									<?php
						if( $value1["usetitle"] > 0 ){
?>
										<div class='tpl_block_title_h1'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
									<?php
						}
?>
								<?php
					}
						elseif( $value1["flag"] > 1 ){
?>
									<?php
							if( $value1["usetitle"] > 0 ){
?>
										<div class='tpl_block_title_h2'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
									<?php
							}
?>
								<?php
						}
?>
								<div><?php echo $value1["content"];?></div>
								<div class='tpl_vspacer'></div>
							<?php
							$counter1++;
						}
					}
?>
							<!-- CENTRAL BLOCKS e -->
												
							<!-- PAGE i -->
							<?php
					if( $var["tpl_page"]["title"] != '' ){
?>
								<div class='tpl_page_title'>
								<?php
						if( $var["tpl_page"]["url"] != '' ){
?>
									<img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<a href='<?php echo $var["tpl_page"]["url"];?>' title='<?php echo $var["tpl_page"]["title"];?>'><b><?php echo $var["tpl_page"]["title"];?></b></a>
								<?php
						}
						else{
?>
									<b><?php echo $var["tpl_page"]["title"];?></b>
								<?php
						}
?>
								</div>
							<?php
					}
?>
							<?php
					if( $var["tpl_page"]["name"] == 'blog' ){
?> <?php
$RainTPL_include_obj = new RainTPL();
$RainTPL_include_obj->assign( $var );
$RainTPL_directory_template_temp = $RainTPL_include_obj->tpl_dir;
$this->tpl_dir = $GLOBALS[ 'RainTPL_tpl_dir' ] = $RainTPL_include_obj->tpl_dir . "/" . dirname( "blog" );
$RainTPL_include_obj->draw( basename( "blog" ) );
$this->tpl_dir = $GLOBALS[ 'RainTPL_tpl_dir' ] = $RainTPL_directory_template_temp;
?> <?php
					}
?>
							<?php
					if( $var["tpl_page"]["name"] == 'news' ){
?> <?php
$RainTPL_include_obj = new RainTPL();
$RainTPL_include_obj->assign( $var );
$RainTPL_directory_template_temp = $RainTPL_include_obj->tpl_dir;
$this->tpl_dir = $GLOBALS[ 'RainTPL_tpl_dir' ] = $RainTPL_include_obj->tpl_dir . "/" . dirname( "news" );
$RainTPL_include_obj->draw( basename( "news" ) );
$this->tpl_dir = $GLOBALS[ 'RainTPL_tpl_dir' ] = $RainTPL_directory_template_temp;
?> <?php
					}
?>
							<div><?php echo $var["tpl_page"]["content"];?></div>
							<!-- PAGE e -->
						<!-- MAIN CONTENT e -->
					</td>
					<?php
					if( $var["fullscreen"] < 1 ){
?>
						<td class="tpl_extra" valign="top">
							<!-- EXTRA BLOCKS i -->
							<?php
						if( isset( $var["tpl_blocks_extra"] ) ){
							$counter1 = 0;
							foreach( $var["tpl_blocks_extra"] as $key1 => $value1 ){ 
?>
								<?php
							if( $value1["flag"] == 0 ){
?>
									<?php
								if( $value1["usetitle"] > 0 ){
?>
										<div class='tpl_block_title'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
									<?php
								}
?>
									<div class='tpl_block_body'><?php echo $value1["content"];?></div>
								<?php
							}
								elseif( $value1["flag"] == 1 ){
?>
									<?php
									if( $value1["usetitle"] > 0 ){
?>
										<div class='tpl_block_title_h1'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
									<?php
									}
?>
									<div class='tpl_block_body_h1'><?php echo $value1["content"];?></div>
								<?php
								}
									elseif( $value1["flag"] > 1 ){
?>
									<?php
										if( $value1["usetitle"] > 0 ){
?>
										<div class='tpl_block_title_h2'><img src="templates/memht/images/tpl_icon.png" alt="Icon">&nbsp;<?php echo $value1["title"];?></div>
									<?php
										}
?>
									<div class='tpl_block_body_h2'><?php echo $value1["content"];?></div>
								<?php
									}
?>
								<div class='tpl_vspacer'></div>
							<?php
										$counter1++;
									}
								}
?>
							<!-- EXTRA BLOCKS e -->
						</td>
					<?php
							}
?>
				</tr>
			</table>
		</td>
		<td class="tpl_main_r"></td>
	</tr>
	<!-- MAIN e -->
	<!-- FOOTER i -->
	<tr>
		<td class="tpl_foot_l"></td>
		<td class="tpl_foot_c">
			<table width="100%" cellpadding="0" cellspacing="0" border="0">
				<tr>
					<td class="left"></td>
					<td class="center">
						<table>
							<tr><td class="centertxt"><?php echo $var["copyright"];?></td></tr>
							<tr><td class="centertxt"><?php echo $var["copytext"];?></td></tr>
						</table>
					</td>
					<td class="right"></td>
				</tr>
			</table>
		</td>
		<td class="tpl_foot_r"></td>
	</tr>
	<!-- FOOTER e -->
</table>
<div class="tpl_footmsg" align="center"><?php echo $var["footmsg"];?></div>
<!--/ home -->
