$colour() represents the colour choice in the mIRC colour dialogue. When you change colours there the scripted events change with it so you don't need to edit colour codes all the time.

-ta is called a 'switch' and the letters mean t: Timestamp and a: Active Window.