The code you written is working fine in all browser's. The problem is that the redirection of pages (loading) happening faster than JQuery code. So instead of giving relative paths to your hyperlinks provide absolute path ( root path). So that full page load will occurse and your JQuery code will work fine...
You should concentrate on
page load time,
JQuery code execution time.
Lets give a try below..
Instead of this type of coding
<a href="Docs/index.html"></a>
<a href="HowTo/index.html"></a>
give path like below...
<a href="http://www.cydas.org/Docs/index.html"></a>
<a href="http://www.cydas.org/HowTo/index.html"></a>
..