Sujet : problème de débutant

$(document).ready(function(){
    slider.init();
    slider.play_defil();
    });
    
    slider={
        init: function(){
            slider.elem=$("#head_slider_content");
            slider.nbSlide=slider.elem.find("object").length;
            slider.curent=0;
            $("header_slider_fleche_droite").click(function(){
                slider.next();
            });
            $("header_slider_fleche_gauche").click(function(){
                slider.prev();
            });
            $("head_slider").mouseover(function(){
                slider.stop_defil();
        });
            $("head_slider").mouseout(function(){
                slider.play_defil();
        },
    
        [u]next:function(){ [/u]
            slider.current++;
            if(slider.current>slider.nbSlide-1)
            {
                slider.current=0;
                slider.elem.stop().animate({marginLeft:"0px"});
            }
            else
            {
                slider.elem.stop().animate({marginLeft:-slider.current*820+"px"});
            }
        },
        prev:function(){
            slider.current--;
            if(slider.current<0)
        {
            slider.current=slider.nbSlide-1;
        }
        slider.elem.stop().animate({marginLeft:-slider.current*820+"px"});
        },
        play_defil:function(){
            slider.timer=window.setInterval("slider.next()",2000);
        },
        stop_defil:function(){
            window.clearInterval(slider.timer);
    }