/*jQuery().ready(function(){	
	// applying the settings
	jQuery('#node-45').accordion({
		active: 'h2.selected',
		header: 'h2',
		alwaysOpen: false,
		animated: true,
		showSpeed: 200,
		hideSpeed: 800
	});
});*/


	// click handler
	//$('h2').click(function() {
	//  $('h2').fadeOut('slow');
	//});
	
	// settings
	jQuery(document).ready(function(){
	
		// remove title
		$('#block-webform-client-block-45 h2').remove();
		
		// applying the settings for interest form
		if(!$('#block-webform-client-block-45 .error').size()){
			// insert button
			btnHtml = '<h2 id="form-interest-fade" class="btn-accordeon"><a href="#"><span class="green_link_more">Register Your Interest</span></a></h2>';
			if ($('#block-webform-client-block-45 .content').size()){
				$('#block-webform-client-block-45').prepend(btnHtml);
			}
			
			$('#block-webform-client-block-45').accordion({
				active: '#form-interest-fade.selected',
				header: '#form-interest-fade',
				alwaysOpen: false,
				animated: 'bounceslide',
				showSpeed: 2000,
				hideSpeed: 2000
			});
		}
	});
		
		// applying the settings for feedback form
	jQuery(document).ready(function(){
		
			// remove title
			$('#block-webform-client-block-46 h2').remove();
			
			// applying the settings for interest form
			if(!$('#block-webform-client-block-46 .error').size()){
				// insert button
	
				btnHtml = '<h2 id="form-feedback-fade" class="btn-accordeon"><a href="#"><span class="green_link_more">Submit Your Feedback</span></a></h2>';
				if ($('#block-webform-client-block-46 .content').size()){
					$('#block-webform-client-block-46').prepend(btnHtml);
				}
			
			// applying the settings for payment form
			$('#block-webform-client-block-46').accordion({		
				active: '#form-feedback-fade.selected',
				header: '#form-feedback-fade',
				alwaysOpen: false,
				animated: 'bounceslide',
				showSpeed: 2000,
				hideSpeed: 2000
			});
		}
	});
	
	jQuery(document).ready(function(){

		// remove title
		$('#block-webform-client-block-47 h2').remove();
		
		// applying the settings for interest form
		if(!$('#block-webform-client-block-47 .error').size()){
			// insert button
			btnHtml = '<h2 id="form-pay-fade" class="btn-accordeon"><a href="#"><span class="green_link_more">Book your spot</span></a></h2>';
			if ($('#block-webform-client-block-47 .content').size()){
				$('#block-webform-client-block-47').prepend(btnHtml);
			}
	
			// applying the settings for payment form
			$('#block-webform-client-block-47').accordion({
				active: '#form-pay-fade.selected',
				header: '#form-pay-fade',
				alwaysOpen: false,
				animated: 'bounceslide',
				showSpeed: 1500,
				hideSpeed: 1500
			});
		}
	});


	jQuery(document).ready(function(){
		$('#form-interest-fade').click(function() {
		  $('#form-interest-fade').toggle('slow');
		});
		$('#form-feedback-fade').click(function() {
		  $('#form-feedback-fade').toggle('slow', function() {
			// Animation complete.
		  });
		});
		$('#form-pay-fade').click(function() {
		  $('#form-pay-fade').toggle('slow', function() {
			// Animation complete.
		  });
		});
});
