// Lightbox Gallery//

$(function() {
        $('#gallery_lightbox a').lightBox();
    });

// Sliding Panel //
$(document).ready(function() {
	
	// Expand Panel
	$("#open").click(function(){
		$("div#panel").slideDown("slow");
	
	});	
	
	// Collapse Panel
	$("#close").click(function(){
		$("div#panel").slideUp("slow");	
	});		
	
	// Switch buttons from "Log In | Register" to "Close Panel" on click
	$("#toggle a").click(function () {
		$("#toggle a").toggle();
	});		
		
});

// Portfolio Swap Functionality //
$(document).ready(function(){
 
	$("a.switch_thumb").toggle(function(){
	  $(this).addClass("swap"); 
	  $("ul.thumb_view").fadeOut("fast", function() {
	  	$(this).fadeIn("fast").addClass("display"); 
		 });
	  }, function () {
      $(this).removeClass("swap");
	  $("ul.thumb_view").fadeOut("fast", function() {
	  	$(this).fadeIn("fast").removeClass("display");
		});
	}); 
 
});

//Image Replacement Gallery //

$(document).ready(function(){
 
 
	$(".thumbs a").click(function(){
								  
	$('#irg img').hide(0);
	$('#hiddenbox').show();
	
	
	$(this).delay(1000,function(){	
	$('#hiddenbox').hide();
								});
	
	
	$(this).delay(1000,function(){	
	$('#irg img').show();
								});							  
								  
								  
	
		var largePath = $(this).attr("href");
		var largeAlt = $(this).attr("title");
		
		$("#largeImg").attr({ src: largePath, alt: largeAlt });
		
		$(".thumb_block h3").html(" " + largeAlt + " "); return false;
	});
	
// Testimonials carousel

	$(".testimonials").jCarouselLite({
		vertical:true,									 
        visible: 1,  
        auto:4000,  
        speed:1000,
		scroll:1,
		easing:'swing',
       	btnNext: ".next2",
       	btnPrev: ".prev2"
    });	
	
});

<!--jQuery before and after-->

$(function(){
	$('#before-and-after').beforeAfter({animateIntro:true, imagePath:'img/before-and-after/'});
	
});


