var divId='LiveActor';
var vWidth=200; // set to the width of .flv video
var vHeight=225; // set to the height of .flv video
var videoPath = Drupal.settings.live_actor['flvurl'];
var so = new SWFObject(Drupal.settings.live_actor['playerurl'], 'mymovie', vWidth, vHeight, '8');
so.addParam('allowScriptAccess','always');
so.addParam('swliveconnect','true');
so.addParam('wmode','transparent');
so.addVariable('videoPath', videoPath);
so.addVariable('videoW', vWidth);
so.addVariable('videoH', vHeight);
//
// CLIENT CONTROLLED FEATURES //
so.addVariable('autoplay', Drupal.settings.live_actor['autoplay']);//If set to true, the video will begin playing as soon as it loads.
so.addVariable('autorewind', Drupal.settings.live_actor['autorewind']); //resets the video to the first frame when finished playing.
so.addVariable('hoursDelayInterval', Drupal.settings.live_actor['hoursDelayInterval']); //Use a cookie to set number of hours before video plays again.
so.addVariable('daysDelayInterval', Drupal.settings.live_actor['daysDelayInterval']); //Use a cookie to set number of days before video plays again.
so.addVariable('weeksDelayInterval', Drupal.settings.live_actor['weeksDelayInterval']); //Use a cookie to set number of days before video plays again.
so.addVariable('closewhendone', Drupal.settings.live_actor['closewhendone']); //If set to true, the player will remove itself from the page when done playing.
//END CLIENT CONTROLLED FEATURES//
//
window.onload=function(){so.write(divId);};