Flash + HTML + variables

Hi guys.

I’m currently working on a Flash site and need help.
Basically, when you go to the home.html page an animation will play from start and then stop at the end of it.

However, for all other pages i.e contact.html aboutus.html we need the animation to skip to the end straight away and not to play the whole animation through.

I was thinking this would be controlled by a variable or some kind of external text file ect. Basically in the first frame the actionscript needs to basically say

“if this html page is aboutus.html then go to the last frame and stop”
and with the index page it would say “if this html page is index.html then keep playing”

Does anyone have any solutions or methods for this? Anyhelp would be great. Here’s the site http://www.dravalanche.com.au/hosting/copy/
(FYI the links dont work) I’m using AS 2.0 for this also.

thanks guys