$(document).ready(function() {
	
	// I'm ready...
	
	// I'm on the outside
	$("a[@href^=http]")
		.not("[@href*='presidentialpark.com/']")
		.addClass('external_links')
		.attr('target', '_blank');

	// It's always nice to say thank you
	$('a.no_go').click(function() {
		$('p#thanks_anyways')
		.css('display', 'block')
		.animate({opacity: 1.0}, 3000)
		.fadeOut('slow', function() {
			$(this).css('display', 'none');
		});
	});

	// Add the target _blank attribute for the #addthis link
	$('#addthis a').attr('target', '_blank');

	// Personal note input focus and blur
	personal_note_value = "Help the developers of Presidential Park at WaterLights District select the first 5 Presidents that will be featured in The Presidential Park & Gardens logo! Also, the five Presidents receiving the most votes will be the first to be moved to the WaterLights District for the groundbreaking ceremony on President's Day, February 18, 2008."
	$('textarea#personal_note');
	$('textarea#personal_note').val(personal_note_value);
	$('textarea#personal_note').focus(function() {
		if ($('textarea#personal_note').val() == personal_note_value) {$('textarea#personal_note').val('');};
	});
	$('textarea#personal_note').blur(function() {
		if ($('textarea#personal_note').val() == '') {$('textarea#personal_note').val(personal_note_value);};
	});

	// Default email address input focus and blur	
	default_emailaddress_value = "you@example.com"
	$('input#mb-ijsu-ijsu');
	$('input#mb-ijsu-ijsu').val(default_emailaddress_value);
	$('input#mb-ijsu-ijsu').focus(function() {
		if ($('input#mb-ijsu-ijsu').val() == default_emailaddress_value) {$('input#mb-ijsu-ijsu').val('');};
	});
	$('input#mb-ijsu-ijsu').blur(function() {
		if ($('input#mb-ijsu-ijsu').val() == '') {$('input#mb-ijsu-ijsu').val(default_emailaddress_value);};
	});
	
	// Default name input focus and blur	
	default_name_value = "Enter your full name..."
	$('input#mb-name');
	$('input#mb-name').val(default_name_value);
	$('input#mb-name').focus(function() {
		if ($('input#mb-name').val() == default_name_value) {$('input#mb-name').val('');};
	});
	$('input#mb-name').blur(function() {
		if ($('input#mb-name').val() == '') {$('input#mb-name').val(default_name_value);};
	});

});