$(function() {
	var searchbox = $('#searchbox, #search-searchbox');
	
	searchbox
		// set the initial value to the default text
		.val(searchbox.attr('title'))
		
		// if the default text is in there, then remove it when focused
		.focus(function() {
			if ($(this).val() == $(this).attr('title')) {
				$(this).val('');
			}
		})
		
		// and when the user leaves the box, if they didn't enter anything, fill back in with the default text
		.blur(function() {
			if ($(this).val() == '') {
				$(this).val($(this).attr('title'));
			}
		})
	
})