Hey everyone, I am new to javascript and I am just starting to make a new site and I am trying to put two different codes of javascript into it. The first page is called Default.aspx and I have a side bar. This sidebar is working perfectly and as soon as I try to insert more javascript for something else everything stops working and I get an error for the sidebar. If I have just the sidebar code everything works perfectly. So that is how I have it right now.

I am trying to put a navigation bar on a different page, this page is Site.Master. Everything is referenced (not sure if it is correct, thats why I am here!) and when I run it I get a runtime error and then it finds something wrong with the sidebar on a different page! I can't really tell you the error because now my localhost is freezing whenever I run it. But the error is a runtime error. If you could just tell me if the code looks good, or if I am forgetting some kind of trick.

The sidebar code is in a seperate file and I am calling for it in the Default.aspx file. Here is the code, and hopefully someone can help me out!
Thanks a lot everyone!