Fix for on change of attributes/ variant image switch for ReadyThemes (error loading large image)
// Continously added to thumbnail index, and was always wrong. MivaEvents.SubscribeToEvent('variant_changed',function(){ thumbnailIndex = 0 });