<?php
/**
 * The template for displaying the footer.
 *
 * Contains the closing of the id=main div and all content
 * after.  Calls sidebar-footer.php for bottom widgets.
 *
 * @package WordPress
 * @subpackage ThinkPlace
 * @since ThinkPlace 1.0
 */
?>


    <a class="top" href="#">Back to the Top</a>
</div><!-- #wrapper -->
<div id="footer-wrapper">
    <div id="footer" role="contentinfo">
<?php
    /* A sidebar in the footer? Yep. You can can customize
     * your footer with four columns of widgets.
     */
    get_sidebar( 'footer' );
    
    $aboutPage		= get_page_by_title('about');
    global $servicesPage;
    if (empty($servicesPage)){
        $servicesPage	= get_page_by_title('services');
    }
?>
    <ul class="nav">
        <li class="col-1"><a href="<?php echo get_permalink(7);?>" title="About us">About us</a>
			<ul>
                <li><a href="<?php echo get_permalink(19);?>" title="Meet the team">How we work</a></li>
                <li><a href="<?php echo get_permalink(17);?>" title="How we work">Meet the team</a></li>
                <li><a href="<?php echo get_permalink(304);?>" title="Our community">Our community</a></li>
            </ul></li>
        <li class="col-1"><a href="<?php echo get_permalink(9);?>" title="Services">Services</a>
            <ul>
                <li><a href="<?php echo get_permalink(27);?>" title="Strategy design">Strategy design</a></li>
                <li><a href="<?php echo get_permalink(29);?>" title="Service design">Service design</a></li>
                <li><a href="<?php echo get_permalink(31);?>" title="Organisation design">Organisation design</a></li>
                <li><a href="<?php echo get_permalink(33);?>" title="Design thinking and innovation">Design thinking and innovation</a></li>
            </ul></li>
        <li class="col-2 reset"><a href="<?php echo get_permalink(252);?>" title="Work">Work</a>
            <ul>
                <li><a href="<?php echo get_permalink(288);?>" title="Clients">Clients</a></li>
                <li><a href="<?php echo get_permalink(290);?>" title="Endorsements">Endorsements</a></li>
                <li><a href="<?php echo get_permalink(292);?>" title="Typical projects">Typical projects</a></li>
            </ul></li>
        <li class="col-3 reset"><a href="<?php echo get_permalink(253);?>" title="Innovation studio">Innovation studio</a>
            <ul>
                <li><a href="<?php echo get_permalink(296);?>" title="Studio specs">Studio specs</a></li>
            </ul></li>
        <li class="col-3"><a href="<?php echo get_permalink(257);?>" title="Ideas">Ideas</a>
            <ul>
                <li><a href="<?php echo get_permalink(298);?>" title="Papers and Presentations">Papers and Presentations</a></li>
                <li><a href="<?php echo get_permalink(300);?>" title="Helpful frameworks">Helpful frameworks</a></li>
                <li><a href="<?php echo get_permalink(302);?>" title="Thinkpieces">Thinkpieces</a></li>
            </ul></li>
        <li class="col-4 reset"><a href="<?php echo get_permalink(312);?>" title="Downloads">Downloads</a>
            <ul>
                <li><a href="<?php echo get_permalink(665);?>" title="Factsheet">Factsheet</a></li>
            	<li><a href="<?php echo get_permalink(316);?>" title="Service pack">Service pack</a></li>
            </ul></li>
        <li class="col-4"><a href="<?php echo get_permalink(13);?>" title="Contact">Contact</a>
            <ul>
                <li><a href="<?php echo get_permalink(212);?>" title="Australia">Australia</a></li>
                <li><a href="<?php echo get_permalink(319);?>" title="New Zealand">New Zealand</a></li>
            </ul></li>
        <li class="col-4"><a href="<?php echo get_permalink(306);?>" title="Careers">Careers</a></li>
        <li class="col-4"><a href="<?php echo get_permalink(25);?>" title="Fine print">Fine print</a></li>
		<li class="col-5 reset">Elsewhere
        	<ul>
            	<li><a href="http://twitter.com/#!/thinkplace" target="_blank">Twitter</a></li>
            </ul></li>
    </ul>
    <a id="footer-logo" href="#">Thinkplace</a>
    

    </div><!-- #footer -->
</div><!--footer-wrapper-->

<?php
	/* Always have wp_footer() just before the closing </body>
	 * tag of your theme, or you will break many plugins, which
	 * generally use this hook to reference JavaScript files.
	 */

	wp_footer();
?>
<script type="text/javascript" src="http://twitter.com/javascripts/blogger.js"></script>
<script type="text/javascript" src="http://twitter.com/statuses/user_timeline/thinkplace.json?callback=twitterCallback2&amp;count=2"></script>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-21202187-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</body>
</html>
