if ($type == "flv" OR $type == "mp4" OR $type == "m4v" OR $type == "m4a") {
if ($config['flv_watermark']) $watermark = ",showWatermark:'always',watermarkUrl:'{THEME}/dleimages/flv_watermark.png',watermarkLinkUrl:''"; else $watermark = "";
return "<!--dle_video_begin:{$decode_url}--><object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" \"http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0\" width=\"425\" height=\"325\">
<param name=\"movie\" value=\"".$config['http_home_url']."engine/classes/flashplayer/flv_player.swf?config={embedded:true,playList:[{overlayId:'play',url:'{$option[1]}'},{start:0,url:'{$url}?source=1'}],initialScale:'fit',showMenu:false,controlBarGloss:'low',controlBarBackgroundColor:-1,controlsOverVideo:'ease',startingBufferLength:1,showOnLoadBegin:true,loop:false,autoRewind:true,autoBuffering:true,autoPlay:false{$watermark}}\" />
<param name=\"allowFullScreen\" value=\"true\" />
<param name=\"quality\" value=\"high\" />
<param name=\"bgcolor\" value=\"#000000\" />
<param name=\"wmode\" value=\"transparent\" />
<embed src=\"".$config['http_home_url']."engine/classes/flashplayer/flv_player.swf?config={embedded:true,playList:[{overlayId:'play',url:'{$option[1]}'},{start:0,url:'{$url}?source=1'}],initialScale:'fit',showMenu:false,controlBarGloss:'low',controlBarBackgroundColor:-1,controlsOverVideo:'ease',startingBufferLength:1,showOnLoadBegin:true,loop:false,autoRewind:true,autoBuffering:true,autoPlay:false{$watermark}}\" quality=\"high\" bgcolor=\"#000000\" wmode=\"transparent\" allowFullScreen=\"true\" width=\"425\" height=\"325\" align=\"middle\" type=\"application/x-shockwave-flash\" pluginspage=\"http://www.macromedia.com/go/getflashplayer\" />
</object><!--dle_video_end-->";
}