// Things to run on load
jQuery(document).ready(function($) {
	
	// Looks for a section with infinite scrolling and preps it
	$('section#infinite_scroll').prep_infinite_scroll();
	
	// Setup the sticky nav
	/*$('#header').scroll_n_stick( {
				left_anchor: 'body',		// object to base x position off of
				left_anchor_edge: 'left',	// side to base x position off of
				left_anchor_offset: 0, 		// offset from left_anchor_edge to left position of obj
				top_anchor: 'body',			// object to base y position off of
				top_anchor_edge: 'top',		// position to measure start/catch from
				top_anchor_offset: 0
			});*/
			
});


// Things to run on new content when loaded through ajax
(function($) {
	
	// Preparation for newly loaded content
	$.fn.prep_content_specific = function() {
		$(this)
			// Remove the search button to make it just a field
			.remove_search_button()
			// Adjust audio file links
			.audio_prep()
			// Anything else
			.each(function() {
				// Insert find and action for anything to add
				$(this)
					.find()
			});	
		return this;
	}
	
	// Add additional custom functions here
	
})(jQuery);
