/* Simple function that fixes the width of 'th' in a table, so the
   size do not change it content is hidden/displayed.  */
fix_tables = function(){
    tables = jq('table.department');

    for (i = 0; i < tables.length; i++) {
	table = jq(tables[i]);
	columns = table.find('th');

	for (j = 0; j < columns.length; j++) {
	    col = jq(columns[j]);
	    col.width(col.width());
	}
    }
};

jq(document).ready(function() {
	jq.tablefilter();
});
