hi
i try to nest two setInterval like this:
i'm using jquery, for load, but this doesn't matter, it's the same without jquery

$(function(){
var aux=0;
setInterval(function(){
var handle = setInterval(function(){
// do someting
if(aux=10) {
clearInterval(handle);
}
aux++;
},2000);
// do something more
},3000);
});

my problem is when i run this, the program hold on 3000 miliseconds, and after that, start to run normally
and do all that needed do, but why happen this?, why hold on a time and after that run?

thanks