$(document).ready(function()
	{
		
		// Adding a custom parser for the href'd titles to sort properly
		
		$.tablesorter.addParser({ 
			id: 'title', 
			is: function(s) { return false; }, 
			format: function(value, table, cell){ 
				return cell.childNodes[1].innerHTML;
			}, 
			type: 'text'
		}); 
		
		
		// Title sorting isn't working in IE due to some bug with the custom parser.
		// So we disable it for now.
		
		if ( jQuery.browser.msie ) {
		
			$("table#inthenews")
			.tablesorter({
				headers: { 1: { sorter:false } },
				sortList: [[0,1]],
				widgets: ['zebra']
	         });
		
		// For nice browsers.
		
		} else {
		
			$("table#inthenews")
			.tablesorter({
				headers: { 1: { sorter:'title' } },
				sortList: [[0,1]],
				widgets: ['zebra']
	         });
/*
	         .tablesorterPager({
         		container: $("#pager"),
         		size: 20,
         		seperator: ' of '
         	});
*/
         
         }

	}
);
