Okay, well the problem is I have written scripts for a site that works perfectly. I tried altering it so that I could make more use of the menu, however that failed.
So I wrote the menu seperately. Now borth work perfectly, but I cannot seem to combine the two scripts.
I have uploaded the appropriate files.