$(document).ready(function() {
	
	var $mydiv = $('#tabs-vertical').length;
	if ($mydiv) {
	
		$.fn.equalHeights = function(minHeight, maxHeight) {
			tallest = (minHeight) ? minHeight : 0;
			this.each(function() {
				if($(this).height() > tallest) {
					tallest = $(this).height();
				}
			});
			if((maxHeight) && tallest > maxHeight) tallest = maxHeight;
			return this.each(function() {
				$(this).height(tallest).css("overflow","auto");
			});
		}

		var $tabs = $('#tabs-vertical ul').tabs({
			event: 'click'
			//fx: { opacity: 'toggle' }
		});

		//$('#tabs-vertical .ui-tabs-panel').equalHeights(200,500);

	}
	
});
		