how to set slider value

how to set slider value


hello,
i guess it's a noob question (sorry for that): how can i set the value
of a slider?
this slider works fine:
        $('.slider2').slider(
        {
            handle: '.handler2',
            value: 0,
            min: 0,
            max: 100,
            step: 1,
            slide: function(e, ui)                    // while object is dragged, do this:
            {
                var handlerPos2 = ui.value;
                setTime('player2', handlerPos2);
            }
        });
now i want to call this slider to set it to a new value. i am using
the jquery.timers plugin for calling this function every now and then:
    $('.handler1').everyTime(1000,function(i)
    {
            var pos1 = getHandlerPosition('player1');
            ############ move slider to value of pos1 ##########
    });
how can i set the value of this slider?
thanks in advance
dirk