$(document).ready(function(){
  // for loading ajax gif
  $('#loading').ajaxStart(function(){
	$(this).show();
  }).ajaxStop(function(){
	$(this).hide();
  });
  // the slider function is below
  $(slider('.slide'));
});
  // For every ajax input
function slider(link) {
  $(link).click( function() {
	$(this).next().slideToggle('slow');
	return false;
});
}
