optimizing multiple if statements
<p>I have some code that looks like this:</p>

<pre><code>TheClass = TheAjaxIndicator.prop('class');

if (TheClass.indexOf('Blue') &gt; 0) { TheHTML = TheHTMLBlue; }
if (TheClass.indexOf('White') &gt; 0) { TheHTML = TheHTMLWhite; }
if (TheClass.indexOf('Green') &gt; 0) { TheHTML = TheHTMLGreen; }
if (TheClass.indexOf('Brown') &gt; 0) { TheHTML = TheHTMLBrown; }
</code></pre>

<p>How  can I avoid all these <code>if</code> statements?</p>

<p>Thanks.</p>
