Code Review

This method name is way way way too general/generic to be a global function.  Put in an object or at least scope it to the document.ready call.