If statement to determine what class is added on mouse click
<p>Im using javascript <em>if</em> statement to check if an element has the class <em>shrink</em> and if it has it, run a function and if its not run over function here is my javascript</p>

<pre><code>if (document.getElementById('green-player').className = 'shrink';)) 
{ 
    addclassgreen();
}
</code></pre>
