Has anyone successfully been able to generate a popup either on hover or on zoom with the attributes image swatches?

I know how it should be accomplished with adding a javascript and editing the includes/modules/attributes.php but I am not sure how to change the code that creates the attribute so that it pops up the img_LRG.

Any help would be greatly appreciated.