+{% block sidebar1 %}{% endblock %}
+{% block sidebar2 %}{% endblock %}
+
+{% block footer %}
+<div class="clearer"></div>
+{{ super() }}
+<div class="footer" style="padding-top:0px">
+The source code for this portal is licensed under the
+<a href="http://www.gnu.org/licenses/gpl-3.0.html"
+ title="Text of the GPL-3 license">GPL-3</a> and is available on
+<a href="http://anonscm.debian.org/gitweb/?p=pkg-exppsy/neurodebian.git"
+ title="Browse or clone the Git repository">
+git.debian.org</a>.
+</div>
+<!-- G+ button logic -->
+<script type="text/javascript" src="https://apis.google.com/js/plusone.js">
+ {parsetags: 'explicit'}
+</script>
+<script type="text/javascript">gapi.plusone.go();</script>
+<!-- Twitter -->
+<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+<!-- trigger convenience setup with javascript enabled -->
+<script type="text/javascript">
+ $('.foldup dt').click(function(e){
+ $(this).nextUntil('dt').toggle();
+ });
+ $('.foldup dd').hide();
+ $('.expandinstructions').show();
+ $('.nojavascriptinstructions').hide();
+</script>
+<!-- turn all [youtube] links into buttons and open them in fancy player-->
+<script type="text/javascript">
+$(document).ready(function(){
+ $('a[href^="http://www.youtube.com/watch"]').click(function() {
+ $.fancybox({
+ 'title': this.title,
+ 'href': this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
+ 'type': 'swf',
+ 'swf': {'wmode': 'transparent', 'allowfullscreen': 'true'}
+ });
+ return false;
+ });
+ $('a[href^="http://www.youtube.com/watch"]').each(function() {
+ var content = $(this).html();
+ if (content.charAt(0) == '[' && content.charAt(content.length-1) == ']') {
+ $(this).html('<img class="inlineimage" src="/_static/video_button.png" alt="video link button" title="' + content + '" />');
+ } else {
+ return content;
+ };
+ });
+});
+</script>
+{% endblock %}