function set_slides_width(){ var window_width=parseInt($(window).width()); var side_width=parseInt(window_width-1170)/2; if(window_width<1170){ window_width=1170; } window_width+='px'; $('#slides_14,#slides_14 .slides_container,#slides_14 .slides_container .slide').width(window_width); $('#slides_14 .prev').css('left',(side_width-50)+'px'); $('#slides_14 .next').css('right',(side_width-50)+'px'); } $(document).ready(function(){ set_slides_width(); });$(window).resize(function(){ set_slides_width(); }); $(document).ready(function(){ $('#carousel_25').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_25').touchwipe({ wipeLeft:function(){$('#carousel_25').find('.next').click();}, wipeRight:function(){$('#carousel_25').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_26').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_26').touchwipe({ wipeLeft:function(){$('#carousel_26').find('.next').click();}, wipeRight:function(){$('#carousel_26').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_18').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_18').touchwipe({ wipeLeft:function(){$('#carousel_18').find('.next').click();}, wipeRight:function(){$('#carousel_18').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_27').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_27').touchwipe({ wipeLeft:function(){$('#carousel_27').find('.next').click();}, wipeRight:function(){$('#carousel_27').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_20').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_20').touchwipe({ wipeLeft:function(){$('#carousel_20').find('.next').click();}, wipeRight:function(){$('#carousel_20').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_28').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_28').touchwipe({ wipeLeft:function(){$('#carousel_28').find('.next').click();}, wipeRight:function(){$('#carousel_28').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_21').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_21').touchwipe({ wipeLeft:function(){$('#carousel_21').find('.next').click();}, wipeRight:function(){$('#carousel_21').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_29').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_29').touchwipe({ wipeLeft:function(){$('#carousel_29').find('.next').click();}, wipeRight:function(){$('#carousel_29').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_22').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_22').touchwipe({ wipeLeft:function(){$('#carousel_22').find('.next').click();}, wipeRight:function(){$('#carousel_22').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_30').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_30').touchwipe({ wipeLeft:function(){$('#carousel_30').find('.next').click();}, wipeRight:function(){$('#carousel_30').find('.prev').click();}, preventDefaultEvents:false, }); }); $(document).ready(function(){ $('#carousel_31').tinycarousel({interval:false}); }); $(window).load(function(){ $('#carousel_31').touchwipe({ wipeLeft:function(){$('#carousel_31').find('.next').click();}, wipeRight:function(){$('#carousel_31').find('.prev').click();}, preventDefaultEvents:false, }); });