<?php

//** Function loads reports into global variable $wpi_reports */
WPI_Functions::run_reports();
//** Hookable array of reporting page sections and their callsback functions */
$wpi_report_sections = apply_filters('wpi_report_sections', array('overview_reports' => array('label' => __('Overview'), 'callback' => array('WPI_Reports_page', 'overview_reports'))));
class WPI_Reports_page
{
    /**
     * Show basic invoice information and averages, include a pie graph.
     *
     * These are basic reports mostly for demonstration purposes.
     *
     * @since 3.0
     *
     */
    static function overview_reports()
    {
        global $wpi_reports;
        ?>
      <script type="text/javascript">

        var wpi_graph_wrapper = {}
        var wpi_num_up = 3;
        var wpi_block_width;

        google.load('visualization', '1.0', {'packages':['corechart']});

        jQuery(document).ready(function() {

          wpi_graph_wrapper.width = (jQuery('.wpi_graph_wrapper').width() - 50);