(function($){

var stockmatrix = {
   ondomready: function(){
	stockmatrix.handleMore();	
   },
   

   handleMore: function() {
   	$(".expand").click(function() {
   		var tr = $(this).parent().parent().next();
   		
   		if (tr.hasClass('hide')) {
   			tr.removeClass('hide');
   			tr.addClass('show');
   			tr.show();
   			$(this).text('Hide');
   		} else {
   			tr.removeClass('show');
   			tr.addClass('hide');
   			tr.hide();   		
   			$(this).text('Articles');
   		}
   		
   		return ( false );
   	
   	});
   }
   
}

window.stockmatrix = stockmatrix;

$(document).ready(function(){stockmatrix.ondomready();});

})(jQuery);
