I've got an outside script running the nav for my site. But the problem comes in where i have to jump back to my index after one has browsed the site.

The main problem is that if a person click on the index button while being in the index it will give an error cus it's looking for the file in the previous dir. Same for going into the about us page. I basicly need a konstant or refrence dir.

Example:

addItem('Home', '../index.html', '');
addItem('About', 'about.html', '');
addItem('Get in touch', 'getintouch.html', '');

This will work fine if you are in the about page., but not if you are in the index page. Hope you understand what i mean.

Thanks Malan