Jquery childs active when parent is active
<p>i am trying to get the childs active when the parent is active. 
So far i have done this, and sorry for the lamme code i a newbie.
I am testing the code here: <a href="http://jsfiddle.net/MS5DV/3/" rel="nofollow">http://jsfiddle.net/MS5DV/3/</a></p>

<pre><code>var toggleSlide = function() {
$("#slider span.active").removeClass().next().add("#slider span:first").last().addClass("active"); 
};
setInterval(toggleSlide, 1000);
$("#slider .active a#open span").addClass("ready");
setInterval ( function(){ $("#slider .active a#open span").removeClass()}, 50);
</code></pre>
