$(document).ready(function() {

	//ASSIGN CLASS TO TOP LEVEL NAV ITEMS
	$('#navtop > li > a').each(function(){
		var word = $(this).text().toLowerCase();
		$(this).parent().addClass(word);

		//ADD TOP NAV SUMMARY
		if(word == 'give'){
			$(this).append('<span>donors & advisors</span>');
		} else if (word == 'receive'){
			$(this).append('<span>grants & scholarships</span>');
		} else if (word == 'about'){
			$(this).append('<span>austin community foundation</span>');
		}
	});

	
	//SEARCH INPUT STICKY VAL
	var sb = $('#search input.text')
	$(sb).data('default', $(sb).val());
	$(sb).focus(function(){
		if ($(this).val() == $(this).data('default')){
			$(this).addClass('active').val('');
		}
	}).blur(function(){
		if ($(this).val() == ''){
			$(this).removeClass('active').val($(this).data('default'));
		}
	});
});

