
/* generated javascript */
var skin = 'monobook';
var stylepath = '/skins';

/* MediaWiki:Common.js */
/* Any JavaScript here will be loaded for all users on every page load. */

$(document).ready(function(){

    // Apply odd class to alternating table rows
    $('tr:odd').addClass('odd');

    // Show sidebar div if section span exists on page
    var section = $('span#section').attr('class');
    if(section)    
        $('#p-hide-' + section).show();

    $('.research-group ul:not(.research-group ul:first)').css('margin-left', '1em');
    $('.research-group ul').each(function() {
        $(this).children('li').css('margin-bottom', '1em');
    });

    // Bind hover and click events to list items
    $('.research-group ul li:not(.research-group ul li.section)').hover(function() {
        $(this).find('.research-group-content').animate({ top: '-130' }, { queue: false, duration: 400 });
    },
    function(){
        $(this).find('.research-group-content').animate({ top: '0' }, { queue: false, duration: 500 });
    });

    $('.research-group ul li:not(.research-group ul li.section)').bind('click', function(){ 
        document.location.href = $(this).find('h3 a').attr('href');   
    });

});

/* MediaWiki:Monobook.js (deprecated; migrate to Common.js!) */
/* Deprecated; use [[MediaWiki:common.js]] */