Change color of div to match another div using jquery
<p>I currently have a total of 4 boxes with the same class and each has its own ID, when any of the boxes are clicked, the background colors of all the boxes should change to that of an assigned div ID.</p>

<p>I do want to have it be a specific color as in the current JS fiddle example, I want it to be what ever color a particular div is.
i.e. #box2 will change color on .click to that of #box1 and #box1 will change to the color of #box4. thus giving the illusion of the boxes moving clockwise. I want this to be usable for an unlimited number of clicks.</p>

<pre><code>        $(document).ready(function () {
            $('.colorbox').click(function () {
                $('#box1').css('background-color', 'blue');
                $('#box2').css('background-color', 'red');
                $('#box3').css('background-color', 'yellow');
                $('#box4').css('background-color', 'green');           
            });
        });
</code></pre>

<p>See <a href="http://jsfiddle.net/YMqyE/" rel="nofollow">http://jsfiddle.net/YMqyE/</a></p>
