		/* Video and Before After Images popup */


		/* About - Staff */
		$("div.staff-wrap:last").addClass("noborder");

		/* pdf icons */
		$('a[href$=pdf]').addClass('pdf');
		
		/* 	FAQ */
		/* Hide some things */
		$('#faq-super-wrap .answer').hide();
		
		


	$(document).ready(function(){
		/* Mini slideshow on Services pages for testimonials */ 
		$('.before-after-wrap-services a:first').addClass('show');
		
		/* Mini slideshow on Testimonial page */ 
		$('.before-after-wrap-single').find('a:first').addClass('show');
    $('.testimonial-wrap .before-after-wrap-single').each(function (i) {
   		$(this).find('a').attr('rel', "popup[pp_gal"+i+"]");
    });
		$("a[rel^='popup']").prettyPhoto();

		/* Pretty hovers */ 
		$('.faq-wrap').hover(function() {
			$(this).addClass('white');
		}, function() {
				$(this).removeClass('white');
		});
	
		/* Show/Hide answers */
		$(".faq-wrap").click( function( event ) {
			var $tgt = $(event.target);
			if ($tgt.is('.faq-wrap .show')) {
				$(this).children('.answer').slideDown('normal');
				$(this).children('h3').addClass('hide').removeClass('show');	
				$(this).addClass('open active');	
			 } else if ($tgt.is('.faq-wrap .hide')) {
				$(this).children('.answer').slideUp('normal');
				$(this).children('h3').addClass('show').removeClass('hide');
				$(this).removeClass('open active');	
			} 
		});
		
		/* Videos */
		$('.video-wrap .first').before('<div class="row group">');
		
		/* Contact and Appt - user message */
		$('div.user-message').delay(9000).slideUp();
	});
	

