			(function($){	
				$(function(){
					var slider = $('#slider1').bxSlider({
						mode: 'fade',
						speed: 1000,
						pause: 8000,
						onBeforeSlide: function(currentSlide, totalSlides){
						if(currentSlide == 0) {
							$('#p1').attr('class', 'active h2');
							$('#p2').attr('class', 'inactive h2');
							$('#p3').attr('class', 'inactive h2');
						} else if(currentSlide == 1) {
							$('#p1').attr('class', 'inactive h2');
							$('#p2').attr('class', 'active h2');
							$('#p3').attr('class', 'inactive h2');
						} else if(currentSlide == 2) {
							$('#p1').attr('class', 'inactive h2');
							$('#p2').attr('class', 'inactive h2');
							$('#p3').attr('class', 'active h2');
				}
			},
    auto: true,
    controls: false
    });
			/*$('#p1').click(function(){
				slider.goToSlide(0);
				return false;
			});
			$('#p2').click(function(){
				slider.goToSlide(1);
				return false;
			});
			$('#p3').click(function(){
				slider.goToSlide(2);
				return false;
			});*/
  });	
}(jQuery))

/*$(function(){
  var slider2 = $('#slider2').bxSlider({
    displaySlideQty: 3,
    moveSlideQty: 1,
		controls: false
  });
	$('#prev').click(function(){
		slider2.goToPreviousSlide();
		return false;
	});
	$('#next').click(function(){
		slider2.goToNextSlide();
		return false;
	});
});*/
