</select>
                </div>
                <div class="control-group">
                    <label class="control-label" for="homeAway">Home/Away</label>
                    <select id="homeAway" name="place">
                        <option value="">All Games</option>
                        <option value="home">Home</option>
                        <option value="away">Away</option>
                    </select>
                </div>
                <button type="submit" class="orangeBtn small">Search</button>
            </form>
            <div class="tableWrapper" id="scheduleScrollbar">
                <div id="statisticsTable">
                        <?php 
echo vinny_schedule($games);
?>
                </div>
            </div>
            <a href="#" class="nextBtn" title="Vinny's News"></a>
            <img src="<?php 
echo get_template_url();
?>
/img/ajax-loader.gif" alt="loader" class="loadingImage" />
        </div>
    </div>
    </div>
</section>

<section id="news" class="newsPage">
    <a href="#" class="contentToggleBtn">News <i></i></a>
function getStatistics()
{
    $responses = call_api("http://www.nhl.com/feed/nhl/club/schedule.json?team=PHI&auth=");
    $games = !empty($responses) ? $responses["games"] : array();
    echo vinny_schedule($games, $_POST["place"]);
    echo '<script type="text/javascript"> if(jQuery(window).width()<=767){jQuery("#homeScheduleScrollbar, #statsTableInner1, #statsTableInner2, #statsTableInner3, #statsTableInner4, #statsTableInner5, #statsTableInner6, #statsTableInner7, #statsTableInner8, #statsTableInner9, .January, .February, .March, .April, .May, .June, .July, .August, .September, .October, .November, .December, #scheduleScrollbar, #statsScrollbar, #splitsScrollbar, #gameLogsScrollbar, #tweets, .patientTabs, .innerMenuInner").mCustomScrollbar("destroy");}</script>';
    exit;
}