
// example: $("#txtAddress").untilValue( "Your email address" );
jQuery.fn.untilValue = function(s){ this.each(function(){ var g = jQuery(this);
	g.val() != s ? g.addClass("active") : g.removeClass("active");
	g.bind("focus blur", function(){ var g = $(this);
		g.val() == s ? g.val("").addClass("active") :	g.val() == "" && g.val(s).removeClass("active");
	});
})}

// example: $("#content").find(".twoCol > .col").equalHeight();
jQuery.fn.equalHeight = function(s){ var n = 0;
	this.data("eqHgtSelector", this).each(function(){ var h = jQuery(this).height()
		if( h > n ) n = h
	}).css( $.browser.version<7.0&&$.browser.msie?"height":"minHeight", n );
	!s && this.resize(function(){ $(this).data("eqHgtSelector").equalHeight(true) })
}
