Jquery - Take text from current URL
<p>I need to change the style of each page dynamically based on the page the user is on.</p>

<p>To do this I plan on taking the URL of the page being visited, stripping out some bits and pieces, and apply then apply the rresult to the <code>&lt;body&gt;</code> tag. This will then allow me to style based on the name of the page.</p>

<p>The URL I have looks something like:</p>

<pre><code>http://dan.manfredman.net/site/user/location/home.php
http://dan.manfredman.net/site/user/location/profile.php
http://dan.manfredman.net/site/user/location/users.php
</code></pre>

<p>I need only 'home', 'profile', 'users', how can I use JQuery to remove the .php from the file name and then apply the remaining 'home', 'profile', 'users' to the body tag based on the page there visiting?</p>
