jQuery/JS simulation
<p>I'm not an expert in jQuery or Javascript (I have only started with it recently), so this might sound like a silly question:
I have 4 tabs, all of which are clickable. So, I made 2 functions, 1 to actually execute on click, and one to only "simulate" the click, so I could change the tabs every 5 seconds. What I've done is, set a bool variable "click" to false, which is set to "true" if the actualy click function is executed, so the automatic tab switching stops. And below both of these functions I added a while loop like this:</p>

<pre><code>var nr = 0;
while(!klik){
    tabss.eq(st % 4).click().delay(5000); //this is the "simulation"
    st++;
}
</code></pre>

<p>now, it opens up the first tab as it's suppose to, but after 5 seconds nothing happens. Any suggestions? I sorta want is like a slideshow that stops, when users clicks something.</p>
