$(document).ready(function(){
var w = $(window).width();
var x = 768;
if (w >= x) {var ctr = true}else {var ctr = false};
$('.mv_slider').bxSlider({
mode: 'horizontal',
auto: true,
infiniteLoop:false,
controls: ctr,
captions: true,
responsive: true,
pagerCustom: '.mv_slider_nav'
});
});
//サムネイルのカールセル用
$(document).ready(function(){
var w = $(window).width();
var x = 768;
if (w >= x) {var mins = 10;var maxs = 10;var wid = 110}else { var mins = 3;var maxs = 3;var wid = 135};
$('.mv_slider_nav').bxSlider({
pager:false,
controls:true,
minSlides:mins,
maxSlides:maxs,
slideWidth: wid,
slideMargin:0,
touchEnabled:false
});
});
$(window).load(function() {
var config = {
mode: 'horizontal',
auto: false,
infiniteLoop:false,
pager:false,
controls: true,
responsive: true,
minSlides:1,
maxSlides:1,
slideMargin:0
};
var sliders = new Array();
$('.slide_roomPic').each(function(i, slider) {
sliders[i] = $(slider).bxSlider(config);
});
$('.tglBtn02').bind('click',function(){
$.each(sliders, function(i, slider) {
slider.reloadSlider(config);
});
});
});