var test = new Array(3);
var x=0;
for(x=0; x<test.length; x++)
{
	test[x]=0;
}

function equalHeight(group) {
	tallest = 0;
	group.each(function() {
		thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}

$(window).load(function() {
	equalHeight($(".other"));
	equalHeight($(".column"));
	$('#thumbnail').corner();
	$('#container3').corner("bottom");
	$('#contentwrap').corner("bottom");
	$('#content').corner();
});

$(document).ready(function() {

 $.tablesorter.addParser({ id: 'amount', is: function(s) { return false; }, format: function(s) { return s; /* just return the value, as it is a valid numeric */ }, type: 'numeric' });
 $(".tablesorter").tablesorter({
		sortList: [[3,1]],
		 // pass the headers argument and assing a object 
        headers: { 
            // assign the secound column (we start counting zero) 
            1: { 
                // disable it by setting the property sorter to false 
                sorter: 'amount'
            }
            // assign the third column (we start counting zero) 
        } 
		
    });

$("#sortbys").sSelect().change(function(){

var column = $(this).val();
	var sorting;
	if(test[column]==1)
		{
			test[column]=0;
			sorting = [[column,0]]; 
		}
		else
		{
			test[column]=1;
			sorting = [[column,1]]; 
        }
		// sort on the first column 
        $("table").trigger("sorton",[sorting]); 
});

});
