$(document).ready(function(){ $('.showpic_flash').bxSlider({ pagerCustom: '#pic-page', adaptiveHeight: true, }); });