 $(document).ready(function() {
	// Initialize tabs for the contact form in the footer
	$("#contact > ul").tabs({ fx: { opacity: 'toggle' } });
	
	// Autoclear input captions
	$('#footer :text')
		.focus(function() {
			if( this.value == this.defaultValue ) {
				this.value = "";
			}
		})
		.blur(function() {
			if( !this.value.length ) {
				this.value = this.defaultValue;
			}
		});
		
	// Wrap ® symbols in superscript tags
	$("*:contains('®')", document.body)
	.contents()
	.each(
		function() {
			if( this.nodeType == 3 ) {
				$(this)
					.replaceWith( this
						.nodeValue
						.replace( /®/g, "<sup>®</sup>" )
					);
			}
		}
	);
});
