$(function(){

                        $('#slider1').anythingSlider({
                            startStopped    : false, // If autoPlay is on, this can force it to start stopped
                            width           : 768,   // Override the default CSS width
                            theme           : 'metallic',
                            autoPlayLocked  : true,  // If true, user changing slides will not stop the slideshow
                            resumeDelay     : 10000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).
                            height          : 335,
                            delay           : 23000      // How long between slideshow transitions in AutoPlay mode (in milliseconds)


                        });

                        var dotCounter = 0;
                        var intId = setInterval(addDot,1500);
                        function addDot(){
                            if (dotCounter == 0) {
                                dotCounter++;
                                $('#devis').css("background-position", "top");
                            } else {
                                $('#devis').css("background-position", "bottom");
                                dotCounter = 0;

                            }
                        }


                    });
