Google SWFObject javascript detection when video stopped or get completed play
===

hiii all,

this is my very first post on stackoverflow, I always used to be a guy sitting back and see what happens here, never contributed, but now i finally got a chance..

MY question is I have a swf file, and I am playing it on my html page using SWFObject,now I want to implement a javascript method which triggers when videos gets completely played or get stopped..

here's my code 
------------------------------------------

    <html><head>
      <title>PENSIONS BOOST</title>
    
      
      
     
    <script type="text/javascript" src="https://aimhighermarketing.s3.amazonaws.com/videocontrollers/swfobject.js"></script>
    </head><body>
     <div id="player" align="center">
      <script type="text/javascript">
    var so = new SWFObject('https://aimhighermarketing.s3.amazonaws.com/videocontrollers/player.swf','mp1','640','480','10');
    so.addParam('allowscriptaccess','always');
    so.addParam('allowfullscreen','true');
    so.addVariable('frontcolor','FFFFFF');
    so.addVariable('lightcolor','FFFFFF');
    so.addVariable('screencolor','FFFFFF');
    so.addParam('flashvars','&file=HTTP://soci7361@socialnetworkbizbuilder.com/videos/pbsalesvideov2.mp4&&controlbar=none&autostart=true');
    
    so.write('player');</script>
    </div>
    </body>
    </html>

--------------------------------------


,any kind of help is very much appreciated..
Kindly help..


Thanks