/** Logo and Nav tools module
       v1.0, 2009.06.04
	
	History:
	# Apollo script: Matt Spence.
	# Hospitality/early Pantheon: Dave Clark
	# Tweaked for validation: Daniel Wood
*/

$(document).ready(function() {
	addFocusBlur();
	addQuickLinksHover();
});

// Add focus/blur to the search box
function addFocusBlur() {
	var defaultText = "Search";

	$('.googlecse #q').focus(function() {
	
		if($(this).val() == defaultText) {
			$(this).val("");
		}
	});
	$('.googlecse #q').blur(function() {
		if($(this).val() == "") {
			$(this).val(defaultText);
		}
	});
}
 
// Add hover to the quicklinks
function addQuickLinksHover() {
	$('#navTools .links').hover(
		function() {
			$('ul', this).show();
		},
		function() {
			$('ul', this).hide();
		}
	);
}
