///////////////////////////////////////
// Flash Movie Pop-Up Code
var windowWidth		= 500;
var windowHeight	= 500;

function FlashMovie(name, height, width, code)
{
	this.name = name;
	this.height = height;
	this.width = width;
	this.code = code;
}
function swfMovie(name)
{
	this.name = name;
}
flashMovies = new Array();
flashMovies['hawthorne_heights_kfc']	= new FlashMovie('hawthorne_heights_kfc_low.flv,50,hawthorne_heights_kfc_med.flv,150,hawthorne_heights_kfc_high.flv', 350, 297, 'v1');
flashMovies['silverstein']				= new FlashMovie('silverstein_low.flv,50,silverstein_med.flv,150,silverstein_high.flv', 350, 297, 'v1');
flashMovies['sage_francis']				= new FlashMovie('sage_francis_low.flv,50,sage_francis_med.flv,150,sage_francis_high.flv', 350, 297, 'v1');
flashMovies['propagandhi']				= new FlashMovie('propagandhi_low.flv,50,propagandhi_med.flv,150,propagandhi_high.flv', 350, 297, 'v1');
flashMovies['trentfur']					= new FlashMovie('TrentR_P2r_low.flv,50,TrentR_P2_med.flv,150,TrentR_P2_high.flv', 350, 297, 'v1');
flashMovies['gory']						= new FlashMovie('gory_low.flv,50,gory_med.flv,150,gory_high.flv', 350, 297, 'v1');
flashMovies['comeback_kid']				= new FlashMovie('comeback_kid_low.flv,50,comeback_kid_med.flv,150,comeback_kid_high.flv', 350, 297, 'v1');
flashMovies['riseagainst_video']		= new FlashMovie('rise_against_video_low.flv,50,rise_against_video_med.flv,150,rise_against_video_high.flv', 350, 297, 'v1');
flashMovies['meet_your_meat']			= new FlashMovie('mym_low.flv,50,mym_med.flv,150,mym_high.flv', 350, 297, 'v1');


swfMovies = new Array();
swfMovies['hawthorne_heights_kfc']		= new swfMovie('hawthorne_heights_kfc_auto.swf');
swfMovies['silverstein']				= new swfMovie('silverstein_auto.swf');
swfMovies['sage_francis']				= new swfMovie('sage_francis_auto.swf');
swfMovies['propagandhi']				= new swfMovie('propagandhi_auto.swf');
swfMovies['trentfur']					= new swfMovie('trent_fur_stream.swf');
swfMovies['gory'] 						= new swfMovie('gory.swf');
swfMovies['comeback_kid']				= new swfMovie('comeback_kid_auto.swf');
swfMovies['riseagainst_video']			= new swfMovie('riseagainst_video_auto.swf');
swfMovies['meet_your_meat']				= new swfMovie('mym_auto.swf');


specialTexts = new Array();
specialTexts['hawthorne_heights_kfc']	= 'Join Hawthorne Heights in Boycotting KFC at <a target="_blank" href="http://www.peta2.com/index.aspx?c=1425">peta2.com</a>';
specialTexts['silverstein']				= 'Silverstein for  <a target="_blank" href="http://www.peta2.com/outthere/o-silversteinkfc.asp?c=p21546">peta2.com</a>';
specialTexts['sage_francis']			= 'Sage Francis for <a target="_blank" href="http://www.peta2.com/outthere/o-sagefrancis.asp?c=1389">peta2.com</a>';
specialTexts['propagandhi']				= 'Propagandhi for <a target="_blank" href="http://www.peta2.com/outthere/o-propagandhi.asp?c=1431">peta2.com</a>';
specialTexts['trentfur']				= 'Trent Reznor for <a target="_blank" href="http://www.peta2.com/outthere/o-trentreznoripod.asp?c=1398">peta2.com</a>';
specialTexts['gory']					= 'Learn more at <a target="_blank" href="http://www.peta2.com/index.aspx?c=p21504">peta2.com</a>';
specialTexts['comeback_kid']			= 'Comeback Kid for <a target="_blank" href="http://www.peta2.com/outthere/o-comebackkid.asp?c=p21560">peta2.com</a> ';
specialTexts['riseagainst_video']		= '"Ready to Fall" by Rise Against. For more on Rise Against, visit <a target="_blank" href="http://www.peta2.com/outthere/o-riseagainst_video.asp?c=p21645">peta2.com</a> ';
specialTexts['meet_your_meat']			= 'Get free stickers at <a target="_blank" href="http://www.peta2.com/livevegpak.asp?c=p21633">peta2.com</a>';



function popFlash(fId)
{
	if (fId && flashMovies[fId])
	{
		var specialText = (specialTexts[fId]) ? specialTexts[fId] : '';
		var url = 'flashMovie.asp?movieName='+ swfMovies[fId].name +'&movieCode='+ flashMovies[fId].code +'&movieText='+ specialText;
		var fw = window.open(url, '', 'height='+windowHeight+',width='+windowWidth+',resizable=1');
		fw.focus();
	}
}

// End Flash Movie Pop-Up Code
///////////////////////////////////////