I haven't yet looked through your code, but I'd speculate that the problem was that both scripts required a function to be assigned to window.onload so that the function will be called when the browser has finished loading the page. When the second one is assigned to window.onload it overwrites the first one. This is normal browser behaviour and can also be solved by adding an onload element to your body attribute with the two onloads seperated by semicolons:
onload= "scriptOne();scriptTwo()"
So there's another solution. If I diagnosed the problem right. Maybe I'll actually look a the code if I get time.
