/**
 * Equal Heights Plugin
 * Equalize the heights of elements. Great for columns or any elements
 * that need to be the same size (floats, etc).
 * 
 * Version 1.0
 * Updated 12/109/2008
 *
 * Copyright (c) 2008 Rob Glazebrook (cssnewbie.com) 
 *
 * Usage: $(object).equalHeights([minHeight], [maxHeight]);
 * 
 * Example 1: $(".cols").equalHeights(); Sets all columns to the same height.
 * Example 2: $(".cols").equalHeights(400); Sets all cols to at least 400px tall.
 * Example 3: $(".cols").equalHeights(100,300); Cols are at least 100 but no more
 * than 300 pixels tall. Elements with too much content will gain a scrollbar.
 * 
 */

(function($) {
	$.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() {
/** AR comment - changed the line below from "auto" to "visible" */
			$(this).height(tallest).css("overflow","visible");
		});
	}
})(jQuery);





/**
 * jQuery-Plugin "clearField"
 * 
 * @version: 1.0, 31.07.2009
 * 
 * @author: Stijn Van Minnebruggen
 *          stijn@donotfold.be
 *          http://www.donotfold.be
 * 
 * @example: $('selector').clearField();
 * @example: $('selector').clearField({ blurClass: 'myBlurredClass', activeClass: 'myActiveClass' });
 * 
 */
(function($){jQuery.fn.clearField=function(b){b=jQuery.extend({blurClass:'clearFieldBlurred',activeClass:'clearFieldActive'},b);jQuery(this).each(function(){var a=jQuery(this);if(a.attr('rel')==undefined){a.attr('rel',a.val()).addClass(b.blurClass)}a.focus(function(){if(a.val()==a.attr('rel')){a.val('').removeClass(b.blurClass).addClass(b.activeClass)}});a.blur(function(){if(a.val()==''){a.val(a.attr('rel')).removeClass(b.activeClass).addClass(b.blurClass)}})});return jQuery}})(jQuery);