var tvDiv		= 'petatv-video';
var swfWidth	= 335;
var swfHeight	= 255;
var tvShows		= {

'i_am_an_animal':	{
						'swf':		'i_am_an_animal_trailer.swf'
					},
'ingrid_response':	{
						'swf':		'ingrid_newkirk_i_am_an_animal.swf'
					}
					
};

function getPETATV( id )
{
	var html	=	'';
	if ( tvShows[id] )
	{
		html		+=	'<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+ swfWidth +'" height="'+ swfHeight +'" id="'+ tvShows[id].title +'" align="middle">';
		html		+=	'<param name="allowScriptAccess" value="sameDomain" />';
		html		+=	'<param name="allowFullScreen" value="false" />';
		html		+=	'<param name="movie" value="swf/'+ tvShows[id].swf +'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />';
		html		+=	'<embed src="swf/'+ tvShows[id].swf +'" quality="high" bgcolor="#ffffff" width="'+ swfWidth +'" height="'+ swfHeight +'" name="'+ tvShows[id].title +'" align="middle" allowScriptAccess="sameDomain" allowFullScreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		html		+=	'</object>';

	}
	return html;
}

function showPETATV( id )
{
	document.write( getPETATV( id ) );
}

function swapPETATV( id )
{
	$( tvDiv ).innerHTML = getPETATV( id );
}
