jQuery(document).ready(function() {
	/*jQuery('#slider').bxSlider({
			auto: true,
			pause: 5000
		});*/
	 var slider = jQuery('#slider').bxSlider({
auto: true,
			pause: 5000    	});
	 // assign a click event to the external thumbnails
	  jQuery('.thumbs a').click(function(){
	   var thumbIndex = jQuery('.thumbs a').index(this);
		// call the "goToSlide" public function
		slider.goToSlide(thumbIndex);
	  
		// remove all active classes
		jQuery('.thumbs a').removeClass('pager-active');
		// assisgn "pager-active" to clicked thumb
		jQuery(this).addClass('pager-active');
		// very important! you must kill the links default behavior
		return false;
	  });
	
	  // assign "pager-active" class to the first thumb
	  jQuery('.thumbs a:first').addClass('pager-active');
});


