$(document).ready(function() {

	/* Contact Form
	-----------------------------------------------------------------*/
	$('input[type=text],textarea').click(function() {
		if (this.value == this.defaultValue) {
			this.value = '';
		}
	});

	$('input[type=text],textarea').blur(function() {
		if (this.value == '') {
			this.value = this.defaultValue;
		}
	});

});

$(function(){
	var spt = $('span.contact');
	var at = / at /;
	var dot = / dot /g;
	var addr = $(spt).text().replace(at,"@").replace(dot,".");
	$(spt).after('<a href="mailto:'+addr+'" title="Send an email">'+ addr +'</a>')
	.hover(function(){window.status="Send a letter!";}, function(){window.status="";});
	$(spt).remove();
});
