(function($){
	$.fn.colorTable=function( options ){
		var settings = {
			color1 : options['color1'],
			color2 : options['color2'],
			textcolor1 : options['textcolor1'],
			textcolor2 : options['textcolor2']
		}
		
		return this.children("tbody").children("tr").each(function(i){
	   if(i % 2==0 && $(this).children("th").length <= 0){
		  $(this).children().css({background:settings['color1'],color:settings['textcolor1']});
	   }else if($(this).children("th").length <= 0){
		  $(this).children().css({background:settings['color2'],color:settings['textcolor2']});		
	   }
	});
}
}) (jQuery)
