$(document).ready(function(){
//input boxes clear on focus
var clearMePrevious = '';
$('.clearMeFocus').focus(function()
{
if($(this).val()==$(this).attr('title'))
{
clearMePrevious = $(this).val();
$(this).val('');
}
});
// if field is empty afterward, add text again
$('.clearMeFocus').blur(function()
{
if($(this).val()=='')
{
$(this).val(clearMePrevious);
}
});
//replace h2's with underscore
$("#main_content h2:contains('about_us')").addClass('about_fix');
var about = 'about us';
$('.about_fix').replaceWith("<h2>" + (about) + "</h2>");
$("#main_content h2:contains('contact_us')").addClass('contact_fix');
var contact = 'contact us';
$('.contact_fix').replaceWith("<h2>" + (contact) + "</h2>");
/*
 * 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() {
			$(this).height(tallest).css();
		});
	}
})(jQuery);
});
