i need to take the jquery parameter out of the html, how can i convert this to a function?
<p>this resides inside the body tag in an HTML file and provides parameters to the jquery accordion function:</p>

<pre><code>&lt;script type="text/javascript"&gt;
$(function() { 

$("#accordion").tabs("#accordion div.pane", {tabs: 'h2', effect: 'slide', initialIndex:    null});
});
&lt;/script&gt;
</code></pre>

<p>I want to save this as an external JavaScript file and call the function to do the same thing. </p>

<p>I am a newbie, please help!</p>
