/*
* initalization of tablesorter
*/
$(document).ready(
	function(){
		$('table').tablesorter(
			{
				1 : {sorter:"text"},
				2 : {sorter:"integer"},
				3 : {sorter:"integer"},
				4 : {sorter:"integer"},
				5 : {sorter:"integer"},
				sortList: [[1,1]],
				headers: 
				{
					0: {sorter: false},
					1: {sorter: 'months'},
					2: {sorter: 'sloInt'},
					3: {sorter: 'sloInt'},
					4: {sorter: 'procent'},
					5: {sorter: 'sloInt'}
				},
				widgets: ['zebra', 'columnIndex'],
				widgetZebra : 
				{
					css : ["alternating",""]
				}
			}
		);
		/*
   	$("table").bind("sortStart", function(){});
   	$("table").bind("sortEnd", function(){});
    */


		$('.more-info').click(function(e){
			e.preventDefault();
			var open = ($('#more-info').css('display') == 'none') ? true : false;
			if (open) {
				$('#more-info').fadeIn(100);
				$(this).find('span').html('▲');
			}
			else {
				$('#more-info').fadeOut(100);
				$(this).find('span').html('▼');
			}

		});

  }
);

