function putVideo(id,url,width,height,is_flash,movie,skin) 
{	
	var content = '';
	if (/.*\.wmv/.test(url)) 
	{
		content +='<object id="MediaPlayer" width="'+width+'" height="'+height+'" classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715" align="baseline" border="0" standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject">';
		content +='<param name="URL" value="'+url+'">';
		content +='<param name="ShowControls" value="1">';
		content +='<param name="ShowPositionControls" value="0">';
		content +='<param name="ShowAudioControls" value="1">';
		content +='<param name="ShowTracker" value="1">';
		content +='<param name="ShowDisplay" value="0">';
		content +='<param name="ShowStatusBar" value="1">';
		content +='<param name="AutoSize" value="0">';
		content +='<param name="ShowGotoBar" value="0">';
		content +='<param name="ShowCaptioning" value="0">';
		content +='<param name="AutoStart" value="1">';
		content +='<param name="AnimationAtStart" value="0">';
		content +='<param name="TransparentAtStart" value="1">';
		content +='<param name="AllowScan" value="1">';
		content +='<param name="EnableContextMenu" value="1">';
		content +='<param name="ClickToPlay" value="0">';
		content +='<param name="InvokeURLs" value="1">';
		content +='<param name="DefaultFrame" value="datawindow">';
		content +='<param name="pluginspage" value="http://microsoft.com/windows/mediaplayer/en/download/">';
		content +='<!-- Embedded Microsoft Media Player Object for Netscape Navigator. -->';
		content +='<embed src="'+url+'"';
		content +='align="baseline" border="0"';
		content +='width="'+width+'" height="'+height+'"';
		content +='type="application/x-mplayer2"';
		content +='pluginspage="http://microsoft.com/windows/mediaplayer/en/download/"';
		content +='name="MediaPlayer" showcontrols="1" showpositioncontrols="0"';
		content +='showaudiocontrols="1" showtracker="1" showdisplay="0"';
		content +='showstatusbar="1"';
		content +='autosize="1"';
		content +='showgotobar="0" showcaptioning="0" autostart="1" autorewind="0"';
		content +='animationatstart="0" transparentatstart="0" allowscan="1"';
		content +='enablecontextmenu="1" clicktoplay="0" invokeurls="1"';
		content +='defaultframe="datawindow">';
		content +='</object>';
		document.getElementById(id).innerHTML = content;
	}
	else
	{
		if (/.*\.mov/.test(url)){
			content +='<object CLASSID="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" width="'+width+'" height="'+height+'" CODEBASE="http://www.apple.com/qtactivex/qtplugin.cab"><param name="src" value="'+url+'"><param name="autoplay" value="true"><PARAM name="CONTROLLER" VALUE="true"><embed LOOP="false" AUTOPLAY="true" CONTROLLER="true" src="'+url+'" width="'+width+'" height="'+height+'" autoplay="true" loop="false" controller="true" pluginspage="http://www.apple.com/quicktime/"></embed></object>';
			document.getElementById(id).innerHTML = content;
		}
		else
		{
			if (!/:\/\//.test(url)) return;
			content +='<a href="'+url+'"';  
			content +=' style="display:block;width:'+width+'px;height:'+height+'px"';  
			content +=' id="player"></a>'; 
			document.getElementById(id).innerHTML = content;
			flowplayerInit('player', url);
		}
	}
}

function flowplayerInit(player,url) 
{
  //web = 'http://localhost/meetingsreview/web';
  web = '';
  plugins = { controls: { url: web+'/images/flowplayer.controls-3.1.4.swf'} };
  clip = { autoPlay: true, scaling: 'fit' };
  smil = /.*\.smil/
  rtmp = /^rtmp[t]?:.*/
  if (smil.test(url))
  {
    plugins.smil = { url: web+'/images/flowplayer.smil-3.1.3.swf' };
    plugins.rtmp = { url: web+'/images/flowplayer.rtmp-3.1.3.swf' };
    clip.provider = 'rtmp';
  }
  else if (rtmp.test(url))
  {
    stream = url.substring(url.lastIndexOf('/')+1)
    addr = url.substring(0, url.lastIndexOf('/'))
    clip.url = stream;
    plugins.influxis = { url: web+'/images/flowplayer.rtmp-3.1.3.swf', netConnectionUrl: addr };
    clip.provider = 'influxis';
  }
  else
  {
    clip.url = url;
  }
  
  $f(player, {src: web+"/images/flowplayer.commercial-3.1.3.swf"}, {
    key: '$459b96223c47d3d13e5',
    plugins: plugins,  
    clip: clip, 
    play: { 
        label: null, 
        replayLabel: "click to play again" 
    } 
  });
}