function set_slides_width(){ var window_width=parseInt($('.block_1').width()); var side_width=parseInt(window_width-1260)/2; /*if(window_width<1280){ window_width=1280; }*/ window_width+='px'; $('#slides_1,#slides_1 .slides_container,#slides_1 .slides_container .slide').width(window_width); $('#slides_1 .prev').css('left',(side_width-50)+'px'); $('#slides_1 .next').css('right',(side_width-50)+'px'); } $(document).ready(function(){ $('#slides_1').slides({ preload:false, play:5000, pause:2500, hoverPause:true, generatePagination:true, generateNextPrev:false, }); set_slides_width(); }); $(window).load(function(){ $('#slides_1').touchwipe({ wipeLeft:function(){$('#slides_1').find('.next').click();}, wipeRight:function(){$('#slides_1').find('.prev').click();}, preventDefaultEvents:false, }); }); $(window).resize(function(){ set_slides_width(); }); $(document).ready(function(){ var window_width=parseInt($('.block_2 .rows').width()); var width = (window_width/2)-((2)*35)/2-5; $('.block_2 .rows .item').css('width',width+'px'); });$(document).ready(function(){ var window_width=parseInt($('.block_3 .rows').width()); var width = (window_width/1)-((1-1)*35)/1-5; $('.block_3 .rows .item').css('width',width+'px'); });$(document).ready(function(){ var window_width=parseInt($('.block_5 .rows').width()); var width = (window_width/1)-((1-1)*35)/1-5; $('.block_5 .rows .item').css('width',width+'px'); });