// JavaScript Document
	$('document').ready(function(){
$.tablesorter.defaults.widgets = ['zebra'];
	$('table#fellows').tablesorter({
				cssHeader: 'header',
				cssAsc: 'headerSortUp',
				cssDesc: 'headerSortDown'
			});
	
	// table row colors					   
		//$('tbody tr:odd').addClass('odd');
		$('tbody tr').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
	
	// empty the table container if javascript is enabled
	//$('#tableContainer').empty();
	
	// click handlers for tabs 
	$('#linkCurrent').click(function(){
		$('#tableContainer').load('fellows-current.htm', function(){
			//alert('page loaded');
			$.tablesorter.defaults.widgets = ['zebra'];
			$('table#fellows').tablesorter({
				cssHeader: 'header',
				cssAsc: 'headerSortUp',
				cssDesc: 'headerSortDown'
			});
			$('tbody tr').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
		});
		return false;
	});
	
		$('#link2009').click(function(){
		$('#tableContainer').load('fellows-2009.htm', function(){
			//alert('page loaded');
			$.tablesorter.defaults.widgets = ['zebra'];
			$('table#fellows').tablesorter({
				cssHeader: 'header',
				cssAsc: 'headerSortUp',
				cssDesc: 'headerSortDown'
			});
			$('tbody tr').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
		});
		return false;
	});
	
	
	$('#link2008').click(function(){
		$('#tableContainer').load('fellows-2008.htm', function(){
			//alert('page loaded');
			$.tablesorter.defaults.widgets = ['zebra'];
			$('table#fellows').tablesorter({
				cssHeader: 'header',
				cssAsc: 'headerSortUp',
				cssDesc: 'headerSortDown'
			});
			$('tbody tr').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
		});
		return false;
	});
	$('#link2007').click(function(){
		$('#tableContainer').load('fellows-2007.htm', function(){
			//alert('page loaded');
			$.tablesorter.defaults.widgets = ['zebra'];
			$('table#fellows').tablesorter({
				cssHeader: 'header',
				cssAsc: 'headerSortUp',
				cssDesc: 'headerSortDown'
			});
			$('tbody tr').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
		});
		return false;
	});
	$('#link2006').click(function(){
		$('#tableContainer').load('fellows-2006.htm', function(){
			//alert('page loaded');
			$.tablesorter.defaults.widgets = ['zebra'];
			$('table#fellows').tablesorter({
				cssHeader: 'header',
				cssAsc: 'headerSortUp',
				cssDesc: 'headerSortDown'
			});
			$('tbody tr').hover(function(){$(this).addClass('hover');},function(){$(this).removeClass('hover');});
		});
		return false;
	});
});