$(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'
	});	
	//initialize table for sorting
	$(".tablesorter").tablesorter();
}
);
//fixed table header
$(document).ready(function() {
var NumHeadRows = document.getElementsByTagName('thead')[0].getElementsByTagName('tr').length;
  $(".tablesorter").fixedtableheader({
	  headerrowsize:NumHeadRows
});
});
