jQuery(document).ready(function($) { 
	$('#nav ul, #subnav ul, #header ul.nav').superfish({ 
		delay:       100,								// .5 second delay on mouseout 
		animation:   {opacity:'show',height:'show'},	// fade-in and slide-down animation 
		dropShadows: false								// disable drop shadows 
	});

	$('form.searchform input.s').focus(function() {
		if( $(this).val() == 'Search...' ) {
			$(this).val('');
		}
	});
	$('form.searchform input.s').blur(function() {
		if( $(this).val() == '' ) {
			$(this).val('Search...');
		}
	});

		$('[class^=toggle-item]').hide();
		$('[class^=link]').css("background", "url(http://pastorsofpeekskill.org/images/down.png) no-repeat right");
		$('[class^=link]').click(function() {
			var $this = $(this);
			var x = $this.attr("className");
			$('.toggle-item-' + x).toggle();
			$(this).text($(this).text() == 'close' ? 'more' : 'close');
			if ($(this).text() == 'close'){
				$(this).css("background-image", "url(http://pastorsofpeekskill.org/images/left.png)");
				$(this).css("color", "darkred");
				$(this).parent().parent().addClass('on');
			} else {
				$(this).css("background-image", "url(http://pastorsofpeekskill.org/images/down.png)");
				$(this).css("color", "#444");
				$(this).parent().parent().removeClass('on');
			}
		return false;
		});
});