window.addEvent('domready', function() {
	// You can skip the following two lines of code. We need them to make sure demos
	// are runnable on MooTools demos web page.
	if (!window.demo_path) window.demo_path = '';
	var demo_path = window.demo_path;
	// --
	
//actions for the buttons on the case study landing page

  $('cr_button').addEvent('click', function(e) {

                var log = $('log_res2').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler.
		$('cr_form').set('send', {onComplete: function(response) {
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		$('cr_form').send();
	});
	
	

  $('hd_button').addEvent('click', function(e) {

                var log = $('log_res2').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler.
		$('hd_form').set('send', {onComplete: function(response) {
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		$('hd_form').send();
	});



  $('sm_button').addEvent('click', function(e) {

                var log = $('log_res2').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler.
		$('sm_form').set('send', {onComplete: function(response) {
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		$('sm_form').send();
	});

$('all_button').addEvent('click', function(e) {

                var log = $('log_res2').empty().addClass('ajax-loading');
		//Set the options of the form's Request handler.
		$('all_form').set('send', {onComplete: function(response) {
			log.removeClass('ajax-loading');
			log.set('html', response);
		}});
		//Send the form.
		$('all_form').send();
	});









});
