Forum Moderators: phranque
What I suggest you do is rephrase your question. You have an excellent question and are correct in assuming that there may be extra code in the way of the spiders. We don't need to see your code to discuss it.
I can tell you two commonly employed methods is to take the JavaScript code that is in your head section and create a .js file, then link to it. If your css isn't already done this way, then you should create a .css file and dump all of your css codes in there as well.
[pre]
<body>
<div id="content">
<p>Your Content goes here.</p>
</div>
<div id="navbar">
<p>Navigation links here.</p>
</div>
</body>
[/pre] Minimising the number of tags before the content and giving a better text/code ratio.
If your going to be doing SEO then you really need some skooling in html. Don't worry too much about javascript or css yet, but just make sure they use external files (i.e. <link rel="stylesheet"...> indicates an external CSS stylesheet and <script type="text/javascript" src=".."> indicates an external javascript file).
i.e. the amount of actual text content versus the amount of html code.
There is some dispute over what the 'magic' ratio is but its generally agreed that the higher this number the better (but don't avoid using proper valid HTML markup in an attempt to make this ratio higher!)