better solution than a switch for change classNames
<p>I have created a clock, that connected to date().getHours / minutes /Seconds
The images that are shows are embedded in different classes.</p>

<p>Now when i want to change the images i wrote a switch for every second minute and hours..
Thats probably more code than googles engine. So i wonder if there is a more simple solution.</p>

<p>This is some code of the hour switch
so when minute 15 gets to the clock it change the className to one and five.</p>

<pre><code>switch(h){

        case 15:
            x = hours.appendChild(hour1).className = "clock-digit-one";
            x = hours.appendChild(hour2).className = "clock-digit-five";
            break
        case 16:
            x = hours.appendChild(hour1).className = "clock-digit-one";
            x = hours.appendChild(hour2).className = "clock-digit-six";
            break

        default:
            x = hours.appendChild(hour1).className = "clock-digit-zero";
            x = hours.appendChild(hour2).className = "clock-digit-zero";

    }
</code></pre>

<p>I have created a jsFiddle  that shows more of the code.
Any tips would be great. 
<a href="http://jsfiddle.net/Xk49c/2/" rel="nofollow">http://jsfiddle.net/Xk49c/2/</a></p>

<p>Thanks </p>
