// jQuery script to handle the collpase/expand buttons for content boxes
jQuery(document).ready(function($){

	// bind show/hide behaviors for each section block on band profile pages
	var bindToggleArea = function() {
		$('.toggleBoxIcon').each(
  			
			// For each add button, bind the onclick behavior.
			function() {
  
				// Bind the onclick event 
				$(this).bind (
					'click',
					function(){
						
						// first, swap out the toggle icons
						$(this).toggle(); // toggle clicked icon
						$(this).siblings('img').toggle(); // toggle opposite icon
						
						// toggle the element
						$(this).parent().parent().next().slideToggle();
						
						return false; // return false so the link doesn't actually click anywhere					
					}
				);
			}
		);
	};
	
	bindToggleArea(); // bind show/hide events on initial pageload
	
});