jQuery(document).ready(function() {

	jQuery('ul#top-nav').superfish({
		delay: 0,
		firstOnClick: true
	});

	jQuery("input.query").focus(function() {
		this.value = "";
	});

	/*
	This is for the sidenav. Playa's keeping us from checking if
	the only children of a nav item are forms and conditionally
	stopping display of the ul. Bye-bye, empty lists!
	*/
	jQuery('ul').each(function(i) {
		if (!jQuery(this).children().length) {
			jQuery(this).hide();
		}
	});

});

