
$.fn.MV_colorTableRows = function(options) {
	
	/**
	 * Set default options.
	 */
	opt = jQuery.extend({
			
		evenClass : "MV_tableRowEven",
		oddClass : "MV_tableRowOdd"
			
	}, options);

	$rows = $(this).children("tr").not(":hidden");
	
	var counter = 0;
	/*
	$rows.each( function() {

		if ( counter % 2 == 0)
		{
			
			$(this).addClass(opt.evenClass);
					
		}
		else
		{
			
			$(this).addClass(opt.oddClass);
			
		}
		
		counter++;
		
	});
	*/
	$(this).each( function () {

		$(this).children("tr").removeClass(opt.evenClass);
		$(this).children("tr").removeClass(opt.oddClass);
		
		$(this).children("tr:even").not(":hidden").addClass(opt.evenClass);
		$(this).children("tr:odd").not(":hidden").addClass(opt.oddClass);
		
	});
		
}


