<?php
/*** @version $Id: xvideoplaypack.php,v 0.1
* @package Mambot
* @copyright (C) 2007 Marius Calin
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
* 
*/


defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'youtube_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googlevideo_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'ifilm_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'stage6_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'metacafe_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'dailymotion_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'myspace_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'vimeo_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'myvideo_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'clipfish_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'break_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'revver_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'grouper_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'liveleak_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'gametrailers_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'glumbert_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'veoh_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'yahoo_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'tu_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'cellfish_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'aniboom_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'brightcove_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'videonl123_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'sumo_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'vsocial_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'eyespot_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'jumpcut_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'funnyordie_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'collegehumor_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'broadbandsports_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'clipshack_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'sevenload_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'sharkle_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'livevideo_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'vmixcore_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'vmixcorem_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'deezer_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'ourstagevid_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'rockyou_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'seeqpod_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'kyte_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'photobucket_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'slide_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'min5_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'viddler_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'geevee_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'motionbox_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'wixi_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googlede_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googleau_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googlees_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googlefr_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googleit_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googlenl_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googlepl_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'googlecouk_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'bofunk_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'current_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'streetfire_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uume_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'hi5_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'teachertube_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'reuters_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'imeem_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'webshots_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'wandeo_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'slideshare_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'reasontv_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'thedailyshow_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'finetune_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'url_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'adbrite_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'ytas_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'uncut_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'blip_content' );
$_MAMBOTS->registerFunction( 'onPrepareContent', 'watchdance_content' );



function youtube_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[youtube:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[1];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="movie" value="http://www.youtube.com/v/'.$vid.'&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'.$vid.'&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[1];
			$replace = '<object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/'.$vid.'&rel=1"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/'.$vid.'&rel=1" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function googlevideo_content( $published, &$row, &$params, $page=0 )  
{
    $regex = '/\[googlevideo:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[1];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
				$height = "";
			}
			$replace = '<object class="embed" width="'.$width.'" height="'.$height.'" type="application/x-shockwave-flash" data="http://video.google.com/googleplayer.swf?docId='.$vid.'"><param name="movie" value="http://video.google.com/googleplayer.swf?docId='.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[1];
			$replace = '<object class="embed" width="425" height="350" type="application/x-shockwave-flash" data="http://video.google.com/googleplayer.swf?docId='.$vid.'"><param name="movie" value="http://video.google.com/googleplayer.swf?docId='.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}
	
	
	function ifilm_content( $published, &$row, &$params, $page=0 )  
{
    $regex = '/\[ifilm:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
				$height = "";
			}
			$replace = '<p><object type="application/x-shockwave-flash" data="http://www.ifilm.com/efp?flvbaseclip='.$vid.'" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://www.ifilm.com/efp?flvbaseclip='.$vid.'" ></object></p>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<p><object type="application/x-shockwave-flash" data="http://www.ifilm.com/efp?flvbaseclip='.$vid.'" width="448" height="365" wmode="transparent"><param name="movie" value="http://www.ifilm.com/efp?flvbaseclip='.$vid.'" ></object></p>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}

	
	function stage6_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[stage6:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<p><object codebase="http://download.divx.com/webplayer/stage6/windows/AutoDLDivXWebPlayerInstaller.cab"
 width="'.$width.'" height="'.$height.'" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616">
<param name="autoplay" value="false"></param>
<param name="src" value="http://video.stage6.com/'.$vid.'/.divx"></param>

<param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" />
<embed type="video/divx" src="http://video.stage6.com/'.$vid.'/.divx" showpostplaybackad="false" custommode="Stage6" 
autoplay="false" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<p><object codebase="http://download.divx.com/webplayer/stage6/windows/AutoDLDivXWebPlayerInstaller.cab"
 width="640" height="480" classid="clsid:67DABFBF-D0AB-41fa-9C46-CC0F21721616">
<param name="autoplay" value="false"></param>
<param name="src" value="http://video.stage6.com/'.$vid.'/.divx"></param>

<param name="custommode" value="Stage6" /><param name="showpostplaybackad" value="false" />
<embed type="video/divx" src="http://video.stage6.com/'.$vid.'/.divx" showpostplaybackad="false" custommode="Stage6" 
autoplay="false" width="640" height="480"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	
	function metacafe_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[metacafe:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<p><object type="application/x-shockwave-flash" data="http://www.metacafe.com/fplayer/'.$vid.'/.swf" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://www.metacafe.com/fplayer/'.$vid.'/.swf" /></object></p>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://www.metacafe.com/fplayer/'.$vid.'/.swf" width="400" height="345" wmode="transparent"><param name="movie" value="http://www.metacafe.com/fplayer/'.$vid.'/.swf" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

	
	
	
	
	function dailymotion_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[dailymotion:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://www.dailymotion.com/swf/'.$vid.'&related=0" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://www.dailymotion.com/swf/'.$vid.'&related=0" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://www.dailymotion.com/swf/'.$vid.'&related=0" width="425" height="335" wmode="transparent"><param name="movie" value="http://www.dailymotion.com/swf/'.$vid.'&related=0"/></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	
	
	function myspace_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[myspace:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="vmode" value="transparent"></param><embed src="http://lads.myspace.com/videos/vplayer.swf?m='.$vid.'&type=video" type="application/x-shockwave-flash" wmode="transparent" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="385" height="346"><param name="vmode" value="transparent"></param><embed src="http://lads.myspace.com/videos/vplayer.swf?m='.$vid.'&type=video" type="application/x-shockwave-flash" wmode="transparent" width="385" height="346"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	function vimeo_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[vimeo:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://www.vimeo.com/moogaloop.swf?clip_id='.$vid.'" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id='.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://www.vimeo.com/moogaloop.swf?clip_id='.$vid.'" width="400" height="294" wmode="transparent"><param name="movie" value="http://www.vimeo.com/moogaloop.swf?clip_id='.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	
	
		function myvideo_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[myvideo:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/'.$vid.'" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://www.myvideo.de/movie/'.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://www.myvideo.de/movie/'.$vid.'" width="425" height="367" wmode="transparent"><param name="movie" value="http://www.myvideo.de/movie/'.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	
	function clipfish_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[clipfish:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://www.clipfish.de/videoplayer.swf?as=0&videoid='.$vid.'&r=1" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://www.clipfish.de/videoplayer.swf?as=0&videoid='.$vid.'&r=1" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://www.clipfish.de/videoplayer.swf?as=0&videoid='.$vid.'&r=1" width="464" height="380" wmode="transparent"><param name="movie" value="http://www.clipfish.de/videoplayer.swf?as=0&videoid='.$vid.'&r=1" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}


}
	
	
		function break_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[break:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://embed.break.com/'.$vid.'" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://embed.break.com/'.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://embed.break.com/'.$vid.'" width="425" height="350" wmode="transparent"><param name="movie" value="http://embed.break.com/'.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

	
		
	
	function revver_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[revver:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://flash.revver.com/player/1.0/player.swf?mediaId='.$vid.'" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://flash.revver.com/player/1.0/player.swf?mediaId='.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://flash.revver.com/player/1.0/player.swf?mediaId='.$vid.'" width="480" height="392" wmode="transparent"><param name="movie" value="http://flash.revver.com/player/1.0/player.swf?mediaId='.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	
		
	
	function grouper_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[grouper:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://grouper.com/mtg/mtgPlayer.swf?v=1.7ap=0&rf=-1&vfver=8&extid=-1&extsite=-1&id='.$vid.'" width="'.$width.'" height="'.$height.'" name="autoplay" play="no" loop="false" wmode="transparent"><param name="movie" value="http://grouper.com/mtg/mtgPlayer.swf?v=1.7ap=0&rf=-1&vfver=8&extid=-1&extsite=-1&id='.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://grouper.com/mtg/mtgPlayer.swf?v=1.7ap=0&rf=-1&vfver=8&extid=-1&extsite=-1&id='.$vid.'" width="400" height="325" name="autoplay" play="no" loop="false" wmode="transparent"><param name="movie" value="http://grouper.com/mtg/mtgPlayer.swf?v=1.7ap=0&rf=-1&vfver=8&extid=-1&extsite=-1&id='.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	
function liveleak_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[liveleak:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=false&token='.$vid.'"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=false&token='.$vid.'"><param name="wmode" value="transparent"><param name="quality" value="high"></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" width="457" height="361" wmode="transparent" data="http://www.liveleak.com/player.swf?autostart=false&token='.$vid.'"><param name="movie" value="http://www.liveleak.com/player.swf?autostart=false&token='.$vid.'"><param name="wmode" value="transparent"><param name="quality" value="high"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function gametrailers_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[gametrailers:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="gtembed" width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid='.$vid.'"/>
<param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid='.$vid.'" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high"  type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'"></embed> </object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="gtembed" width="480" height="409">
<param name="movie" value="http://www.gametrailers.com/remote_wrap.php?mid='.$vid.'"/>
<param name="quality" value="high" /><embed src="http://www.gametrailers.com/remote_wrap.php?mid='.$vid.'" name="gtembed" align="middle" allowScriptAccess="sameDomain" quality="high"  type="application/x-shockwave-flash" width="480" height="409"></embed> </object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function glumbert_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[glumbert:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="embed" width="'.$width.'" height="'.$height.'">
<param name="movie" value="http://www.glumbert.com/embed/'.$vid.'"/>
<param name="quality" value="high" /><embed src="http://www.glumbert.com/embed/'.$vid.'" name="embed" align="middle" allowScriptAccess="sameDomain" quality="high"  type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'"></embed> </object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="embed" width="480" height="409">
<param name="movie" value="http://www.glumbert.com/embed/'.$vid.'"/>
<param name="quality" value="high" /><embed src="http://www.glumbert.com/embed/'.$vid.'" name="embed" align="middle" allowScriptAccess="sameDomain" quality="high"  type="application/x-shockwave-flash" width="480" height="409"></embed> </object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function veoh_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[veoh:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'" ><param name="vmode" value="transparent"></param><embed src="http://www.veoh.com/videodetails.swf?permalinkId='.$vid.'&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" type="application/x-shockwave-flash" wmode="transparent" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="385" height="312"><param name="vmode" value="transparent"></param><embed src="http://www.veoh.com/videodetails.swf?permalinkId='.$vid.'&id=anonymous&player=videodetailsembedded&videoAutoPlay=0" type="application/x-shockwave-flash" wmode="transparent" width="385" height="312"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}



function yahoo_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[yahoo:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="vmode" value="transparent"></param><embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf?id='.$vid.'" type="application/x-shockwave-flash" wmode="transparent" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="425" height="350"><param name="vmode" value="transparent"></param><embed src="http://us.i1.yimg.com/cosmos.bcst.yahoo.com/player/media/swf/FLVVideoSolo.swf?id='.$vid.'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function tu_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[tu:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="vmode" value="transparent"></param><embed src="http://www.tu.tv/tutvweb.swf?kpt='.$vid.'" type="application/x-shockwave-flash" wmode="transparent" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="425" height="350"><param name="vmode" value="transparent"></param><embed src="http://www.tu.tv/tutvweb.swf?kpt='.$vid.'" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function cellfish_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[cellfish:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="vmode" value="window"></param><embed src="http://cellfish.com/static/swf/player8.swf?Id='.$vid.'" type="application/x-shockwave-flash" wmode="window" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="420" height="315"><param name="vmode" value="window"></param><embed src="http://cellfish.com/static/swf/player8.swf?Id='.$vid.'" type="application/x-shockwave-flash" wmode="window" width="420" height="315"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function aniboom_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[aniboom:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="movie" value="window"></param><embed src="http://api.aniboom.com/embedded.swf?videoar='.$vid.'" type="application/x-shockwave-flash" quality="high" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="448" height="372"><param name="movie" value="window"></param><embed src="http://api.aniboom.com/embedded.swf?videoar='.$vid.'" type="application/x-shockwave-flash" quality="high" width="448" height="372"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function brightcove_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[brightcove:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><embed src="http://www.brightcove.com/playerswf?allowFullScreen=true&initVideoId='.$vid.'&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false" type="application/x-shockwave-flash" quality="high" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
$replace = '<object width="486" height="412"><embed src="http://www.brightcove.com/playerswf?allowFullScreen=true&initVideoId='.$vid.'&servicesURL=http://www.brightcove.com&viewerSecureGatewayURL=https://www.brightcove.com&cdnURL=http://admin.brightcove.com&autoStart=false" type="application/x-shockwave-flash" quality="high" width="486" height="412"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function videonl123_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[videonl123:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><embed src="http://www.123video.nl/123video_share.swf?mediaSrc='.$vid.'" type="application/x-shockwave-flash" quality="high" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="420" height="339"><embed src="http://www.123video.nl/123video_share.swf?mediaSrc='.$vid.'" type="application/x-shockwave-flash" quality="high" width="420" height="339"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	function sumo_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[sumo:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="movie" value="http://www.sumo.tv/embed"></param><param name="wmode" value="transparent"></param><param name="flashVars" value="file='.$vid.'.flv&autostart=true"></param> <embed src="http://www.sumo.tv/embed" type="application/x-shockwave-flash" wmode="transparent"  flashVars="file='.$vid.'.flv&autostart=false"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="400" height="329"><param name="movie" value="http://www.sumo.tv/embed"></param><param name="wmode" value="transparent"></param><param name="flashVars" value="file='.$vid.'.flv&autostart=true"></param> <embed src="http://www.sumo.tv/embed" type="application/x-shockwave-flash" wmode="transparent" width="400" height="329" flashVars="file='.$vid.'.flv&autostart=false"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}	
	
	function vsocial_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[vsocial:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><embed src="http://static.vsocial.com/flash/ups.swf?d='.$vid.'&a=0" type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="400" height="410"><embed src="http://static.vsocial.com/flash/ups.swf?d='.$vid.'&a=0" type="application/x-shockwave-flash" width="400" height="410"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
function eyespot_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[eyespot:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://eyespot.com/flash/medialoader.swf?vurl=http%3A%2F%2Fdownloads.eyespot.com%2Fplay%3Fr%'.$vid.'" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://eyespot.com/flash/medialoader.swf?vurl=http%3A%2F%2Fdownloads.eyespot.com%2Fplay%3Fr%'.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://eyespot.com/flash/medialoader.swf?vurl=http%3A%2F%2Fdownloads.eyespot.com%2Fplay%3Fr%'.$vid.'" width="425" height="350" wmode="transparent"><param name="movie" value="http://eyespot.com/flash/medialoader.swf?vurl=http%3A%2F%2Fdownloads.eyespot.com%2Fplay%3Fr%'.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function jumpcut_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[jumpcut:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://jumpcut.com/media/flash/jump.swf?id='.$vid.'&asset_type=movie&asset_id='.$vid.'&eb=1" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://jumpcut.com/media/flash/jump.swf?id='.$vid.'&asset_type=movie&asset_id='.$vid.'&eb=1" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://jumpcut.com/media/flash/jump.swf?id='.$vid.'&asset_type=movie&asset_id='.$vid.'&eb=1" width="425" height="350" wmode="transparent"><param name="movie" value="http://jumpcut.com/media/flash/jump.swf?id='.$vid.'&asset_type=movie&asset_id='.$vid.'&eb=1" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function funnyordie_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[funnyordie:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="movie" value="http://www2.funnyordie.com/public/flash/fodplayer.swf?" /><param name="flashvars" value="key='.$vid.'" /><param name="allowfullscreen" value="true" /><embed width="'.$width.'" height="'.$height.'" flashvars="key='.$vid.'" allowfullscreen="true" quality="high" src="http://www2.funnyordie.com/public/flash/fodplayer.swf?" type="application/x-shockwave-flash"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="464" height="388"><param name="movie" value="http://www2.funnyordie.com/public/flash/fodplayer.swf?" /><param name="flashvars" value="key'.$vid.'" /><param name="allowfullscreen" value="true" /><embed width="464" height="388" flashvars="key='.$vid.'" allowfullscreen="true" quality="high" src="http://www2.funnyordie.com/public/flash/fodplayer.swf?" type="application/x-shockwave-flash"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function collegehumor_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[collegehumor:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id='.$vid.'&fullscreen=1" width="'.$width.'" height="'.$height.'" ><param name="allowfullscreen" value="true" /><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id='.$vid.'&fullscreen=1" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id='.$vid.'&fullscreen=1" width="640" height="360" ><param name="allowfullscreen" value="true" /><param name="movie" quality="best" value="http://www.collegehumor.com/moogaloop/moogaloop.swf?clip_id='.$vid.'&fullscreen=1" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function broadbandsports_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[broadbandsports:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="movie" value="http://broadbandsports.com/flv/bbs-xplayer.swf?n='.$vid.'"></param><param name="flashvars" value="nid=.'.$vid.'"></param><param name="allowscriptaccess" value="always"></param><param name="allowfullscreen" value="true"></param><embed src="http://broadbandsports.com/flv/bbs-xplayer.swf?n='.$vid.'" width="'.$width.'" height="'.$height.'" allowfullscreen="true" allowscriptaccess="always" flashvars="nid=.'.$vid.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="425" height="350"><param name="movie" value="http://broadbandsports.com/flv/bbs-xplayer.swf?n='.$vid.'"></param><param name="flashvars" value="nid=.'.$vid.'"></param><param name="allowscriptaccess" value="always"></param><param name="allowfullscreen" value="true"></param><embed src="http://broadbandsports.com/flv/bbs-xplayer.swf?n='.$vid.'"  allowfullscreen="true" allowscriptaccess="always" flashvars="nid=.'.$vid.'"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function clipshack_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[clipshack:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://www.clipshack.com/player.swf?key='.$vid.'" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://www.clipshack.com/player.swf?key='.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://www.clipshack.com/player.swf?key='.$vid.'" width="400" height="294" wmode="transparent"><param name="movie" value="http://www.clipshack.com/player.swf?key='.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function sevenload_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[sevenload:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<script type="text/javascript" width="'.$width.'" height="'.$height.'" src="http://en.sevenload.com/pl/'.$vid.'"></script>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<script type="text/javascript" width="425" height="350" src="http://en.sevenload.com/pl/'.$vid.'"></script>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function sharkle_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[sharkle:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed src=http://www.sharkle.com/externalPlayer/'.$vid.'/3/ wmode=transparent width="'.$width.'" height="'.$height.'" type=application/x-shockwave-flash></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src=http://www.sharkle.com/externalPlayer/'.$vid.'/3/ wmode=transparent width=340 height=310 type=application/x-shockwave-flash></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function livevideo_content($published, &$row, &$params, $page=0) 

 {

    $regex = '/\[livevideo:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed src="http://www.livevideo.com/flvplayer/embed/'.$vid.'" type="application/x-shockwave-flash" quality="high" WIDTH="'.$width.'" HEIGHT="'.$height.'" wmode="transparent"></embed><br/>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://www.livevideo.com/flvplayer/embed/'.$vid.'" type="application/x-shockwave-flash" quality="high" WIDTH="445" HEIGHT="369" wmode="transparent"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function vmixcore_content($published, &$row, &$params, $page=0) 

 {

    $regex = '/\[vmixcore:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed src="http://media.vmixcore.com/core-flash/single_video_resizeable.swf?token='.$vid.'&amp;auto_play=false" width="'.$width.'" height="'.$height.'" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://media.vmixcore.com/core-flash/single_video_resizeable.swf?token='.$vid.'&amp;auto_play=false" width="415" height="375" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function vmixcorem_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[vmixcorem:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed type="application/x-shockwave-flash" src="http://www.vmix.com/flash/vmix_audio_player_black.swf?auto_play=1&playlist_id='.$vid.'" id="vmixMusicPlayer" name="vmixMusicPlayer" quality="high" allowscriptaccess="always" wmode="transparent" width="'.$width.'" height="'.$height.'"/></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed type="application/x-shockwave-flash" src="http://www.vmix.com/flash/vmix_audio_player_black.swf?auto_play=1&playlist_id='.$vid.'" id="vmixMusicPlayer" name="vmixMusicPlayer" quality="high" allowscriptaccess="always" wmode="transparent" height="280" width="320"/></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function deezer_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[deezer:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
		$replace = '<object width="'.$width.'" height="'.$height.'"><param name="vmode" value="window"></param><embed src="http://www.deezer.com/embedded/widget.swf?path='.$vid.'&lang=en&autoplay=0" type="application/x-shockwave-flash" wmode="window" ></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="420" height="315"><param name="vmode" value="window"></param><embed src="http://www.deezer.com/embedded/widget.swf?path='.$vid.'&lang=en&autoplay=0" type="application/x-shockwave-flash" wmode="window" width="420" height="315"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function ourstagevid_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[ourstagevid:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
		$replace = '<object type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" align="middle" data="http://www.ourstage.com/embed/'.$vid.'.swf"><param name="movie" value="http://www.ourstage.com/embed/'.$vid.'.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" height="350" width="425" align="middle" data="http://www.ourstage.com/embed/'.$vid.'.swf"><param name="movie" value="http://www.ourstage.com/embed/'.$vid.'.swf" /><param name="quality" value="high" /><param name="wmode" value="transparent" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function rockyou_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[rockyou:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
		$replace = '<embed src="http://apps.rockyou.com/rockyou.swf?instanceid='.$vid.'" quality="high" wmode="transparent" width="'.$width.'" height="'.$height.'" flashvars="appWidth='.$width.'&appHeight='.$height.'" name="slideshowpreview" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://apps.rockyou.com/rockyou.swf?instanceid='.$vid.'" quality="high" wmode="transparent" width="426" height="320" flashvars="appWidth=425&appHeight=320" name="slideshowpreview" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"/>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function seeqpod_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[seeqpod:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
		$replace = '<embed src="http://www.seeqpod.com/cache/seeqpodSlimlineEmbed.swf" wmode="transparent" width="'.$width.'" height="'.$height.'" type="application/x-shockwave-flash" flashvars="playlistXMLPath=http://www.seeqpod.com/api/music/getPlaylist?playlist_id='.$vid.'"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://www.seeqpod.com/cache/seeqpodSlimlineEmbed.swf" wmode="transparent" width="300" height="80" type="application/x-shockwave-flash" flashvars="playlistXMLPath=http://www.seeqpod.com/api/music/getPlaylist?playlist_id='.$vid.'"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function kyte_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[kyte:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
		$replace = '<embed width="'.$width.'" height="'.$height.'" allowScriptAccess="always"  type="application/x-shockwave-flash" src="http://www.kyte.tv/flash.swf?appKey=MarbachViewerEmbedded&amp;uri=channels/'.$vid.';" ></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed width="425" height="425" allowScriptAccess="always"  type="application/x-shockwave-flash" src="http://www.kyte.tv/flash.swf?appKey=MarbachViewerEmbedded&amp;uri=channels/'.$vid.';" ></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function photobucket_content( $published, &$row, &$params, $page=0 ) 

 {

    $regex = '/\[photobucket:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed width="'.$width.'" height="'.$height.'" type="application/x-shockwave-flash" wmode="transparent" src="http://i3.photobucket.com/player.swf?file=http://vid3.photobucket.com/albums/'.$vid.'.flv"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed width="448" height="361" type="application/x-shockwave-flash" wmode="transparent" src="http://i3.photobucket.com/player.swf?file=http://vid3.photobucket.com/albums/'.$vid.'.flv"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	


 }


function slide_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[slide:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://widget-ed.slide.com/widgets/slideticker.swf" width="'.$width.'" height="'.$height.'" ><param name="movie" value="http://widget-ed.slide.com/widgets/slideticker.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/> <param name="flashvars" value="cy=ms&il=1&channel='.$vid.'&site=widget-ed.slide.com"/>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://widget-ed.slide.com/widgets/slideticker.swf" height="320" width="426" ><param name="movie" value="http://widget-ed.slide.com/widgets/slideticker.swf" /><param name="quality" value="high" /><param name="scale" value="noscale" /><param name="salign" value="l" /><param name="wmode" value="transparent"/> <param name="flashvars" value="cy=ms&il=1&channel='.$vid.'&site=widget-ed.slide.com"/>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	


 }

function min5_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[5min:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="vmode" value="transparent"></param><embed src="http://www.5min.com/Embeded/'.$vid.'/" type="application/x-shockwave-flash" wmode="transparent" ></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="425" height="350"><param name="vmode" value="transparent"></param><embed src="http://www.5min.com/Embeded/'.$vid.'/" type="application/x-shockwave-flash" wmode="transparent" ></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function viddler_content( $published, &$row, &$params, $page=0 ) 

 {

    $regex = '/\[viddler:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="'.$width.'" height="'.$height.'"><param name="vmode" value="transparent"></param><embed src="http://www.viddler.com/player/'.$vid.'/" type="application/x-shockwave-flash" wmode="transparent" ></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="425" height="350"><param name="vmode" value="transparent"></param><embed src="http://www.viddler.com/player/'.$vid.'/" type="application/x-shockwave-flash" wmode="transparent" width="425" height="350"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function geevee_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[geevee:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://www.geevee.com/geeveeplayer.swf?video_id='.$vid.'" width="'.$width.'" height="'.$height.'"><param name="movie" value="http://www.geevee.com/geeveeplayer.swf?video_id='.$vid.'&embed=on" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://www.geevee.com/geeveeplayer.swf?video_id='.$vid.'" width="480"height="420"><param name="movie" value="http://www.geevee.com/geeveeplayer.swf?video_id='.$vid.'&embed=on" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function motionbox_content( $published, &$row, &$params, $page=0 ) 

 {

    $regex = '/\[motionbox:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed src="http://www.motionbox.com/external/player/id%'.$vid.'" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="'.$width.'" height="'.$height.'"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://www.motionbox.com/external/player/id%'.$vid.'" type="application/x-shockwave-flash" pluginspage="http://www.adobe.com/go/getflashplayer" width="425" height="460"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function wixi_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[wixi:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://beta.wixi.com/wixiplayer.swf?embedplay='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://beta.wixi.com/wixiplayer.swf?embedplay='.$vid.'">  <param name="allowFullScreen" value="true"> </object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://beta.wixi.com/wixiplayer.swf?embedplay='.$vid.'" allowfullscreen="true" width="540" height="430"> <param name="movie" value="http://beta.wixi.com/wixiplayer.swf?embedplay='.$vid.'">  <param name="allowFullScreen" value="true"> </object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function googlede_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[google.de:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.de/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://video.google.de/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"> </object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.com/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="340" height="430"> <param name="movie" value="http://video.google.com/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"> </object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function googleau_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[google.au:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.com.au/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://video.google.com.au/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.com.au/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="440" height="430"> <param name="movie" value="http://video.google.com.au/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function googlees_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[google.es:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.es/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://video.google.es/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.es/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="440" height="430"> <param name="movie" value="http://video.google.es/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}


function googlefr_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[google.fr:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.fr/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://video.google.fr/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.fr/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="440" height="430"> <param name="movie" value="http://video.google.fr/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	}

function googleit_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[google.it:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.it/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://video.google.it/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.it/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="440" height="430"> <param name="movie" value="http://video.google.it/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}


function googlenl_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[google.nl:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.nl/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://video.google.nl/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.nl/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="440" height="430"> <param name="movie" value="http://video.google.nl/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function googlepl_content( $published, &$row, &$params, $page=0 ) 

 {

    $regex = '/\[google.pl:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.pl/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://video.google.pl/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.pl/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="440" height="430"> <param name="movie" value="http://video.google.pl/googleplayer.swf?docId='.$vid.'"> <param name="width" value="440"> <param name="height" value="430"> <param name="allowFullScreen" value="true"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
function googlecouk_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[google.co.uk:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.co.uk/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="'.$width.'" height="'.$height.'"> <param name="movie" value="http://video.google.co.uk/googleplayer.swf?docId='.$vid.'">  <param name="allowFullScreen" value="true"></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://video.google.co.uk/googleplayer.swf?docId='.$vid.'" allowfullscreen="true" width="440" height="430"> <param name="movie" value="http://video.google.co.uk/googleplayer.swf?docId='.$vid.'"> <param name="allowFullScreen" value="true"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
function bofunk_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[bofunk:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed src="http://www.bofunk.com/e/'.$vid.'" quality="high" bgcolor="#000000" width="'.$width.'" height="'.$height.'" name="flvplayer" align="middle" allowFullScreen="true" allowScriptAccess="always" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object id="swfPlayer" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" data="http://www.bofunk.com/e/'.$vid.'" allowfullscreen="true" width="440" height="430"> <param name="movie" value="http://www.bofunk.com/e/'.$vid.'"> <param name="width" value="440"> <param name="height" value="430"> <param name="allowFullScreen" value="true"></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}


}


function current_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[current:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'.$width.'" height="'.$height.'"><param name="movie" value="http://current.com/e/'.$vid.'" /><param name="wmode" value="transparent" /><embed type="application/x-shockwave-flash" src="http://current.com/e/'.$vid.'" width="'.$width.'" height="'.$height.'" wmode="transparent" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="400" height="400"><param name="movie" value="http://current.com/e/'.$vid.'" /><param name="wmode" value="transparent" /><embed type="application/x-shockwave-flash" src="http://current.com/e/'.$vid.'" width="400" height="400" wmode="transparent" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}	

}


function streetfire_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[streetfire:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed src="http://videos.streetfire.net/vidiac.swf" FlashVars="video='.$vid.'" quality="high" bgcolor="#ffffff" width="'.$width.'" height="'.$height.'" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://videos.streetfire.net/vidiac.swf" FlashVars="video='.$vid.'" quality="high" bgcolor="#ffffff" width="428" height="352" name="ePlayer" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}


}

function uume_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[uume:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed src="http://www.uume.com/v/'.$vid.'_UUME" type="application/x-shockwave-flash" quality="high" width="'.$width.'" height="'.$height.'"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://www.uume.com/v/'.$vid.'_UUME" type="application/x-shockwave-flash" quality="high" with="460" height="373"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}
	

}

function hi5_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[hi5:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = ""; 
			}
			$replace = '<script language="javascript" src="http://update.videoegg.com/js/Player.js"></script><script language="javascript">var api=VE_getPlayerAPI("1.1");api.embedPlayer("hi5.321.download.videoegg.com/gid370/cid1275/'.$vid.'", '.$width.', '.$height.', false, "", "FFFFFF",false, "transparent");</script>';
		}
		else
		{
			$vid= explode('=',$matches[0][$x]);
			$vid = $vid[0];
			$replace = '<script language="javascript" src="http://update.videoegg.com/js/Player.js"></script><script language="javascript">var api=VE_getPlayerAPI("1.1");api.embedPlayer("hi5.321.download.videoegg.com/gid370/cid1275/'.$vid.'", 450, 340, false, "", "FFFFFF",false, "transparent");</script>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}

function teachertube_content( $published, &$row, &$params, $page=0 ) 

 {

    $regex = '/\[teachertube:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<embed src="http://www.teachertube.com/skin-p/flvplayer.swf" width="'.$width.'" height="'.$height.'" type="application/x-shockwave-flash" allowfullscreen="true" flashvars="&file=http://www.teachertube.com/flvideo/'.$vid.'.flv&image=http://www.teachertube.com/thumb/'.$vid.'.jpg&location=http://www.teachertube.com/skin-p/flvplayer.swf&logo=http://www.teachertube.com/images/greylogo.swf&frontcolor=0xffffff&backcolor=0x000000&lightcolor=0xFF0000&autostart=false&volume=80&overstretch=fit&link=http://www.teachertube.com/view_video.php?viewkey=290283dcc9adaed9459e&linkfromdisplay=true"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://www.teachertube.com/skin-p/flvplayer.swf" width="425" height="350" type="application/x-shockwave-flash" allowfullscreen="true" flashvars="&file=http://www.teachertube.com/flvideo/'.$vid.'.flv&image=http://www.teachertube.com/thumb/'.$vid.'.jpg&location=http://www.teachertube.com/skin-p/flvplayer.swf&logo=http://www.teachertube.com/images/greylogo.swf&frontcolor=0xffffff&backcolor=0x000000&lightcolor=0xFF0000&autostart=false&volume=80&overstretch=fit&link=http://www.teachertube.com/view_video.php?viewkey=290283dcc9adaed9459e&linkfromdisplay=true"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
function reuters_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[reuters:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://www.reuters.com/resources/flash/includevideo.swf?edition=US&videoId='.$vid.'" width="'.$width.'" height="'.$height.'"><param name="wmode" value="transparent" /><param name="movie" value="http://www.reuters.com/resources/flash/includevideo.swf?edition=US&videoId='.$vid.'" />';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object  type="application/x-shockwave-flash" data="http://www.reuters.com/resources/flash/includevideo.swf?edition=US&videoId='.$vid.'" width="344" height="320"><param name="wmode" value="transparent" /><param name="movie" value="http://www.reuters.com/resources/flash/includevideo.swf?edition=US&videoId='.$vid.'" />';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}


}

function imeem_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[imeem:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
		$replace = '<embed src="http://media.imeem.com/'.$vid.'/aus=false/pv=2/" type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'" allowFullScreen="true"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://media.imeem.com/'.$vid.'/aus=false/pv=2/" type="application/x-shockwave-flash" width="460" height="390" allowFullScreen="true"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	}

function webshots_content($published, &$row, &$params, $page=0) 

 {
    $regex = '/\[webshots:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<embed src="http://p.webshots.com/flash/smallplayer.swf?videoFile=http://videoserve.webshots.com/video/'.$vid.'_v_0.flv&audio=on&displayImagePreview=http://videothumb26.webshots.com/thumb/'.$vid.'still_002_0.jpg&autoPlay=false&shareLink=http://webshots.com/" type="application/x-shockwave-flash" wmode="transparent" width="'.$width.'" height="'.$height.'"  quality="best" allowscriptaccess="always"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://p.webshots.com/flash/smallplayer.swf?videoFile=http://videoserve.webshots.com/video/'.$vid.'_v_0.flv&audio=on&displayImagePreview=http://videothumb26.webshots.com/thumb/'.$vid.'still_002_0.jpg&autoPlay=false&shareLink=http://webshots.com/" type="application/x-shockwave-flash" wmode="transparent" width="400" height="330"  quality="best" allowscriptaccess="always"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

	function blip_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[bliptv:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object type="application/x-shockwave-flash" data="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&file=http://blip.tv/file/get/'.$vid.'.flv%3Fsource%3D3" width="'.$width.'" height="'.$height.'" wmode="transparent"><param name="movie" value="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&file=http://blip.tv/file/get/'.$vid.'.flv%3Fsource%3D3" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" data="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&file=http://blip.tv/file/get/'.$vid.'.flv" width="400" height="294" wmode="transparent"><param name="movie" value="http://blip.tv/scripts/flash/blipplayer.swf?autoStart=false&file=http://blip.tv/file/get/'.$vid.'.flv" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}





function url_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[url:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$img = $parts[1];
			$width = $parts[2];
			if(count($parts) > 3)
			{
				$height = $parts[3];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<embed src="http://www.jeroenwijering.com/embed/mediaplayer.swf" width="'.$width.'" height="'.$height.'" allowfullscreen="true" allowscriptaccess="always" flashvars="file='.$vid.'&image='.$img.'" />';
			}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$img = $parts[1];
			$replace = '<embed src="http://www.jeroenwijering.com/embed/mediaplayer.swf" width="400" height="500" allowfullscreen="true" allowscriptaccess="always" flashvars="file='.$vid.'&image='.$img.'" />';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}

function wandeo_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[wandeo:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<object type="application/x-shockwave-flash" id="vod" allowScriptAccess="never" allowNetworking="internal" width="'.$width.'" height="'.$height.'" data="http://www.wandeo.com/v/'.$vid.'"><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><param name="movie" value="http://www.wandeo.com/v/'.$vid.'" /></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object type="application/x-shockwave-flash" id="vod" allowScriptAccess="never" allowNetworking="internal" height="200" width="200" data="http://www.wandeo.com/v/'.$vid.'"><param name="allowScriptAccess" value="never" /><param name="allowNetworking" value="internal" /><param name="movie" value="http://www.wandeo.com/v/'.$vid.'" /></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}

function slideshare_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[slideshare:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<object style="margin:0px" width="'.$width.'" height="'.$height.'"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc='.$vid.'"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc='.$vid.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="'.$width.'" height="'.$height.'"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object style="margin:0px" width="425" height="355"><param name="movie" value="http://static.slideshare.net/swf/ssplayer2.swf?doc='.$vid.'"/><param name="allowFullScreen" value="true"/><param name="allowScriptAccess" value="always"/><embed src="http://static.slideshare.net/swf/ssplayer2.swf?doc='.$vid.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="355"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}




function reasontv_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[reasontv:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<script type="text/javascript" width="'.$width.'" height="'.$height.'" src="http://www.reason.tv/embed/video.php?id='.$vid.'"></script>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<script type="text/javascript" width="300" height="200" src="http://www.reason.tv/embed/video.php?id='.$vid.'"></script>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}





function thedailyshow_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[thedailyshow:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<embed FlashVars="videoId='.$vid.'" src="http://www.thedailyshow.com/sitewide/video_player/view/default/swf.jhtml" quality="high" bgcolor="#cccccc" width="'.$width.'" height="'.$height.'" name="comedy_central_player" align="middle" allowScriptAccess="always" allownetworking="external" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed FlashVars="videoId='.$vid.'" src="http://www.thedailyshow.com/sitewide/video_player/view/default/swf.jhtml" quality="high" bgcolor="#cccccc" width="332" height="316" name="comedy_central_player" align="middle" allowScriptAccess="always" allownetworking="external" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}




function finetune_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[finetune:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<embed src="http://www.finetune.com/player/FineTuneShell.swf?pinst='.$vid.'" quality="high" flashVars="pinst='.$vid.'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'.$width.'" height="'.$height.'"></embed>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://www.finetune.com/player/FineTuneShell.swf?pinst='.$vid.'" quality="high" flashVars="pinst='.$vid.'" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="215" height="220"></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	}
	
	
function adbrite_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[adbrite:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<embed src="http://vid.adbrite.com/video/abplayer.swf?&vid=1610258&og=1" quality="best" width="'.$width.'" height="'.$height.'" name="abPlayerObj" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashVars="vid='.$vid.'" ></embed>
';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://vid.adbrite.com/video/abplayer.swf?&vid=1610258&og=1" quality="best" width="468" height="400" name="abPlayerObj" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashVars="vid='.$vid.'" ></embed>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	
}
	

	
	
	
	
	
	
	
	function uncut_content( $published, &$row, &$params, $page=0 ) 

 {


    $regex = '/\[uncut:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );
	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			}
			$replace = '<object width="415" height="347"><param name="wmode" value="opaque" /><param name="movie" value="http://uncutvideo.aol.com/v6.334/en-US/uc_videoplayer.swf" /><param name="FlashVars" value="aID='.$vid.'&site=http://uncutvideo.aol.com/"/><embed src="http://uncutvideo.aol.com/v6.334/en-US/uc_videoplayer.swf" wmode="opaque" FlashVars="aID='.$vid.'&site=http://uncutvideo.aol.com/" width="415" height="347" type="application/x-shockwave-flash"></embed></object>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<object width="415" height="347"><param name="wmode" value="opaque" /><param name="movie" value="http://uncutvideo.aol.com/v6.334/en-US/uc_videoplayer.swf" /><param name="FlashVars" value="aID='.$vid.'&site=http://uncutvideo.aol.com/"/><embed src="http://uncutvideo.aol.com/v6.334/en-US/uc_videoplayer.swf" wmode="opaque" FlashVars="aID='.$vid.'&site=http://uncutvideo.aol.com/" width="415" height="347" type="application/x-shockwave-flash"></embed></object>';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	

}
	
	
	
function watchdance_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[watchdance:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[1][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
			$width = $parts[1];
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<embed src="http://www.watchdance.com/flvplayer.swf" width="'.$width.'" height="'.$height.'" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://www.watchdance.com/flvideo/'.$vid.'.flv&allowfullscreen=false&autostart=false&logo=http://www.watchdance.com/images/watermark.png&link=http://www.watchdance.com&image=http://www.watchdance.com/thumb/1_'.$vid.'.jpg" />';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<embed src="http://www.watchdance.com/flvplayer.swf" width="320" height="260" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="file=http://www.watchdance.com/flvideo/'.$vid.'.flv&allowfullscreen=false&autostart=false&logo=http://www.watchdance.com/images/watermark.png&link=http://www.watchdance.com&image=http://www.watchdance.com/thumb/1_'.$vid.'.jpg" />';
		}

		$row->text = str_replace($matches[0][$x], $replace, $row->text);
	}

	}
	
	
	
	
	
	
	
	
	
	function ytas_content($published, &$row, &$params, $page=0) 

 {


    $regex = '/\[ytas:(.*?)]/i';
	preg_match_all( $regex, $row->text, $matches );

	for($x=0; $x<count($matches[0]); $x++)
	{
		$parts = explode(" ", $matches[3][$x]);
		
		if(count($parts) > 1)
		{
			$vid= explode('=',$parts[0]);
			$vid = $vid[0];
			
		
			if(count($parts) > 2)
			{
				$height = $parts[2];
			}
			else
			{
			$height = "";
			
					}
					
					
		$replace = '<div id="_ytplayer_'.$vid.'="></div><script src="http://www.youtube.com/cp/'.$vid.'=" type="text/javascript"></script></div>';
		}
		else
		{
			$vid= explode('=',$matches[1][$x]);
			$vid = $vid[0];
			$replace = '<div id="_ytplayer_'.$vid.'="></div><script src="http://www.youtube.com/cp/'.$vid.'=" type="text/javascript"></script></div>';
		}
		$row->text = str_replace($matches[0][$x], $replace, $row->text);
}}?>