Path problem with javascript/php
<p>I've been developing my site with the site directory structure as</p>

<pre><code>www
  img
  javascript
  include
  index.php
</code></pre>

<p>Now I want to change it to</p>

<pre><code>www
   index.php
   dir1
   dir2
   ...
   themes
       theme1
          img
          javascript
          include
          index.php
</code></pre>

<p>At the theme level index.php, earlier I've my paths to javscript files as <code>javascript/file1.js</code> or so.</p>

<p>Now I've changed the paths to <code>&lt;?php echo THEME_PATH . "javascript/file1.js"?&gt;</code></p>

<p>This includes the js files, however my problem is when I reached inside the js file.</p>

<p>For example, in one script.js file, I've a jquery method called as</p>

<p><code>$('#pop-con').html('&lt;p&gt;&lt;img src="img/ajax-loader.gif" width="220" height="19" /&gt;&lt;/p&gt;');</code></p>

<p>I can't use php inside the js file. So how do I change the paths similar to the php implementation above??</p>
