$(function() { 
		 var $splitter = $("#updown");
		 var $sidebar = $("#thumbwrapper");
		 // $("#thumbwrapper").hide();
  	 // $("#updown").click(function () {
      //$("#thumbwrapper").slideToggle("slow");	  
	    // $("#thumbwrapper").show("slide", { direction: "up" }, 1000);
   // });
$splitter.toggle(
      function() { 
            $sidebar.animate({top: -130}, 'slow');
			$splitter.animate({top: -130}, 'slow')
        },
        function() {
            $sidebar.animate({top: -55}, 'slow');//, function(){ $(this).fadeOut(); });	   
			$splitter.animate({top: -55}, 'slow')
    });

$("#external").click(function()
    {
		$("#gallery").fadeIn('slow', function() {
		$(this).load("slideshow/external.html", function(){slideShow.init(); slideShow.lim(); });
	});	
});	
$("#tiling").click(function()
    {
		$("#gallery").fadeIn('slow', function() {
		$(this).load("slideshow/tiling.html", function(){slideShow.init(); slideShow.lim(); });
	});	
});
$("#bathrooms").click(function()
    {
		$("#gallery").fadeIn('slow', function() {							   
		$(this).load("slideshow/bathrooms.html", function(){slideShow.init(); slideShow.lim(); });
	});	
});
$("#kitchen").click(function()
    {
		$("#gallery").fadeIn('slow', function() {
		$(this).load("slideshow/kitchens.html", function(){slideShow.init(); slideShow.lim(); });
	});	
});	
$("#plastering").click(function()
    {
		$("#gallery").fadeIn('slow', function() {
		$(this).load("slideshow/plastering.html", function(){slideShow.init(); slideShow.lim(); });
	});	
});	
$("#flooring").click(function()
    {
		$("#gallery").fadeIn('slow', function() {
		$(this).load("slideshow/flooring.html", function(){slideShow.init(); slideShow.lim(); });
	});	
});	

$(".carousel").jCarouselLite({
       btnNext: ".next",
       btnPrev: ".prev",
	   vertical: false,
	   circular: false,
	    visible: 6,
		speed: 500
	});

        
		$('#quickForm').ajaxForm({ target: '#responseDisplay' } );
		$('#quoteForm').ajaxForm({ target: '#quoteDisplay' } );
		$('.contactForm').ajaxForm({ target: '#quoteDisplay' } );

});

