$(document).ready(function(){
   //search text
   $('#searchwords').focus(function() {
		this.value = '';							
	});
    /*$('#searchwords').blur(function() {
		this.value = 'to search, type + press enter';							
	}); */
	//feature options
		/*$('#subnav li:first').click(function() {
			alert('hi');
			return false;
		});*/
	/*$('#subnav li > ul').hide();*/
	$('#subnav li > ul').parent().click(function() {
	 //alert('hi');
	 	$(this).children(0).show(400);
	 	if ( $(this).parent().parent('ul') ) {
			return true;
		}
		else {
			return false;
		}
		
	 });
	$('.popup').click(function() {
		window.open(this.href, '', 'right=0,top=0,width=450,height=360,resizable=yes,location=no,scrollbars=yes');
		return false;
	});
	
	$('a[href*=".pdf"]').append('<small>Some downloads are large. To download in the background, and continue browsing the web, <strong>right click</strong> and choose to \'Save Link As\'</small>');
		
});
