var tvDiv		= 'petatv-video';
var swfWidth	= 335;
var swfHeight	= 255;
var tvShows		= {
	
	
'china-rabbit-fur':	{
						'title':	'秘密调查：中国兔子养殖场',
						'desc':		'<p>最新中国兔子养殖场（设计师乔治•阿玛尼Giorgio Armani使用的皮草来源于此）调查影片揭示了皮草养殖场内兔子可怕的生活和痛苦的死亡。</p>',
						'swf':		'http://www.petatv.com/swf/video.swf?v=china_rabbit_fur_farm_investigation-11-08-PAP_high'
					},
'meet-your-meat':	{
						'title':	'了解您吃的肉',
						'desc':		'<p>每年，数十亿动物因人类的肉食需要而被杀。善待动物组织影片《了解您吃的肉》揭露了人类最残忍发明（工厂化养殖场）背后的真相。</p>',
						'swf':		'http://www.petatv.com/swf/video.swf?v=MYM_chinese_sub_re_12.16_high'
					},
'chinese-fur':		{
						'title':	'秘密调查：中国皮草养殖场',
						'desc':		'<p>调查影片揭示了中国皮草养殖场内动物的悲惨命运以及被痛苦折磨致死的惊人一幕，而中国的皮草养殖场并不受任何法律约束。 &copy;SAP/East Internat </p>',
						'swf':		'http://www.petatv.com/swf/video.swf?v=fur_farm_high'
					},
'thai-elephants':	{
						'title':	'泰国象',
						'desc':		'<p>刚出生的小象就被从妈妈身边带走，且因严重虐打而尖叫、流血，这仅仅是为了给旅游观光客表演荒谬的把戏。 </p>',
						'swf':		'http://www.petatv.com/swf/video.swf?v=thai_elephants_high'
					},
'jd-fortune':	{
						'title':	'摇滚明星J.D. Fortune的崭新广告',
						'desc':		'<p>INXS乐队主唱J.D. Fortune为美国善待动物组织拍摄公益广告，号召更多民众加入素食者行列！J.D.希望他的歌迷们能够像他一样关爱动物并且不食用他们。</p>',
						'swf':		'http://www.petatv.com/swf/video.swf?v=jd_fortune_high'
					},
'testing-123':	{
						'title':	'试验……123',
						'desc':		'<p>美国善待动物组织为您揭开真相——试验……一，二，三——带您看清动物实验的残忍，对动物的不公以及试验本身的不准确性。</p>',
						'swf':		'http://www.petatv.com/swf/video.swf?v=testing123_high'
					}
					
};

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="'+ tvShows[id].swf +'" /><param name="quality" value="high" /><param name="bgcolor" value="#ffffff" />';
		html		+=	'<embed src="'+ 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>';
		html		+=	'<div class="video-text">';
		html		+=	'<h3>'+ tvShows[id].title +'</h3>';
		html		+=	tvShows[id].desc;
		html		+=	'</div>';
	}
	return html;
}

function showPETATV( id )
{
	document.write( getPETATV( id ) );
}

function swapPETATV( id )
{
	$( tvDiv ).innerHTML = getPETATV( id );
}
