
var personajes = Array();

personajes['BugsBunny']='<h5><img src="http://english.parquewarner.com/img/multimedia/img-h5-titlep0.gif" alt="" /><p>He is smart.  He is clever.  He is fun.  He is naughty but with personality, someone with an ironic and chatty sense of humour and very street-smart.  <p>Bugs is funny.  He is a "cool" guy and very sure of himself without being arrogant; he is intelligent and eternal.  <p>He is the leader of the Looney Tunes . the most representative and ever-lasting brand of entertainment, the noisiest and most carefree personalities whose characters have drawn followers for decades.  Bugs was created in 1938.  He has appeared in more than 50 cartoon episodes.  Bugs continues to enjoy universal recognition from all demographic sectors and both sexes.  Bugs is an excellent spokesperson for social problems which so concern youths and adults:  global warming, ecological problems (recycling, deforestation due to fire), social welfare, etc.';
personajes['Taz']='<h5><img src="http://english.parquewarner.com/img/multimedia/img-h5-titlep1.gif" alt="" /></h5><p>An absolutely unstoppable machine, a veritable whirlwind, a hurricane that seems to be all over the place and never still.<p><b>Taz</b> forms part of the Looney Tunes, the quintessence of ever-lasting leisure brands.  Its classic characters, with their exuberant and provoking personalities, have spent decades entertaining their fans.<p><b>Carnivore native of Tazmania.<p>Capable of devouring anything in one mouthful.<p>Feared by everyone when he decides to have a feast.'; 
personajes['ScoobyDoo']='<h5><img src="http://english.parquewarner.com/img/multimedia/img-h5-titlep2.gif" alt="" /></h5><p><strong>Scooby Doo</strong>: The adorable and cowardly Great Dane, scared of his own shadow, and who always prefers a good meal to solving a mystery!<p> His favourite food: Scooby Snacks, pizza, ice-cream and all types of rubbish food, or in other words, the whole of the food chain!'; 
personajes['PabloyPedro']='<h5><img src="http://english.parquewarner.com/img/multimedia/img-h5-titlep3.gif" alt="" /></h5><p>Fred lives in the Stone Age in Bedrock but must face the same problems as the contemporary working class.  After a day.s work at the quarry, Fred and Barney arrive home in their Stone Age vehicle with wheels and stone hood.  Their lives revolve around their homes, their friends and their leisure activities: a world of restaurants and cinemas they can drive their car into, ten-pin bowling and their .Water Buffalo. holiday cabin.   They have a dinosaur pup and a sabre-tooth tiger as pets, instead of a dog and cat.<p> In 1962 and 1963, Pebbles and Bamm Bamm appeared as the child and adoptive child of the Flintstones and the Rubbles, respectively.';
personajes['Pebbles']='<h5><img src="http://english.parquewarner.com/img/multimedia/img-h5-titlep4.gif" alt="" /></h5><p><strong>Pebbles</strong> is the pride and joy of the Flintstones, a precious little girl who, crawling, touches the hearts of everyone.  She is knee-high to a grasshoppersaurus and prefers either to crawl or to move about on the back of her friend Dino.<p> Beautiful, innocent and charmingly tender, she is the light of Fred\'s life.';
personajes['Dino']='<h5><img src="http://english.parquewarner.com/img/multimedia/img-h5-titlep5.gif" alt="" /></h5><p><strong>Dino</strong> is the Flintstones pet.  He is a snorkasaurus with a fantastic sense of humour and a voracious appetite.  Above all else he likes to eat Fred.s food.  Even though he can.t talk, Dino has no trouble whatsoever in communicating his feelings.  He is intelligent, active, understanding and sensitive.   At the end of the day he likes to say goodnight to his owner, normally with a huge kiss.  He is a loyal companion and looks after Pebbles.'; 
personajes['Yogui']='<h5><img src="http://english.parquewarner.com/img/multimedia/img-h5-titlep6.gif" alt="" /></h5><p>More intelligent than your average bear, <b>Yogi Bear</b> ambles around his precious Jellystone park with his side-kick Boo Boo.';

var CHANGE_PICS = {
	start : function()
	 {
	   var link_holder = document.getElementById('person-enlaces').getElementsByTagName('a');
	   
	   for(var lk=0; lk<link_holder.length; ++lk)
	    {
		 link_holder[lk].onclick = function()
		  {
		    CHANGE_PICS.changeContents(this.title)
			return false;
		  }
		}
		
		 	   
	   return false;
	 },
	 
	changeContents : function(idcontent)
	 {
	 
	 var una_foto = Array('a0', 'a1', 'r0', 'r1', 'r2', 'r4', 'r5', 'r8', 'r9');
	 
		document.getElementById('person-content').innerHTML = personajes[idcontent];
	
		document.getElementById('fotoactiva').src = "http://english.parquewarner.com/img/multimedia/"+idcontent+".jpg";
		
	 }
	 
	 
}

	
	
/* LOAD */

function addLoadEvent(fn)
 {
	var old = window.onload;
	if(typeof window.onload != 'function')
		window.onload = fn;
	else
		window.onload = function()
		 {
			old();
			fn();
		 }
 }

addLoadEvent( function() { CHANGE_PICS.start(); } );
