If you use the .on() overload that takes 3 args and is called on the document. Then the events will remain hooked up as UI elements come and go. No need to re add them every time.
$(document).on("click", "a.offsite", function(){ .....
See the description of .on() here. http://api.jquery.com/live/