Jquery Toggle Link Color
<p>I am using Cufon and I have my navigation and all of my content is on one page and it is scrolling via anchor tag to that section of the page, yet the navigation stays visible I want when you click a link that link will light up:</p>

<p>Here is what I have so far:</p>

<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;

&lt;link rel="stylesheet" type="text/css" href="style.css"/&gt;
&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;/script&gt;
&lt;script src="cufon-yui.js" type="text/javascript"&gt;&lt;/script&gt;
&lt;script src="Veneer_400.font.js" type="text/javascript"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;
    Cufon.replace('h1 a', { 
        hover: true
    });
&lt;/script&gt;

&lt;style type="text/css"&gt;
h1 a.selected {
    color: red;
}​
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;
&lt;div class="home-link"&gt;&lt;h1&gt;&lt;a class="selected" href="#home"&gt;Home&lt;/a&gt;&lt;/h1&gt;&lt;/div&gt;
&lt;div class="hiw-link"&gt;&lt;h1&gt;&lt;a class="" href="#howitworks"&gt;How It Works&lt;/a&gt;&lt;/h1&gt;&lt;/div&gt;
&lt;div class="faq-link"&gt;&lt;h1&gt;&lt;a class="" href="#faq"&gt;Faq&lt;/a&gt;&lt;/h1&gt;&lt;/div&gt;
&lt;div class="prize-link"&gt;&lt;h1&gt;&lt;a class="" href="#prizes"&gt;Prizes&lt;/a&gt;&lt;/h1&gt;&lt;/div&gt;
&lt;div class="media-link"&gt;&lt;h1&gt;&lt;a class="" href="#media"&gt;Media&lt;/a&gt;&lt;/h1&gt;&lt;/div&gt;
&lt;div class="rules-link"&gt;&lt;h1&gt;&lt;a class="" href="#rules"&gt;Rules&lt;/a&gt;&lt;/h1&gt;&lt;/div&gt;
&lt;script type="text/javascript"&gt;
$('#home-link','#hiw-link','#faq-link','#prize-link','#media-link','#rules-link').toggleClass(selected, addOrRemove);
&lt;/script&gt;
&lt;/body&gt;
&lt;/html&gt;
</code></pre>

<p>So basically as you see I am just trying to add the class of selected to the anchor tag and remove it from everything else so only that link is red.  Help is greatly appreciated.</p>
