$(document).ready(function(){
	/* We need to find the search textbox.
	Both ASP.Net and DNN rename the control so we are looking
	for an input control with a partial name of '_txtSearch'
	within a control called 'dnn_TopNavPane' */
	$search = $("#dnn_TopNavPane input[id$='_txtSearch']");
	$search.val('Search').addClass('search_unfocused');
	
	// Bind the OnFocus and OnBlur actions
	$search.focus(function(){
		if ($(this).val() == "Search") {
			$(this).val("").addClass('search_focused').removeClass('search_unfocused');
		}
	});
	$search.blur(function(){
		if ($(this).val() == "") {
			$(this).val("Search").addClass('search_unfocused').removeClass('search_focused');
		}
	});
});