<!--

	var aaragornDownloads = 
	[ 
		'desktop:characters_aragorn', 
		'desktop:rotk_aragorn', 
		'desktop:banner_aragorn', 
		'desktop:dvd_aragorn', 
		'desktop:fellowship_aragorn', 
		'screensaver:character_aragorn',
		'ecard:aragorn_rotk',
		'ecard:arwen_tt',
		'ecard:eowen',
		'poster:aragorn:rotk:LOTRPOSTER12',
		'poster:aragorn:tt',
		'aim:lotr_aim_aragorn',
		"link:/index_cast_vmort.html:Read Viggo Mortenson’s Cast Bio:_top",
		"link:openVideoAragornsDestiny();:Watch Video - Aragorn’s Destiny:_javascript",
		"link:../interviews/viggomortenson/viggomortenson.html:Read Interview - Viggo Mortenson’s crowning achievement:_self"
	];
	
	var aarwenDownloads = 
	[ 
		'desktop:characters_arwen', 
		'desktop:dvd_elves',
		'desktop:rotk_arwen',
		'screensaver:character_arwen',
		'ecard:arwen_rotk',
		'ecard:arwen_tt',
		'poster:arwen:rotk:LOTRPOSTER15',
		'aim:lotr_aim_arwen',
		"link:/film/cast/index.html?ca_ltyle.html:Read Liv Tyler’s Cast Bio:_top"
	];
	
	var afrodoDownloads =
	[ 
		'desktop:characters_frodo', 
		'desktop:banner_frodo',
		'desktop:fellowship_frodo',
		'desktop:gollum_frodo',
		'desktop:rotk_sam',
		'desktop:rotk_frodo',
		'screensaver:character_frodo',
		'ecard:hobbits',
		'ecard:galadriel',
		'ecard:sam_rotk',
		'ecard:frodo_rotk',
		'poster:frodo:rotk:LOTRPOSTER16',
		'poster:sam:rotk:LOTRPOSPAK10',
		'poster:frodo:tt',
		'aim:lotr_aim_frodo',
		"link:/film/cast/index.html?ca_ewood.html:Read Elijah Wood’s Cast Bio:_top"
	];

	var asamDownloads =
	[ 
		'desktop:characters_sam', 
		'desktop:rotk_sam',
		'desktop:fellowship_sam',
		'desktop:rotk_sam',
		'ecard:sam_rotk',
		'ecard:hobbits',
		'poster:sam:rotk',
		'aim:lotr_aim_sam',
		"link:/film/cast/index.html?ca_sasti.html:Read Sean Astin’s Cast Bio:_top",
		"video:openVideoSam:Watch this exclusive video.",
		"gallery:openSamPreview:View images of Sam."
	];

	var amerryDownloads =
	[ 
		'desktop:characters_merry', 
		'desktop:dvd_hobbitfeast',
		'desktop:dvd_hobbits',
		'desktop:fellowship_merry',
		'aim:lotr_aim_merry',
		"link:/film/cast/index.html?ca_dmona.html:Read Dominic Monaghan’s Cast Bio:_top"
	];

	var apippinDownloads =
	[ 
		'desktop:characters_pippin', 
		'desktop:dvd_hobbitfeast',
		'desktop:dvd_hobbits',
		'desktop:ents_pippintreebeard',
		'desktop:fellowship_pippin',
		'aim:lotr_aim_pippin',
		"link:/film/cast/index.html?ca_bboyd.html:Read Billy Boyd’s Cast Bio:_top"
	];

	var abilboDownloads =
	[
		"link:/film/cast/index.html?ca_iholm.html:Read Ian Holms’s Cast Bio:_top"
	];

	var agandalfDownloads =
	[ 
		'desktop:characters_gandalf',
		'desktop:rotk_gandalf',
		'desktop:banner_gandalf',
		'desktop:fellowship_gandalf',
		'screensaver:culture_wizards',
		'ecard:gandalf_rotk',
		'ecard:light',
		'poster:gandalf:rotk:LOTRPOSTER14',
		'poster:gandalf:tt',
		'aim:lotr_aim_gandalf',
		"link:/film/cast/index.html?ca_imcke.html:Read Ian McKellen’s Cast Bio:_top",
		"link:/index_editorials_gandalf.html:Read Interview - Ian McKellen on the rebirth and revitalization of Gandalf:_top"
	];

	var aeowynDownloads =
	[ 
		'desktop:characters_eowyn', 
		'desktop:rohan_eowyn',
		'screensaver:character_eowyn',
		'ecard:eowen',
		'aim:lotr_aim_eowyn',
		"link:/index_cast_otto.html:Read Miranda Otto's Cast Bio:_top",
		"link:/index_editorials_otto_interview.html:Read Interview - Heavy Burdens and Slashing Swords:_top",
		"video:openVideoEowyn:Watch this exclusive video on Eowyn: Shieldmaiden of Rohan.",
		"gallery:openEowynPreview:View images of Eowyn in this exclusive photo gallery."
	];

	var aeomerDownloads =
	[ 
		'desktop:characters_eomer', 
		'desktop:rohan_eomer',
		'screensaver:character_eomer',
		'aim:lotr_aim_eomer',
		"link:/index_cast_karl.html:Read Karl Urban's Cast Bio:_top",
		"link:/index_editorials_karl_interview.html:Read Interview - Encountering Eomer and Discovering New Zealand:_top"
	];

	var akingtheodenDownloads =
	[ 
		'desktop:characters_theoden', 
		'desktop:rohan_theoden',
		'screensaver:character_theoden',
		'aim:lotr_aim_theoden',
		"link:/index_cast_bhill.html:Read Bernard Hill's Cast Bio:_top",
		"link:/index_editorials_bernardhill_interview.html:Read Interview - Resurrection and Redemption in Rohan:_top"		
	];

	var adenethorDownloads =
	[ 
		'desktop:characters_denethor',
		'desktop:dvd_gondor',
		'aim:lotr_aim_denethor',
		"link:/film/cast/index.html?ca_jnobl.html:Read John Noble's Cast Bio:_top",
		"link:/index_explore_minastirith_johnnoble.html:Read Interview - The Depths of Denethor:_top"
	];

	var aboromirDownloads =
	[ 
		'desktop:dvd_gondor',
		'desktop:fellowship_boromir',
		'screensaver:character_boromir',
		'aim:lotr_aim_boromir',
		"link:/film/cast/index.html?ca_sbean.html:Read Sean Bean’s Cast Bio:_top"
	];

	var afaramirDownloads =
	[ 
		'desktop:characters_faramir',
		'aim:lotr_aim_faramir',
		"link:/film/cast/index.html?ca_dwenh.html:Read David Wenham’s Cast Bio:_top",
		"link:/legend/interviews/davidwenham/:Read Interview - Faramir's Fate:_top"		
	];

	var alegolasDownloads =
	[ 
		'desktop:characters_legolas',
		'desktop:dvd_legolas',
		'desktop:fellowship_legolas',
		'desktop:features_legolas',
		'screensaver:character_legolas',
		'ecard:legolas',
		'aim:lotr_aim_legolas',
		"link:/film/cast/index.html?ca_obloo.html:Read Orlando Bloom’s Cast Bio:_top"
	];

	var agaladrielDownloads =
	[ 
		'desktop:dvd_galadriel',
		'screensaver:character_galadriel',
		'ecard:galadriel',
		'aim:lotr_aim_galadriel',
		"link:/film/cast/index.html?ca_cblan.html:Read Cate Blanchett’s Cast Bio:_top"
	];

	var aelrondDownloads =
	[ 
		'ecard:fellowship',
		"link:/film/cast/index.html?ca_hweav.html:Read Hugo Weaving’s Cast Bio:_top"
	];

	var atreebeardDownloads =
	[ 
		'desktop:ents_treebeard',
		'desktop:ents_pippintreebeard',
		'screensaver:culture_ents',
		"link:/film/cast/index.html?ca_jrhys.html:Read John Rhys-Davies’s Cast Bio:_top"

	];

	var agimliDownloads =
	[ 
		'desktop:characters_gimli', 
		'desktop:fellowship_gimli',
		'desktop:dvd_gimli',
		'screensaver:culture_dwarves',
		'aim:lotr_aim_gimli',
		"link:/film/cast/index.html?ca_jrhys.html:Read John Rhys-Davies’s Cast Bio:_top"
	];

	var asarumanDownloads =
	[ 
		'desktop:darkness_saruman',
		'poster:finaltheatrical:tt:LOTRPOSTER10',
		'poster:saruman:tt',
		"link:/film/cast/index.html?ca_clee.html:Read Christopher Lee’s Cast Bio:_top"
	];

	var asauronDownloads =
	[ 
		'screensaver:character_eye'
	];

	var awormtongueDownloads =
	[ 
		'desktop:darkness_wormtongue',
		"link:/index_cast_bdou.html:Read Brad Dourif's Cast Bio:_top"
	];

	var agollumDownloads =
	[ 
		'desktop:rotk_gollum',
		'desktop:gollum_gollum',
		'desktop:gollum_fish',
		'desktop:gollum_frodo',
		'desktop:gollum_sam',
		'screensaver:character_gollum',
		'ecard:gollum_rotk',
		'poster:gollum:rotk:LOTRPOSTER13',
		'aim:lotr_aim_gollum',
		"link:/index_cast_andyserkis.html:Read Andy Serkis' Cast Bio:_top",
		"link:/index_editorials_becomegollum.html:Read Interview - Becoming Gollum:_top"		
	];

	var ashelobDownloads =
	[ 
		'desktop:creatures_shelob',
		'ecard:shelob_rotk'
	];

	var awitchkingDownloads =
	[ 
		'desktop:creatures_witchking1',
		'desktop:creatures_witchking2',
		'ecard:witchking_rotk'
	];

	
	var aCharacters = 
	[
		"0:light:Aragorn:human:A descendant of the lost line of the ancient kings of Men, Aragorn is fated to one day claim the empty throne of Gondor.  Aragorn is a mighty warrior, wielding his blade with great adeptness in defense of Helm’s Deep.  He fights with passion and bravery, but also with wisdom, which earns him the respect and admiration of Théoden, King of the Rohirrim. In The Return of the King, he will face several challenges that will determine the fate of Middle-earth.",
		"0:light:Arwen:elf:The only daughter of Elrond, Lord of Rivendell, Arwen is said to be the most beautiful of all living beings in Middle-earth.  Born to an immortal life as an Elf, Arwen must chose between it or to forsake this everlasting existence for the love of the mortal Aragorn.  In so doing, she dooms herself to die as a Human.",
		"0:light:Bilbo:hobbit:A jovial, but eccentric Hobbit of the Shire, Bilbo is the much loved uncle of Frodo Baggins.  Bilbo enjoyed a long and prosperous life after his earlier adventures with the wizard Gandalf and the Dwarves,in part,due to preserving qualities of the mysterious, magic Ring he had found in his travels.  He surrendered the Ring to Frodo in Fellowship and made his way to Rivendell to end his days among the Elves.",
		"0:light:Boromir:human:The eldest and favored son of Denethor, the current Steward of Gondor, was chosen to represent the race of men in The Fellowship of the Ring. But the Ring's lure was too much for Boromir, who tried to take it from Frodo. He was redeemed when he was killed by Uruk-hai trying to protect Merry and Pippin, showing great courage and heroism.",
		"0:light:Denethor:human:The current Steward of Gondor rules in the stead of the absent King. His sons are Boromir, who died trying to protect Merry and Pippin, and Faramir, the Gondorian ranger who encounters Frodo and Sam at Osgiliath. Denethor grieves the loss of his favored son, Boromir, and refuses to light the beacons to call for aid from Rohan.",
		"0:light:Elrond:elf:A wise Elf Lord, Elrond is the father of Arwen, and founder and master of the Elf-haven Rivendell.  In the Third Age of Middle-earth Elrond is an instrumental leader, rallying the diverse peoples of the lands together to fight the threat of Sauron.  When his daughter Arwen contemplates forsaking her immortality to bind herself instead to the Human Aragorn, Elrond’s heart is torn between honoring the love of his daughter and losing her to a mortal death. He orders the shards of Narsil to be reforged so that the rightful King of Gondor can reclaim his sword.",
		"0:light:Eomer:human:The nephew of King Théoden, Éomer is one of Rohan’s mightiest warriors and a captain among the ranks of their fine horsemen.  After the battle at Helm’s Deep, Eomer and the Rohirrim wait for the call of Gondor.",
		"1:light:Eowyn:human:Beautiful and strong, the Lady Éowyn of Rohan is the niece of King Théoden. Despite her noble blood, Éowyn is not one to shy from combat. Adept with sword and shield, the Lady is quite capable of defending herself. When the men of Rohan leave to do battle in defense of their realm, Éowyn longs to be allowed to take arms and join them, though her gender and office forbid it.",
		"0:light:Faramir:human:The youngest son of Lord Denethor, Steward of Gondor, Faramir is brother to Boromir who perished defending Merry and Pippin.  Unlike his brother, Faramir is not beloved by his father, and has spent many years as a ranger, scouting and defending the wild borderlands of Gondor in order to earn his affection.",
		"0:light:Frodo:hobbit:Frodo is a most unlikely hero.  A Hobbit, small and quiet, but possessing a true and noble spirit, Frodo becomes the bearer of the One Ring when it is left to him by his famous Uncle Bilbo.  The task therefore falls to him to do what no one else can, and destroy the ring by casting it into the fires of Mount Doom.  The burden of this charge will lie heavy on Frodo, pulling at him constantly as he trods the perilous path to Mordor from whence the One Ring came.",
		"0:light:Galadriel:elf:Oldest of all the Elves that remain in Middle-earth, the Lady Galadriel dwells in the forest haven of Lothlórien, surrounded by her Elven followers, and husband Celeborn.  Of all the wise, Galadriel is possessed of the greatest foresight and bestowed upon Frodo several gifts to help him in his quest, including the Phial of Light.  She knows that the time of Elves is coming to an end, and soon she must join her kind leaving the shores of Middle-earth for the Immortal Lands to the west.",
		"0:light:Gandalf:wizard:After the great battle with the Balrog of Moria, Gandalf shed his grey mantle in The Two Towers and took up the title of Gandalf the White.  The power that had lain veiled beneath his old grey visage now shines undiluted in the eyes of the pale wizard. After their triumph at Helm’s Deep, Gandalf continues to be a vital part of the war against evil and will make his way to Minas Tirith for the final battle.",
		"0:light:Gimli:dwarf:A proud and strong-willed people, the Dwarves of Middle-earth were great craftsfolk, skilled in the arts of smithing and metallurgy.  When Frodo is appointed his quest, Gimli the Dwarf represents his people as a member of the Fellowship of the Ring.  Gimli is a mighty warrior, quick to draw his broad axes in battle.  Not given to subtlety, he wears his passions plainly for all to see.  Yet for all his impulsiveness, Gimli is none the less loyal and noble in spirit.  Once committed, his resolve to the success of the quest is unshakable.",
		"0:dark:Gollum:stoor:Tortured and wrought wretched by the lure of the One Ring, Gollum is a withered, piteous creature.  Driven mad and twisted by his loss of the One Ring decades ago, he is compelled to haunt Middle-earth, searching everywhere for the only thing in the world he ever cared for, his “precious”. When the Fellowship is broken, Gollum tries to steal the Ring from Frodo and Sam in The Two Towers, but ends up being their unlikely guide into Mordor. He is leading them into a trap so he can reclaim the One Ring for himself.",
		"1:light:Legolas:elf:A Prince of the Elven Kingdom of Mirkwood, Legolas joined the Fellowship of the Ring as a representative of his people.  Legolas possesses the keen eyesight and sharp ears characteristic of his race",
		"0:light:Merry:hobbit:A Hobbit from the Shire, Merry joins Frodo on his quest to destroy the One Ring as a member of the Fellowship of the Ring.  He and Pippin separate from the Fellowship and find themselves in Fangorn Forest, where they meet Treebeard. With Treebeard and the Ents, they wage war on Isengard and the evil Saruman.",
		"0:light:Pippin:hobbit:A Hobbit from the Shire, Pippin joins Frodo on his quest to destroy the One Ring as a member of the Fellowship of the Ring.  He and Merry separate from the Fellowship and find themselves in Fangorn Forest, where they meet Treebeard. With Treebeard and the Ents, they wage war on Isengard and the evil Saruman.",
		"1:light:Sam:hobbit:The loyal friend and gardener of Frodo Baggins, Samwise Gamgee is a stout hearted Hobbit.  Though simple in outlook, he is dependable and brave.  When Gandalf chooses him to accompany Frodo on his quest, Sam makes a simple promise not to lose his master and friend.  To that task he held true, following Frodo as his unshakable companion even into the desolate, ashen waists of Mordor and almost certain death.",
		"0:dark:Saruman:wizard:Once the wisest and greatest of the Istari, the Wizards of Middle-earth, Saruman fell into darkness when he delved too deep into the study of his enemy's ways. The wizard's pride and love of power overcame his wisdom, and all those to whom he had been known as friend became his enemies. He became the chief adversary of the freedom-loving people of Rohan, and by dark means, bred a vast army of terrible Uruk-hai warriors to conquer their lands and destroy them. His force of 10,000 Uruk-hai were defeated at Helm’s Deep and his fortress of Isengard flooded by the March of the Ents.",
		"0:dark:Sauron:supernatural:Disembodied when the One Ring was cut from his hand at the Battle of the Last Alliance in the Second Age, the Dark Lord Sauron became a shadowy echo of his former self.  Formless and terrifying, he returned to his rebuilt tower of Barad-dûr, and from there began to muster his strength to begin the long search for the only thing that might restore his form and power, the lost One Ring.  Now no more than a terrible will, Sauron appeared as a great Eye, lidless and slitted, wreathed in flame.  Against his piercing gaze none could stand.",
		"0:dark:Shelob:spider:A massive spider whose lair is where Gollum is leading Sam and Frodo toward.",
		"0:light:King Theoden:human:Monarch of the land of Rohan, King Théoden is a courageous leader and soldier.  By way of the slithering machinations of his servant Gríma Wormtongue, the fallen wizard Saruman is able to subvert and poison Théoden’s mind, for a time plunging Rohan into darkness and despair, but through the intervention of Gandalf, Théoden is exorcised of Saruman’s influence.  Restored to health and soundness of spirit, the King banishes Wormtongue from his hall and again leads his people with wisdom and bravery.",
		"0:light:Treebeard:ent:Ancient beyond reckoning, Treebeard the Ent is one of the last of his dwindling kind, the long forgotten tree shepherds of Fangorn Forest who once strode throughout the woods of Middle-earth.  A wise and slow to act people, the Ents are persuaded by Treebeard, after his fateful meeting with Merry and Pippin, to awaken and lend their long slumbering might to the fight against the darkness threatening their world. Treebeard leads the March of the Ents and succeeds in flooding and destroying Isengard’s war machine.",
		"0:dark:Witch King:supernatural:Lord of the Nazgûl, the nine terrifying Ringwraiths, the Witch King of Angmar was the chief lieutenant of Sauron the Dark Lord.  Once a great king of old, the Witch King, like all the Nazgûl, was enslaved to the will of Sauron by his magical Ring of Power.  In the physical realm the Witch King was little more than a spirit wrapped in black cloth, a fearful presence, but when seen by Frodo in the spirit world, the specter's true guise was revealed, a twisted and malicious fiend, still bearing the tall crown of his office.",
		"0:dark:Wormtongue:human:Devious servant of the wizard Saruman, Wormtongue was an advisor and confidant to King Théoden of Rohan.  Wormtongue used his influence on the weakened king to manipulate the Rohirrim people to his true master’s purposes.  Gandalf revived Theoden from his magic induced coma in The Two Towers. Grima was cast out of Rohan and fled to Isengard."
	];

	function getKeyID( sKey )
	{
		var sKeyID;
		
		sKeyID = sKey;
		
		sKeyID = sKeyID .replace( / /g, '' );
		sKeyID = sKeyID .replace( /'/g, '' );
		sKeyID = sKeyID .replace( /\//g, '' );
		
		return sKeyID.toLowerCase();
	}			


	function getCharacterCulture( sCharacter )
	{
		var nIndex;
		var nCount = aCharacters.length;
		
		for( nIndex = 0; nIndex < nCount; nIndex++ )
		{
			var aCharacter = aCharacters[ nIndex ].split( ":" );
			if( aCharacter[ 2 ] == sCharacter || getKeyID( aCharacter[ 2 ] ) == sCharacter )
			{
				return aCharacter[ 3 ];
			}
		}
	}
	
	function getCharacterDescription( sCharacter )
	{
		var nIndex;
		var nCount = aCharacters.length;
		
		for( nIndex = 0; nIndex < nCount; nIndex++ )
		{
			var aCharacter = aCharacters[ nIndex ].split( ":" );
			if( aCharacter[ 2 ] == sCharacter || getKeyID( aCharacter[ 2 ] ) == sCharacter )
			{
				return aCharacter[ 4 ];
			}
		}
	}
	
	function getCharacterAlignment( sCharacter )
	{
		var nIndex;
		var nCount = aCharacters.length;
		
		for( nIndex = 0; nIndex < nCount; nIndex++ )
		{
			var aCharacter = aCharacters[ nIndex ].split( ":" );
			if( aCharacter[ 2 ] == sCharacter || getKeyID( aCharacter[ 2 ] ) == sCharacter )
			{
				return aCharacter[ 1 ];
			}
		}
	}
	

//-->