[jQuery] [ScrollLeft ?]which func is scrollleft

[jQuery] [ScrollLeft ?]which func is scrollleft


var i=1;
function sw(act,id){
if(act=='in'){
    if(i>=1){
     i=i-6;
     $(id).scrollLeft=i;
     var b=setTimeout(function(){sw('left',id);},"10");}
    else{
     clearTimeout(b);}
}
else{
    if(i<410){
     i=i+6;
     $(id).scrollLeft=i;
     var b=setTimeout(function(){sw('right',id);},"10");}
    else{
     clearTimeout(b);}
}
}
just want this scroll in Jquery style.
btw, $(id) is getElementById.
Anyone? thanks a lot