I made the changes that you suggested but the promlem still accures. Instead the Our Skills module animation of the Tendo template stopped working.
There are many nested functions i don't know if i inserted it in the right place in the mentioned file.
I put the site onjline this is the link : www.vifco.co/vifco
you need to enter several times to the same menu item to reproduce the error. The display changes each time.