If after x seconds call function
<p>I have a javascript code here that on click one pulls one function and on click 2 pulls another function. </p>

<p>How can i make it so after X amoutn of seconds if i am on stop_autoslide function that i can call start_autoslide?</p>

<pre><code>&lt;script&gt;
    var count = 0;

function function1(){
    stop_autoslide()
    count++;
}

function function2(){
     start_autoslide();
     count = 0;
}

function slideShowClicks(){
     if(count ==0){
         function1();
     }else{
         function2();
     }
}
&lt;/script&gt;
</code></pre>
