<?php 
include("include/session.php");
date_default_timezone_set('America/New_York');
include("utilities/UtilitiesManagers.php");
	
	if ($session->logged_in) {
	include("header.php");

	include("sidebar.php");
?>
    
    <!-- MAIN JAVASCRIPTS -->
    <script src="//code.jquery.com/jquery-1.7.min.js"></script>
    <script>window.jQuery || document.write("<script src='js/jquery.min.js'>\x3C/script>")</script>
    <script type="text/javascript" src="js/jquery.tools.min.js"></script>
    <script type="text/javascript" src="js/jquery.uniform.min.js"></script>
    <script type="text/javascript" src="js/jquery.easing.js"></script>
    <script type="text/javascript" src="js/jquery.ui.totop.js"></script>
    <script type="text/javascript" src="js/jquery.itextsuggest.js"></script>
    <script type="text/javascript" src="js/jquery.itextclear.js"></script>
    <script type="text/javascript" src="js/jquery.hashchange.min.js"></script>
    <script type="text/javascript" src="js/jquery.drilldownmenu.js"></script>
    <script type="text/javascript" src="js/jquery.popover.js"></script>
    
    <!--[if lt IE 9]>
    <script type="text/javascript" src="js/PIE.js"></script>
    <script type="text/javascript" src="js/ie.js"></script>
    <![endif]-->

    <script type="text/javascript" src="js/global.js"></script>
    <!-- MAIN JAVASCRIPTS END -->

    <!-- LOADING SCRIPT -->
    <script>
    $(window).load(function(){
        $("#loading").fadeOut(function(){
            $(this).remove();
            $('body').removeAttr('style');
        });
    });
    </script>
    <!-- LOADING SCRIPT -->
    <!--
    <!-- POPOVERS SETUP
    <div id="activity-popover" class="popover">
        <header>
            Activity
        </header>
        <section>
            <div class="content">
                <nav>
                    <ul>
                        <li class="new"><a><span class="avatar"></span>John Doe created a new project</a></li>
                        <li class="read"><a><span class="avatar"></span>John Doe created a new project</a></li>
                        <li class="read"><a><span class="avatar"></span>Jane Doe updated a project</a></li>
                        <li class="read"><a><span class="avatar"></span>John Doe uploaded a document</a></li>
                        <li class="read"><a><span class="avatar"></span>John Doe deleted a project</a></li>
                        <li class="read"><a><span class="avatar"></span>John Doe marked a project as done</a></li>
                    </ul>
                </nav>
            </div>
        </section>
    </div>
	-->
	<!--
    <div id="notifications-popover" class="popover">
        <header>
            Notifications
        </header>
        <section>
            <div class="content">
                <nav>
                    <ul>
                        <li class="new"><a><span class="avatar"></span>John Doe created a new project</a></li>
                        <li class="new"><a><span class="avatar"></span>John Doe created a new project</a></li>
                        <li class="new"><a><span class="avatar"></span>Jane Doe updated a project</a></li>
                        <li class="read"><a><span class="avatar"></span>John Doe uploaded a document</a></li>
                        <li class="read"><a><span class="avatar"></span>John Doe deleted a project</a></li>
                        <li class="read"><a><span class="avatar"></span>John Doe marked a project as done</a></li>
                        <li><a href="#notifications.html" title="Notifications">See notification styles and growl like messages...</a></li>
                    </ul>
                </nav>
            </div>
        </section>
    </div>
	-->

    <div id="settings-popover" class="popover">
        <header>
            Settings
        </header>
        <section>
            <div class="content">
                <nav>
                    <ul>
                        <li><a href="#profile.php?uid=<?php echo $session->username; ?>">Account Settings</a></li>
                    </ul>
                </nav>
            </div>
        </section>
    </div>

    <script>
        $(document).ready(function() {
            $('#activity-button').popover('#activity-popover', {preventRight: true});
            $('#notifications-button').popover('#notifications-popover', {preventRight: true});
            $('#settings-button').popover('#settings-popover', {preventRight: true});

    
     
        });
    </script>
    <!-- POPOVERS SETUP END-->

</body>
</html>
<?php
}
if (!$session->logged_in) {
		header("Location: login.php");
		}
                                        
?>