<!--
	
	var apeterjacksonDownloads=
	[
		"1:reflection2:/legend/interviews/peterjackson2:Read more...:Director Peter Jackson plays favorites.",
		"0:reflection1:/legend/interviews/peterjackson:Read more...:Director Peter Jackson reflects on his time in Middle-earth.",
		"0:specialextendededition:/index_editorials_peterjackson_fellowship.html:Read more...:Director Peter Jackson discusses the production process behind The Fellowship of the Ring Special Extended DVD Edition.",
		"0:behindthetwotowers:/index_editorials_peterjackson_dvd.html:Read more...:Peter Jackson discusses the production process behind The Two Towers.",
		"0:fanqanda:/index_filmmakers_int_pjack.html:Read more...:Peter Jackson answers questions from The Lord of the Rings fans.",
		"0:takingontolkien:/index_filmmakers_int_pjack_tolkien.html:Read more...:Peter Jackson discusses how he brought the fantasy to life.",
		"0:theinspiration:/media/audio/li_pj_onbooks.mp3:Listen to the audio...:Peter Jackson talks about his inspiration for making the films in this audio interview."
	];
	
	var abarrieosborneDownloads=
	[
		"0:thelegend:/media/audio/li_bo_onbooks.wma:Listen to the audio...:Producer Barrie Osborne discusses The Lord of the Rings legend. ",
		"1:makingfilm:/media/audio/li_bo_onpeterjackson.wma:Listen to the audio...:Producer Barry Osborne talks about Director Peter Jackson and the making of the film."
	];
		
	var aInterviews = 
	[
		"0:cast:Elijah Wood:Frodo:Elijah Wood reflects on a journey for the ages:legend/interviews/elijahwood",
		"0:cast:Orlando Bloom:Legolas:No matter how high Orlando Bloom's star rises in the future, he will always remember Legolas.:legend/interviews/orlandobloom",
		"0:cast:Miranda Otto:Eowyn:Miranda Otto discusses sword fighting and preparing for The Return of the King.:index_editorials_otto_interview.html",
		"0:cast:John Noble:Denethor:In the eyes of respected Australian actor John Noble, the character of Denethor verges on Shakespearean:index_explore_minastirith_johnnoble.html",
		"1:cast:Sean Astin:Sam:In the hands of an actor like Sean Astin, the character of Samwise Gamgee:legend/interviews/seanastin",
		"0:cast:Viggo Mortenson:Aragorn:With his ruggedly handsome exterior and coolly courageous performance...:legend/interviews/viggomortenson",
		"0:cast:Karl Urban:Eomer:New Zealand native Karl Urban, a veteran of local film and TV productions...:index_editorials_karl_interview.html",
		"0:cast:David Wenham:Faramir:There may be no more complex character in <i>The Lord of the Rings</i>...:legend/interviews/davidwenham",
		"0:cast:Bernard Hill:King Theoden::index_editorials_bernardhill_interview.html",
		"0:cast:Andy Serkis:Gollum::index_editorials_becomegollum.html",
		"0:cast:Ian McKellen:Gandalf::index_editorials_gandalf.html",
		"1:filmmaker:Peter Jackson:Director:Peter Jackson discusses the production process behind the trilogy.",
		"1:filmmaker:Howard Shore:Composer:Of Dwarvish chants, penny whistles, and Annie Lennox:legend/interviews/howardshore",
		"0:filmmaker:Richard Taylor:Director of WETA Workshop::index_filmmakers_int_rtayl.html",
		"0:filmmaker:Philippa Boyens:Writer::index_filmmakers_int_pboye.html",
		"0:filmmaker:Barrie Osborne:Producer",
		"0:filmmaker:Fiona McDonald:Props Maker::index_filmmakers_int_fmcdo.html",
		"0:filmmaker:Nick Williams:Rock & Foam Dept. Supervisor::index_filmmakers_int_nwill.html",
		"0:filmmaker:Richie Cordobes:On-set Physical Effects::index_filmmakers_int_rcord.html",
		"0:filmmaker:Andrew Jack:Dialogue & Language Coach::media/audio/li_aj_onfans.wma"
	];

	function getInterviewURL( sKey, sURL, bTargeted )
	{
		var sTarget;
		
		if( sURL == 'undefined' || typeof( sURL ) == 'undefined' )
			sTarget = "/legend/interviews/detail.html?" + getKeyID( sKey );
		else
			if( bTargeted )
				sTarget = "/"  + sURL + "\" target=\"_top";
			else
				sTarget = "/"  + sURL;
				
		return sTarget;
	}
	
	function getKeyID( sKey )
	{
		var sKeyID;
		
		sKeyID = sKey;
		
		sKeyID = sKeyID .replace( / /g, '' );
		sKeyID = sKeyID .replace( /'/g, '' );
		sKeyID = sKeyID .replace( /\//g, '' );
		
		return sKeyID.toLowerCase();
	}			

	function getInterviewCategory( sInterview )
	{
		var nIndex;
		var nCount = aInterviews.length;
		
		for( nIndex = 0; nIndex < nCount; nIndex++ )
		{
			var aInterview = aInterviews[ nIndex ].split( ":" );
			if( aInterview[ 2 ] == sInterview || getKeyID( aInterview[ 2 ] ) == sInterview )
			{
				return aInterview[ 1 ];
			}
		}
	}
	
	function getInterviewStatedURL( sInterview )
	{
		var nIndex;
		var nCount = aInterviews.length;
		
		for( nIndex = 0; nIndex < nCount; nIndex++ )
		{
			var aInterview = aInterviews[ nIndex ].split( ":" );
			if( aInterview[ 2 ] == sInterview || getKeyID( aInterview[ 2 ] ) == sInterview )
			{
				return aInterview[ 5 ];
			}
		}
	}
	
	function getInterviewDescription( sInterview )
	{
		var nIndex;
		var nCount = aInterviews.length;
		
		for( nIndex = 0; nIndex < nCount; nIndex++ )
		{
			var aInterview = aInterviews[ nIndex ].split( ":" );
			if( aInterview[ 2 ] == sInterview || getKeyID( aInterview[ 2 ] ) == sInterview )
			{
				return aInterview[ 4 ];
			}
		}
	}
	
		function onChangeInterview( oSelect )
		{
			var sInterview 	= oSelect.options[ oSelect.selectedIndex ].value;
			var sStatedURL	= getInterviewStatedURL( sInterview );
			var sURL 		= getInterviewURL( sInterview, sStatedURL, false );	
			
			if( sInterview )
			{
				if( typeof( sStatedURL ) == 'undefined' )
					location.href = sURL;
				else
					parent.location.href = sURL;
			}
		}
					
		function printInterviewOptions()
		{
			var nIndex;
			var nCount = aInterviews.length;
			
			for( nIndex = 0; nIndex < nCount; nIndex++ )
			{
				var aInterview = aInterviews[ nIndex ].split( ":" );
				
				document.writeln( "<option value=\"" + aInterview[ 2 ] + "\">" + aInterview[ 2 ] + "</option>" );
			}			
		}		
//-->