<?php

/*

GENERIC PAGE TEMPLATE

*/


// All important root and globals.  Do not edit the next 3 lines
$DOCROOT = $_SERVER['DOCUMENT_ROOT'];
include($DOCROOT.'/includes/globals.inc');
global $GLOB;

/*************************
 Configure this part
*************************/

// This is the date of this page's last update.  Change it when you update.

$lastupdate = '07/04/2007';


// The title of the page that will display at the top of the browser

$pagetitle = 'Welcome';


// The image for the top banner

$topbanner = '/images/web-rustbanner01.jpg';


// The alternate text for the top banner

$topbanneralt = 'Welcome to darktincities.com';


// Breadcrumbs (the trail of links that tells you where you are)

$bcstyle = 'HOME';			// This should be 'HOME', 'LEVEL1' or 'LEVEL2'


// If you set $bcstyle to LEVEL1 or LEVEL2, you need this part

$bclocation  = 'Page Location';		// The is the text that will print for your current location. 


// If you set $bcstyle to LEVEL2, you also need these two

$bcparentname = 'Some Name';		// The name of the parent page to display
$bcparentlink = '/somepage.php';	// The link to the parent page (so they can click it to get back)

/*************************
STOP CONFIGURING
The rest of the page is your content.  Enjoy. 
*************************/
?>

<?php
	// Start the HTML with whatever you want the page to be called.
	html_start($pagetitle);
	// html_start(<title>) will print the starting HTML along with whatever you want in the title
?>

<?php
	// Print a banner across the top
	html_banner($topbanner, $topbanneralt);
	// html_banner(<image>, <text>) will print a banner with an image and alternate text
?>


<table width="740" align="center" cellpadding="0" cellspacing="0" border="0">
<tr>
	<td colspan="3" class="breadcrumb">
<?php
	/*******************
	This breadcrumb section will print the right trail depending on your configuration at the top of the template.
	If you know what you want, you don't need the whole thin of course, but it is easier if you leave it.
	******************/

	if($bcstyle == 'HOME')
	{
		html_breadcrumbs($bcstyle);
	}
	elseif($bcstyle == 'LEVEL1')
	{
		html_breadcrumbs($bclocation);
	}
	elseif($bcstyle == 'LEVEL2')
	{
		$bcpage = array('name' => $bcparentname, 'link' => $bcparentlink);
		html_breadcrumbs($bclocation, $bcpage);
	}
	else
	{
		html_breadcrumbs('NONE');
	}

	/*******************
	END BREADCRUMB TRAIL
	******************/
?>

	</td>
</tr>
<tr>
	<td colspan="3">
		&nbsp;
	</td>
</tr>
<tr>
	<td valign="top" width="160" class="leftnavcolumn">

<?php
	// Print the navigation bar
	include($DOCROOT.'/includes/navbar.inc');
?>
	</td>
	<td class="bodytitle" width="15">
		&nbsp;
	</td>
	<td valign="top" id="bodycell">
	<!-- START BODY CONTENT SECTION -->
		<table width="100%" align="center" cellpadding="3" cellspacing="0" border="0">
		<tr>
			<td colspan="2" class="bodytitle">
				<span class="heading">Your source for all things dark and spooky in MSP</span>
			</td>
		</tr>
		<tr>
			<td colspan="2">
				<table width="100%" cellspacing="0" cellpadding="2" border="0">
				<tr> 
					<td valign="top" colspan="2">
<?php /*******************************************/
//	include($DOCROOT.'/includes/index_eventbanner.inc');
/**********************************************/ ?>
					</td>
				</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td class="bodytitle" colspan="2">
				<span class="heading">Recent Forum Activity</span>
			</td>
		</tr>
		<tr>
			<td class="bodysubtitle1 newsbox" valign="top" colspan="2">
<?php /*******************************************/
        //include($DOCROOT.'/includes/news_last5db_index.inc');
/**********************************************/ ?>
			<span class="heading">Last 5 Posts</span>
<?php /*******************************************/
include($DOCROOT.'/includes/for_rec_pos.inc');  
/**********************************************/ ?>
			<br />
			<span class="heading">5 Newest Topics</span>
<?php /*******************************************/
include($DOCROOT.'/includes/for_rec_top.inc');  
/**********************************************/ ?>
			</td>
		</tr>
		</table>
	<!-- STOP BODY CONTENT SECTION -->
	</td> 
</tr> 
<tr>
	<td colspan="3" class="bodytitle">
		&nbsp;
	</td>
</tr>
<tr>
	<td colspan="3" class="footer">
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<?php html_footer(); ?>
			</td>
			<td width="150" class="lastupdate">
				&nbsp;
			</td>
		</tr>
		</table>
	</td>
        <!-- end of main body subtable -->
</tr>
</table>

<?
include($DOCROOT.'/includes/foot.inc');
?>

</body>
</html>
