Change image color of clicking different color thumbs


I’ve seen a javascript effect on some wardrobe sites in which color of clothing in main image changes on clicking on small thumbnails and in some cases the clothing gets changed on clicking on small thumbnail of clothing.

Can sumone please suggest me a jquery plugin or some javascript technique to achive this? Will be grt for me!