if statement with img.src
<p>The problem: whenever, if i have the single '=' the variable will show up and be fine.. but it completely ignores the if statement.  if i only do the double '=='.. the variable doesnt show up, and it goes to the else state.  lemme know if u see anything wrong.</p>

<pre><code>var pic1 = document.getElementById('team1pic').src;
var win1 = document.getElementById('wins').innerHTML;
if (pic1 == 'pens.jpg') {
    document.getElementById('wins').innerHTML = PittWins;
} else {
    document.getElementById('wins').innerHTML = 'no';
}
</code></pre>

<p>here is some html to go along with it that i have</p>

<pre><code>&lt;a class="dock-item" id="pens" href="#" onclick="document.getElementById('team1pic').src='pens.jpg'"&gt;&lt;span&gt;Pittsburgh Penguins&lt;/span&gt;&lt;img src="pens.jpg" alt="Pittsburgh Penguins" /&gt;&lt;/a&gt;` 
</code></pre>

<p>and then </p>

<pre><code>&lt;th width="35%" &gt;&lt;img src="" / id='team1pic'&gt;&lt;/th&gt;
</code></pre>
