Created a new event "activate"

The "activate" function allows people to click a tab through code.

I've also removed the duplicate binding of the "resize" function (only
needs to be bound once outside the loop)
Merge pull request #16 from digiguru/EventActivate

Created a new event "activate"