$(document).ready(function(){
  $('input[data-default-value!=""]').focus(function(){
		if(this.value == this.getAttribute('data-default-value')) {
			this.value = ''
		};
	});
	$('input[data-default-value!=""]').blur(function(){
		if(this.value == '') {
			this.value = this.getAttribute('data-default-value');
		}
	});
	$('a.colorbox').colorbox();

  // match height of jumpboxes on homepage
	$('.home .tertiary .mod-feature .inner, .home .twitter_feed li').equalizeHeights();
});

// stolen from http://api.jquery.com/map/
// usage: $('div').equalizeHeights();
$.fn.equalizeHeights = function(){
  return this.height( Math.max.apply( this, $(this).map(function(i,e){ return $(e).height() }).get() ) );
}
