jQuery for HTML to PHP - Function Error
<p>I have just purchased "Tonic Gallery" which my client thinks it's absolutely perfect for his website. The difficulty is that it works great with HTML but for ".php" it won't even load.</p>

<p>To give you a better idea, here two links:</p>

<p>Tonic Gallery Link: <a href="http://codecanyon.net/item/tonic-gal...gallery/120710" rel="nofollow">http://codecanyon.net/item/tonic-gal...gallery/120710</a></p>

<p>LincHospitality.com: <a href="http://linchospitality.com/" rel="nofollow">http://linchospitality.com/</a></p>

<p>This is inputed into the "Portfolio" tab. As per instructions, I have entered the following into the "head" (header.php):</p>

<pre><code>&lt;link rel="stylesheet" type="text/css" href="styles/tonic_gallery.css"/&gt;
&lt;link rel="stylesheet" type="text/css" href="styles/demo_styles.css"/&gt;
&lt;link rel="stylesheet" type="text/css" href="styles/prettyPhoto.css"/&gt;


&lt;script type="text/javascript" src="script/jquery-1.4.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="script/jquery-easing.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="script/jquery.prettyPhoto.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="script/portfolio-setter.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
  $(function(){
        // init the portfolio functionality
        $('#portfolio_wavy').portfolioSetter({xmlSource:'portfolio.xml', wavyAnimation:true});

  });
&lt;/script&gt;
</code></pre>

<p>I had then created the "portfolio.php" page with the required input from the plugin:</p>

<pre><code>&lt;?php $page = "portfolio";?&gt; 
&lt;?php include("header.php"); ?&gt; 

  &lt;div role="main"&gt; 
    &lt;div class="wrapper" id="subPagesWrap"&gt; 
    &lt;div id="portfolio_wavy"&gt;&lt;/div&gt; 
    &lt;/div&gt;&lt;!-- wrapper --&gt; 
  &lt;/div&gt; &lt;!-- end main --&gt; 

&lt;?php include("footer.php"); ?&gt;
</code></pre>

<p>The in a direct ".html" file, it works perfectly! But since I had placed in the "header.php" and "portfolio.php", I get the following error:</p>

<pre><code>$("#portfolio_wavy").portfolioSetter is not a function
</code></pre>

<p>Here is a link to the ".html" files as to how it's suppose to work. Same functions, same root folder just not working in ".php".</p>

<p>linchospitality "/" gallery [dot] html</p>

<p>How do I over come this function error?  Any simple methods?</p>

<p>Thanks!</p>
