$(document).ready(function() 
	{
	$.tablesorter.addParser(
	{
  		id: 'thousands',
  		is: function(s) 
  		{
    	
    			return true;
  		},
  		format: function(s) {
    			return $.tablesorter.formatInt( s.replace(/\./g,'') );
  
  		},
  		type: 'numeric'
	}); 
	$.tablesorter.addParser(
	{
  		id: 'decimals',
  		is: function(s) 
  		{
    			return true;
  		},
  		format: function(s) {
    			return $.tablesorter.formatFloat( s.replace(/,/g,'') );
  		},
  		type: 'numeric'
	});
	$(".tablesorter")
 	.collapsible("td.collapsible", {
		collapse: true
	})
	.tablesorter({
	// set default sort column
	//sortList: [[0,0]],
	// don't sort by first column
	//headers: {16: {sorter: false}}
	});	
	
}
); 

//fixed table header
$(document).ready(function() {
var NumHeadRows = document.getElementsByTagName('thead')[0].getElementsByTagName('tr').length;
  $(".tablesorter").fixedtableheader({
	  headerrowsize:NumHeadRows
});
});
