Getting one slide in my slideshow to stay longer between intervals
<p>What I'm trying to accomplish is a slideshow that has one slide that lasts 10 seconds-- while all other slides in the slideshow last 4 seconds. In my code below, the current.id==1 condition is my first slide. When the DOM loads, it checks what slide is first, and if it's current.id==1, it makes all transitions 10 seconds. Which isn't exactly what I want. Any suggestions how I could get the all other slides to interval every 4 seconds and still keep my main slide lasting 10 seconds every time it flips back to that slide?</p>

<p>Sorry if that is a bit confusing. Thanks for the help guys!</p>

<pre><code>/* Setting auto-advance every 10 seconds for main slide, 4 seconds for all others */

var auto;
if (current.id==1) { //this is the only slide I want lasting 10 seconds.
  auto=setInterval(function(){

    next();

  },10*1000); //10 seconds for MAIN slide
} else { // all other slides should interval every 4 seconds.
  auto=setInterval(function(){
    next();

  },4*1000);//4 seconds each other slide.
}
</code></pre>
