jQuery(document).ready(function(){
																	
	

	// Hide/Show Specifications
	$("p.spec").addClass("switchOff").click(function() {
													 
		if($(this).is(".switchOff")) {
			$(this).next().slideDown("slow", function() { 
				$(this).prev().removeClass("switchOff").addClass("switchOn");
			});
			
		} 
		if ($(this).is(".switchOn")) {
			$(this).next().slideUp("slow", function() { 
				$(this).prev().removeClass("switchOn").addClass("switchOff");
			});
		}
		
		return false;
		
	}).next().hide();
	
	  $('#service').change(function() {
           selected = $(this).val();
           if (selected == 'boilers') {
               // Show the boiler form
               $('#boiler-form').show();
               $('#boilerurgency').removeAttr("disabled"); 
           }
           else {
               // Hide the boiler form and reset inputs
               $('#boiler-form').hide();
               $('#boilerurgency').attr("disabled", true); 
           }
     });

 
});

	// SlideShow
		function slideSwitch() {
			var $active = $('#slideshow img.active');
		
			if ( $active.length == 0 ) $active = $('#slideshow img:last');
		
			var $next =  $active.next().length ? $active.next()
				: $('#slideshow img:first');
		
			$active.addClass('last-active');
		
			$next.css({opacity: 0.0})
				.addClass('active')
				.animate({opacity: 1.0}, 1000, function() {
					$active.removeClass('active last-active');
				});
		}
		
		$(function() {
			setInterval( "slideSwitch()", 3000 );
		});