We use čau and ahoj for hello and goodbye. Those are informal such as friends. Na shledanou and děkuji we use for formal occasions. For example older people and people you dont know. At least i learned it like that from my czech friends
'Čau' is actually from Italian. They can be used as a greeting and/or as a farewell in both languages, though it is quite informal.