var x;
$(".btn-slider").click(function(x){
x = 0;
$('.sliderPop').flexslider({
selector: '.ct-sliderPop-container > .ct-sliderPop',
slideshow: false,
controlNav: false,
startAt: x,
controlsContainer: '.ct-sliderPop-container'
});
$('.ct-sliderPop-close').on('click', function() {
$('.sliderPop').hide();
$('.ct-sliderPop-container').removeClass('open');
$('.sliderPop').removeClass('flexslider');
$('.sliderPop .ct-sliderPop-container').removeClass('slides');
});
});
$(".btn-slider1").click(function(x){
x = 11;
$('.sliderPop').flexslider({
selector: '.ct-sliderPop-container > .ct-sliderPop',
slideshow: false,
controlNav: false,
startAt: x,
controlsContainer: '.ct-sliderPop-container'
});
$('.ct-sliderPop-close').on('click', function() {
$('.sliderPop').hide();
$('.ct-sliderPop-container').removeClass('open');
$('.sliderPop').removeClass('flexslider');
$('.sliderPop .ct-sliderPop-container').removeClass('slides');
});
});
});
$(".btn").click(function(){
$('.sliderPop').show();
$('.ct-sliderPop-container').addClass('open');
$('.sliderPop' ).addClass('flexslider');
$('.ct-sliderPop-container').addClass('slides');
});