?><?php 

    
require_once('/includes/config/paths.html');
    require_once(
TOP_PATH.'/includes/config/sessions.html');
    require_once(
TOP_PATH.'/includes/config/connections.html'); 
    require_once(
TOP_PATH.'/includes/config/seo.html'); 
    require_once(
TOP_PATH.'/includes/config/settings.html');
    require_once(
TOP_PATH.'/includes/classes/faqs.html');
    require_once(
TOP_PATH.'/includes/classes/qanda_view.html'); 
    require_once(
TOP_PATH.'/includes/classes/qanda_manager.html'); 
    require_once(
TOP_PATH.'/includes/classes/qanda.html'); 
    
    
# Instantiate the faq class
    
$faqs = new FAQ('main');
    
    
# Ask question form
    
if (isset($_POST['ask'])) {
        
qandaPeer::saveQuestionForm(''$_POST);
        
redirect('/faq_done_yes.html');
    }

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><!-- InstanceBegin template="/Templates/main.dwt.html" codeOutsideHTMLIsLocked="false" -->
<head>
<!-- InstanceBeginEditable name="doctitle" -->
<title>Spot the Ball FAQs</title>
<!-- InstanceEndEditable -->
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php include(TOP_PATH.'/includes/layout/public_header.html'); ?>
<!-- InstanceBeginEditable name="head" -->
<!-- InstanceEndEditable -->
</head>

<body>
<div id="container"> 
    <div id="header">
        <div class="header-links">
            <?php require_once(TOP_PATH.'/includes/layout/public_top_nav.html'); ?>
        </div>
    </div>
    <div id="inner-container">
        <div id="content">
            <div id="main">
                <div id="left"><?php include(TOP_PATH.'/includes/layout/public_menu.html'); ?></div>
                <div id="content-area">
                    <!-- InstanceBeginEditable name="Content" -->
                    <div class="guttered">
                        <h1>Spot The Ball FAQs</h1>
                        <p>&nbsp;</p>
                        <h2>Ask a Specific Question</h2>
                        <p>If your question isn't listed below, ask us directly - we'd love to hear from you!</p>
                        <p>&nbsp;</p>
                        <?php 
                            
print qandaView::form(); 
                            print 
"<h2>FAQs</h2>";
                            print 
$faqs->display(); ?>
                    </div>
            
        <!-- InstanceEndEditable -->
                </div>
                <div class="clear"></div>
            </div>
        </div>
    </div>
    <div id="footer"><?php include(TOP_PATH.'/includes/layout/public_footer.html'); ?></div>
</div>
</body>
<!-- InstanceEnd --></html>