﻿$(document).ready( function() {
	/* slider */
	var slider = $('#slideshow').bxSlider( {
	    auto: true,
	    controls: false,
		easing: 'easeInOutBack',
		pause: 5000,
		speed: 1500,
		onAfterSlide: function(currentSlide, totalSlides) {
			$('.desc').replaceWith('<div class="desc"><h4 style="color: #FFF;">' + (currentSlide+1) + '<span style="text-transform: lowercase; color:#FFF">/</span>' + totalSlides+' Slides</h4></div>');
			
		}	
	});	
	$('.prev').click(function(){
    slider.goToPreviousSlide();
    return false;
  });
  $('.next').click(function(){
    slider.goToNextSlide();
    return false;
  });
});
