var moverSegmentoDefecto = 233; function moverSegmentos(idSegmento, tipoMover, durationMover) {
    var divSegmento = document.getElementById(idSegmento); var divSegmento2 = document.getElementById("ctl00_cphWide_pnlSegmentos"); var mover = false; if (tipoMover < 0) { moverSegmento = moverSegmentoDefecto * (-1); accionMover = 'showPrevious'; if (divSegmento.scrollLeft > 0) mover = true; }
    else { moverSegmento = moverSegmentoDefecto; accionMover = 'showNext'; if (divSegmento.scrollLeft + moverSegmento <= divSegmento2.offsetWidth - 20) mover = true; }
    if (mover) $segmentos.trigger(accionMover);
}