Unminified, documented and credited from jquery.tuMap.min.js