[jQuery] Problem with queue of jquery commands

[jQuery] Problem with queue of jquery commands


Hello, I'm trying to do a kiosk software based on Firefox+LAMP+jQuery.
Basically is a web page showcase with fixed header and footer and some
pages in loop.
You can browse pages with the numpad's keys:
0: pause flow
1: scroll down a bit
2: back to the top
3: scroll up a bit
5: go to a certain page
7: go to a certain page
8: go to a certain page
9: go to the next page
The url of the software is
http://195.182.241.253/demo/
Seems like everything works fine but when you play with the keys seems
like it creates a big load of javascript commands and eventually some
of the keys don't work anymore (in particular I've seen this strange
behaviour with 0 and 2) and pages begin to load one after the other in
a tricky way.
Is there a way to clean up or speed up javascript execution queue to
avoid this strange behaviour?
Thanks,
Michael.