‘);
banner_tostring(lGNqqdLrPD_147_15s,”leftSideBar”);
}
}
if (typeof(lGNqqdLrPD_148_15s) != ‘undefined’) {
if (lGNqqdLrPD_148_15s.aNodes.length>0) {
var borderMargin2 = (docwidth-mainwidth)/2 – lGNqqdLrPD_148_15s.aNodes[0].width – 3;
$(“body”).append(‘
‘,defaultbuttonsfade:.4,configholder:{},getCSSValue:function(t){return”auto”==t?0:parseInt(t)},getremotepanels:function(t,e){e.$belt.html(this.ajaxloadingmsg),t.ajax({url:e.contenttype[1],async:!0,error:function(t){e.$belt.html(“Error fetching content.
Server Response: “+t.responseText)},success:function(a){e.$belt.html(a),e.$panels=e.$gallery.find(“.”+e.panelclass),stepcarousel.alignpanels(t,e)}})},getoffset:function(t,e){return t.offsetParent?t[e]+this.getoffset(t.offsetParent,e):t[e]},getCookie:function(t){var e=new RegExp(t+”=[^;]+”,”i”);return document.cookie.match(e)?document.cookie.match(e)[0].split(“=”)[1]:null},setCookie:function(t,e){document.cookie=t+”=”+e},fadebuttons:function(t,e){t.$leftnavbutton.fadeTo(“fast”,0==e?this.defaultbuttonsfade:1),t.$rightnavbutton.fadeTo(“fast”,e==t.lastvisiblepanel?this.defaultbuttonsfade:1),e==t.lastvisiblepanel&&stepcarousel.stopautostep(t)},addnavbuttons:function(t,e,a){return e.$leftnavbutton=t(‘‘).css({zIndex:50,position:”absolute”,left:e.offsets.left+e.defaultbuttons.leftnav[1]+”px”,top:e.offsets.top+e.defaultbuttons.leftnav[2]+”px”,cursor:”hand”,cursor:”pointer”}).attr({title:”Back “+e.defaultbuttons.moveby+” panels”}).appendTo(“body”),e.$rightnavbutton=t(‘‘).css({zIndex:50,position:”absolute”,left:e.offsets.left+e.$gallery.get(0).offsetWidth+e.defaultbuttons.rightnav[1]+”px”,top:e.offsets.top+e.defaultbuttons.rightnav[2]+”px”,cursor:”hand”,cursor:”pointer”}).attr({title:”Forward “+e.defaultbuttons.moveby+” panels”}).appendTo(“body”),e.$leftnavbutton.bind(“click”,function(){stepcarousel.stepBy(e.galleryid,-e.defaultbuttons.moveby)}),e.$rightnavbutton.bind(“click”,function(){stepcarousel.stepBy(e.galleryid,e.defaultbuttons.moveby)}),0==e.panelbehavior.wraparound&&this.fadebuttons(e,a),e.$leftnavbutton.add(e.$rightnavbutton)},alignpanels:function(t,e){var a=0;e.paneloffsets=[a],e.panelwidths=[],e.$panels.each(function(s){var n=t(this);n.css({float:”none”,position:”absolute”,left:a+”px”}),n.bind(“click”,function(t){return e.onpanelclick(t.target)}),a+=stepcarousel.getCSSValue(n.css(“marginRight”))+parseInt(n.get(0).offsetWidth||n.css(“width”)),e.paneloffsets.push(a),e.panelwidths.push(a-e.paneloffsets[e.paneloffsets.length-2])}),e.paneloffsets.pop();var s=0,n=e.$panels.length-1;e.lastvisiblepanel=n;for(var o=e.$panels.length-1;o>=0;o–)s+=o==n?e.panelwidths[n]:e.paneloffsets[o+1]-e.paneloffsets[o],e.gallerywidth>s&&(e.lastvisiblepanel=o);e.$belt.css({width:a+”px”}),e.currentpanel=e.panelbehavior.persist?parseInt(this.getCookie(e.galleryid+”persist”)):0,e.currentpanel=”number”==typeof e.currentpanel&&e.currentpanel
stepcarousel.setup({
galleryid: ‘slidethumb’, //id of carousel DIV
beltclass: ‘baongoai’,
panelclass: ‘noidung’, //class of panel DIVs each holding content
autostep: {enable:false, moveby:1, pause:3000},
panelbehavior: {speed:100, wraparound:true, wrapbehavior:’slide’, persist:false},
defaultbuttons: {enable: false, moveby: 1, leftnav: [‘ -5, 80], rightnav: [‘ -20, 80]},
statusvars: [‘statusA’, ‘statusB’, ‘statusC’], //register 3 variables that contain current panel (start), current panel (last), and total panels
contenttype: [‘inline’], //content setting [‘inline’] or [‘ajax’, ‘path_to_external_file’]
oninit:function(){
isloaded=true;
// 20230227 căn giữa slide
let total = this.paneloffsets.length;
let jump_index = v_curent_index_slide_img + 1;// v_curent_index_slide_img từ 0 => jump_index từ 1
if (total total – 5){// 4 ảnh cuối
jump_index = total – 8;// luôn hiện đủ số lượng cần hiện
} else if (jump_index