// REMEMBER here we use "player_01" as variable, you could use another or implement any number of player (not tested)

function sendEvent(swf,typ,prm) { 
  thisMovie(swf).sendEvent(typ,prm); 
};
function getUpdate(typ,pr1,pr2,swf) {};
function thisMovie(swf) {
  if(navigator.appName.indexOf("Microsoft") != -1) {
    return window[swf];
  } else {
    return document[swf];
  }
};

function loadFile(swf,obj) { 
  thisMovie(swf).loadFile(obj); 
};

//sendEvent('jstest','playpause');
//------------------------------------------------------------------------------------------------
//getlink, index: navigate to the link of playlistitem index. 
//next : play the next playlistitem. 
//playitem, index: play playlistitem index 
//playpause: toggle the playback status. 
//prev: play the previous playlistitem. 
//scrub, seconds: scrub the current item to position seconds. 
//stop: stop playing and buffering. 
//volume, percent: set the volume to percent percent. 
//------------------------------------------------------------------------------------------------
//function getUpdate(typ,pr1,pr2,swf) { 
//  if(typ == 'state') { alert('the current state is: '+pr1'); }
//};
//------------------------------------------------------------------------------------------------
//item, index: the currently playing playlistitem. 
//load, percent: the percentage loaded of the current item. 
//size, width,height: the dimensions of the current item. 
//state, index: the current playback state. 
//time, elapsed, remaining: the current elapsed and remaining time. 
//volume, percent: the current volume.
//------------------------------------------------------------------------------------------------
//
//Note that the last parameter (swf) of the getUpdate() function will contain the value you've set to the javascriptid flashvar. It's useful if you control multiple players on one page, so you know which player is sending the updates. If you only have one player it's not needed; you can then remove the javascriptid line in the embed code.
//------------------------------------------------------------------------------------------------
//
//javascript:sendEvent('jstest','playpause');
//------------------------------------------------------------------------------------------------
//function loadFile(swf,obj) { 
//  thisMovie(swf).loadFile(obj); 
//};
//------------------------------------------------------------------------------------------------
//javascript:loadFile('jstest2',{file:'/upload/afraid.flv'})
//javascript:loadFile('jstest2',{file:'http://blip.tv/?1=1&s=posts&skin=rss'})
//javascript:loadFile('jstest2',{file:'/upload/corrie.flv',image:'/upload/corrie.jpg',captions:'/upload/corrie.xml'})
//------------------------------------------------------------------------------------------------
//
