[jQuery] Structuring jQuery code in large projects

[jQuery] Structuring jQuery code in large projects

I have slowly started to implement jQuery into my company's applications. Previously we have heavily relied on prototype's $ function and Dean Edwards (et al) addEvent. An issue I stumbled upon is when our clients use Norton Internet Security with the popupblocker feature enabled. NIS injects some nasty javascript (
<a href="http://www.aestheticbliss.com/nis.txt">http://www.aestheticbliss.com/nis.txt</a>) before the first encounter of the script tag and after the </html> that causes Dean's addEvent code to cause a stack overflow (in IE only of course). I haven't been able to find a solution to this, so I am contemplating to rewrite everything using jQuery. In this regards I am looking for some tips on how to structure the code when the codebase gets fairly large. Do you put everything within $(document).ready or split it up. Anything would be helpful here. Even more so if someone knows how to fix Dean Edwards' addEvent not to produce stack overflows in an IE/Norton Internet Security environment! Thanks
_______________________________________________
jQuery mailing list
discuss@jquery.com
http://jquery.com/discuss/