// JavaScript Document
$(document).ready(function() {


  /* this is the slide toggle */
  $(".accordian:not(:first)").hide();
  $(".toggle:first").addClass('open');

  $('.toggle').click(function() {
    var tog = $(this);
    var acc = tog.next('.accordian');
  acc.slideToggle('meduim', function() {
		if ( acc.is(':visible') ) {
			tog.addClass('open');
		} else {
			tog.removeClass('open');
		}
    });
  });

});

//Function to Toggle Visibility of Div

// this is being taken care of by the stuff above - ZACH
// because you commented this out it also broke the business profile page...

function toggle_visibility(div1) {
	 var e = document.getElementById(div1);
	 if(e.style.display == 'block')
			e.style.display = 'none';
	 else
			e.style.display = 'block';
}
