document.addEventListener('DOMContentLoaded', function() {
jQuery('#slider_6941').owlCarousel({
items : 1,
smartSpeed : 200,
autoplay : true,
autoplayTimeout : 5000,
autoplayHoverPause : true,
smartSpeed : 200,
fluidSpeed : 200,
autoplaySpeed : 200,
navSpeed : 200,
dotsSpeed : 200,
loop : true,
nav : true,
navText : ['Previous','Next'],
dots : true,
responsiveRefreshRate : 200,
slideBy : 1,
mergeFit : true,
autoHeight : false,
mouseDrag : false,
touchDrag : true
});
jQuery('#slider_6941').css('visibility', 'visible');
sa_resize_slider_6941();
window.addEventListener('resize', sa_resize_slider_6941);
function sa_resize_slider_6941() {
var min_height = '50';
var win_width = jQuery(window).width();
var slider_width = jQuery('#slider_6941').width();
if (win_width < 480) {
var slide_width = slider_width / 1;
} else if (win_width < 768) {
var slide_width = slider_width / 1;
} else if (win_width < 980) {
var slide_width = slider_width / 1;
} else if (win_width < 1200) {
var slide_width = slider_width / 1;
} else if (win_width < 1500) {
var slide_width = slider_width / 1;
} else {
var slide_width = slider_width / 1;
}
slide_width = Math.round(slide_width);
var slide_height = '0';
if (min_height == 'aspect43') {
slide_height = (slide_width / 4) * 3; slide_height = Math.round(slide_height);
} else if (min_height == 'aspect169') {
slide_height = (slide_width / 16) * 9; slide_height = Math.round(slide_height);
} else {
slide_height = (slide_width / 100) * min_height; slide_height = Math.round(slide_height);
}
jQuery('#slider_6941 .owl-item .sa_hover_container').css('min-height', slide_height+'px');
}
var owl_goto = jQuery('#slider_6941');
jQuery('.slider_6941_goto1').click(function(event){
owl_goto.trigger('to.owl.carousel', 0);
});
jQuery('.slider_6941_goto2').click(function(event){
owl_goto.trigger('to.owl.carousel', 1);
});
jQuery('.slider_6941_goto3').click(function(event){
owl_goto.trigger('to.owl.carousel', 2);
});
var resize_6941 = jQuery('.owl-carousel');
resize_6941.on('initialized.owl.carousel', function(e) {
if (typeof(Event) === 'function') {
window.dispatchEvent(new Event('resize'));
} else {
var evt = window.document.createEvent('UIEvents');
evt.initUIEvent('resize', true, false, window, 0);
window.dispatchEvent(evt);
}
});
});