jQuery.fn.grid = function(oddClass) {

	if(!oddClass)
	{
		var oddClass='oddClass';
	}

  return this.each(function(){
	// get the Jquery Object Cache
	var $table = $(this);
	var $tr=  $table.find('>tbody tr');
	
	// remove all the oddClass first
	$tr.filter('.oddClass').removeClass(oddClass);

	// add all the oddClass to odd Row
	$tr.filter(':odd').addClass(oddClass);

	$tr.hover(function(){
		$(this).addClass('hoverClass');
	},function(){
		$(this).removeClass('hoverClass');
	});

  });

};
