(function($) { 
   $.fn.setContentSize = function(options) {
		var defaults = {
			height: 10
		};
		var options = $.extend(defaults, options);
		var objHeight = 0;		
		return this.each(function() {
			var obj =$(this);
			objectHeight = obj.height();
			while (options.height < objectHeight && obj.children().length > 5){//CAS97062 sdb 101409 obj.children().length was 1
				objectHeight = obj.height();
				$('li:last-child',obj).remove();
			}
		});
	};	 
})(jQuery);

