$(document).ready(function(){
	$("#viewMinList").click(function(){
		$("#dropDownMenu").slideToggle("slow");
		$("#arrow").toggleClass("up");
		return false;
	});
	
	$("#searchText").attr("value","Search");
	$("#searchText").click(function(){
		$(this).attr("value","");
	});
	
	$("#searchSubmit").mouseover(function(){
		$(this).css("background-position", "right");
	});
	
	$("#searchSubmit").mouseout(function(){
		$(this).css("background-position", "left");
	});
	$('li#full_column_events').accordion({ collapsible: true, animated: 'slide', autoHeight: false });
	$('div#family_resources').accordion({ collapsible: true, animated: 'slide', autoHeight: false })
	
	// Reset Font Size
  	var originalFontSize = $('html').css('font-size');
    	$(".resetFont").click(function(){
    	$('html').css('font-size', originalFontSize);
  		});
  	// Increase Font Size
  	$(".increaseFont").click(function(){
    	var currentFontSize = $('html').css('font-size');
    	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    	var newFontSize = currentFontSizeNum*1.2;
    	$('html').css('font-size', newFontSize);
    	return false;
  	});
  	// Decrease Font Size
  	$(".decreaseFont").click(function(){
    	var currentFontSize = $('html').css('font-size');
    	var currentFontSizeNum = parseFloat(currentFontSize, 10);
    	var newFontSize = currentFontSizeNum*0.8;
    	$('html').css('font-size', newFontSize);
    	return false;
  	});
  	
	$("p a[href$='.pdf']").unwrap();
	$("a[href$='.pdf']").wrap("<span class='pdf_wrapper'/>").before("<span class='pdf'></span>");
	$("a.view_notes").unwrap();
	$("a#bulletin").unwrap();
	$("div.news_post span.pdf").css("display", "none");
	$("div.sermon-browser-results span.pdf").css("display", "none");
	$("div.sermon span.pdf").css("display", "none");
	
});