Solved:
Apparently this condition only occurred with Google Chrome browser with the “window resizer” extension active.
After I disabled that extension, the code only got executed once, like it should.
I recently switched our band’s website to wordpress. Check it out at http://www.shagdaddymusic.com