function searchBlur(input, default_text) {
	if (input && input.value.length == 0) {
		input.value = default_text;
	}
}

function searchFocus(input, default_text) {
	if (input && input.value == default_text) {
		input.value = "";
	}
}

function attachGlowingLinkHandlers() {
	$$('ul#nav li:not(.current_page_item) a').each(function(link) {
		link.observe("mouseover", function() {
			new Effect.Morph(this, { style: 'color: #FFF;', duration: 0.4 });
		});
		link.observe("mouseout", function() {
			new Effect.Morph(this, { style: 'color: #DDD;', duration: 0.4 });
		});
	});
}

document.observe("dom:loaded", function() {
	attachGlowingLinkHandlers();
});