// scrolling to a point with easing
function scroll_to_div (div_id, direction) {
	var speed_down	= 3800;
	var speed_up	= 1500;
	var easing_down	= 'easeInOutQuint';
	var easing_up	= 'easeOutBack';
	
	// default values
	var speed		= speed_down;
	var easing_type	= easing_down;
	if (direction != null && direction == 'up')
	{
		speed		= speed_up;
		easing_type	= easing_up;
	}
	//$.scrollTo( div_id, 3800, {easing:'easeInOutQuint'} );
	$.scrollTo( div_id, speed, {easing:easing_type} );
}
/* other options:
easeOutQuad
easeInQuad
	easeOutQuad
	easeInOutQuad
easeInCubic
easeOutCubic
easeInOutCubic
easeInQuart
easeOutQuart
easeInOutQuart
easeInQuint
easeOutQuint
	easeInOutQuint
easeInSine
easeOutSine
easeInOutSine
easeInExpo
easeOutExpo
	easeInOutExpo
easeInCirc
easeOutCirc
easeInOutCirc
easeInElastic
easeOutElastic
easeInOutElastic
easeInBack
easeOutBack
easeInOutBack
easeInBounce
easeOutBounce
easeInOutBounce
*/

// equal height columns
jQuery.fn.equalHeight = function (adjustment) {
    var height		= 0;
    var maxHeight	= 0;
	var adjustment_amt = (adjustment != null ? adjustment : 0);

    // Store the tallest element's height
    this.each(function () {
        height		= jQuery(this).outerHeight();
        maxHeight	= (height > maxHeight) ? height : maxHeight;
    });

    // Set element's min-height to tallest element's height
    return this.each(function () {
        var t			= jQuery(this);
        var minHeight	= maxHeight - (t.outerHeight() - t.height());
		minHeight += adjustment_amt;
        var property	= jQuery.browser.msie && jQuery.browser.version < 7 ? 'height' : 'min-height';
        t.css(property, minHeight + 'px');
    });
};

