How to load swf depending of the hours of the day?

i want to have an swf loaded between 8am and 6pm and another one between 6pm and 8am.

How can i do that?
i guess it’s not very hard but i don’t get it.

i suppose i need a variable with the hours. then do a if statment that check if the current hours is between 8am and 6pm.

then if it’s between this time do this if not do that…

No i just don’t know how to write the code for this :sigh:

Anyone want to help?
Thanks :slight_smile: