function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = jQuery(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
}
jQuery(document).ready(function(){
	
	//Equal Height Divs
	equalHeight(jQuery('.home-box'));
	
	//External Link
	jQuery('a[rel="external"]').click(function(){
        window.open(jQuery(this).attr('href'));
        return false;
    });
	
	//Input Focus
	jQuery('.form-item input, .form-left input, .form-right input, .form-item textarea').each(function() {
		jQuery(this).focus(function() {
			jQuery(this).addClass("focus-field");
		});
		jQuery(this).blur(function() {
			jQuery(this).removeClass("focus-field");
		});
	});
	
	//Alternate Table Row
	jQuery('.document-table tr:nth-child(even)').addClass('alt');
});


