// JavaScript Document

<!--

  var STORIES = new Array;
  
// 
// for each image you'd like to display:
// 1. image name and path (referred to as storyImage below)
// 2. a title if you like one (referred to as storyTitle below)
// 3. the text you'd like to display -- you need to put a \ in front of any single or double quotes like this -->  Tomorrow\'s (referred to as storyText below)
// 4. a link if you'd like one (referred to as storyLink below)
// 

  STORIES = [
   ['slideshow/images/0_CateuraDump.jpg', 'Life at the City Dump', 'On the outskirts of the capital city, Asunci&oacute;n, is a sight common in many poor Latin American countries: an open landfill where trucks unload garbage right next to people who are picking through the trash. There\'s no official recycling program in Paraguay, but the city\'s poorest have found a way to eke out a living by trading recyclable materials. These \"gancheros,\" or \"gleaners,\" have built a shantytown around the landfill, where they live in plywood shacks without permits, official sanction or running water. The whole area is called Cateura and, except for the constant scent of trash, has a lively neighborhood culture of its own.', '1', '12'],
   ['slideshow/images/1_Cateura.jpg', 'The slums of Cateura', 'The roughly 5,000 people who survive by scavenging from the landfill are never far from their workplace. These houses in the shantytown of Cateura are right next to the landfill and are built from plywood, cardboard and other materials picked from the city\'s discards. The entire neighborhood is outside the reach of city services -- there\'s no running water or sewage system here. Water is siphoned from nearby sources and runs through plastic tubing that residents have lashed together to form their own piping. ',  '2', '0'],
   ['slideshow/images/2_Gancheros.jpg', 'Gancheros', 'These gleaners are called \"gancheros\" because of the tool they use in their search for recyclables. A \"gancho\" is a stick with two hooked metal claws to rip open plastic garbage bags. The gancheros are searching for glass and plastic bottles, aluminum cans, scrap metal and even bottle caps that they can sell to middlemen, who then sell them to manufacturers for reuse. On a good day, a ganchero can make about 40,000 guaran&iacute;s, or $8, from recycled material. ', '3', '1'],
   ['slideshow/images/3_CateuraGirl.jpg', ' A new music school', 'Until a few years ago, children accompanied their parents into the landfill to work. Now children are no longer allowed inside, so instead they mostly spend their days unsupervised, waiting for their parents to come home. In 2006, Sonidos de la Tierra [Sounds of the Earth] started a music program here in the slums of Cateura. To reach out to the children of this neighborhood, Sonidos is partnering with Procicla, an organization that’s been working with gancheros to establish a recycling co-op and improve working conditions. Now Sonidos is offering classes twice a week inside this brick building to the children of the gancheros.', '4', '2'],
   ['slideshow/images/4_three_violinists.jpg', 'Music lessons', 'When we went to visit the music school in Cateura, we met Jessica Ramos (far right), a quiet, shy girl who had started learning the violin only three weeks earlier. Here, she and her friends are practicing the basics of bowing on brand-new violins.', '5', '3'],
   ['slideshow/images/5_Jessica.jpg', 'Jessica Ramos', 'Jessica Ramos, 10, lives with her mother and three sisters in a one-room shack with a dirt floor, and the violin in her hands is probably her most valuable possession. When Jessica\'s violin teacher, Favio Chavez, urged her to take the violin home so she could practice more, the biggest question for her family was where to put the instrument. \"They didn\'t know where to keep it,\" Chavez said. \"They didn\'t want to leave it on top of the table nor on the wardrobe, which is very small\".',  '6', '4'],
   ['slideshow/images/6_Juan_flute.jpg', 'Flute solo', 'Juan Ayala, 14 the flutist on the right, is from the town of Carapegua but has come to Cateura to visit the new school and help teach a few classes. Here, he\'s showing off for the newer students by playing one of those sparkly, fast flute pieces. Part of the Sonidos approach is to train the advanced students to teach the beginners, and Juan has become a teacher. Juan was also hand-picked by Luis Szarán to travel to Europe and perform in 2006. It was his first trip to Europe, and it also helped him cement his identity as a musician. ',  '7', '5'],
   ['slideshow/images/7_edgar_teacher.jpg', 'The music teacher', 'Edgar Armoa, 21, plays in the youth orchestra of his hometown Carapegua. He\'s also a teacher for Sonidos, and he\'s proud to have a job that uses his skills as a musician. Twice a week, he takes a two-hour bus journey to Asunción to work with the children of Cateura. \"When they first asked me if I wanted to come [to teach], I hesitated, because of the reputation of this place,\" Armoa said. But he was quickly won over by the children he met. \"I saw another reality -- it wasn’t what I had imagined. Instead, I met kids who only need this possibility that we have now.\"',  '8', '6'],
   ['slideshow/images/8_generations.jpg', 'Three Generations', 'Here are three generations of the Ramos family who have lived in Cateura. In the middle is Jessica Ramos, on the left is her grandmother, Maria Graciela Ramos, and on the right is her mother, Maria Victoria Ramos. Jessica\'s grandmother has worked her whole life in the landfill, and Jessica\'s mother started working there when she was only 8 years old. They hope that Jessica will not have to follow in their footsteps.',  '9', '7'],
   ['slideshow/images/9_maria.jpg', 'Maria Victoria Ramos', 'Jessica’s mother tried other jobs, such as peddling food on the streets, but nothing paid better than scavenging for recyclables. A year before we met her, she found a job working with Procicla, where she continues to sort recyclables but in a much-improved environment. Procicla has been setting up recycling bins around the capital as a way to circumvent the onerous task of sorting through landfill garbage to get to the recyclables. Maria Victoria also heard about the Sonidos program through Procicla and signed her daughter Jessica up for lessons. \"My dream is that my daughter will have a good profession -- that she won’t have the life I\'ve had,\" she said.',  '10', '8'],
   ['slideshow/images/10_victoria_tea.jpg', 'Maria Graciela Ramos', 'Maria Graciela is sipping terer&eacute;, an iced tea made from yerba mat&eacute; and other herbs. It has a slightly bitter but minty taste and a stimulant effect. Everywhere we went, we saw Paraguayans carrying a cup of terer&eacute; and a thermos of ice water to keep their cups constantly filled. Terer&eacute; is also a social drink. When friends gather, they often pass the cup around and all take a sip.',  '11', '9'],
   ['slideshow/images/11_serene_films.jpg', 'Shooting inside the landfill', 'Co-producer/camerawoman Serene Fang is filming the gancheros at work. Even in the summer heat, gancheros wear long-sleeved shirts, long pants, hats and gloves to protect them from the dirt and garbage. The gancheros have also formed themselves into self-regulating groups, each with a different-colored jersey (in this photo we see the yellow group). Each group has staked out certain areas within the landfill as its territory.',  '12', '10'],
   ['slideshow/images/12_monica.jpg', 'Interview with Favio Chavez', 'The stench inside the landfill was overwhelming, and we were soon covered in a layer of fine dust. We tried not to think too hard about what was in that dust. Here, reporter Monica Lam is talking to Favio Chavez, who is in charge of outreach and education for Procicla. Chavez has been working to persuade gancheros to leave the landfill and work instead with Procicla, which has been gathering recyclables from around the city and has a separate sorting area just outside the landfill. But many gancheros find the adjustment to a regular job difficult, after all, in the landfill, there are no clocks or bosses, and you can make your own schedule.',  '13', '11'],
   ['slideshow/images/13_river.jpg', 'Arroyo Serreira', 'The Arroyo Serreira runs through the slums of Cateura and, like all creeks, attracts young children to splash in its waters, only these waters are filled with garbage and untreated sewage. It was sad to see so many children growing up in this environment, yet these same children were warm, welcoming and completely willing to share what little they had with us.',  '0', '12']
  ];

  function switchStory(story) {
    document.getElementById("storyImage").src = STORIES[story][0];
    document.getElementById("storyTitle").innerHTML = STORIES[story][1];
    document.getElementById("storyText").innerHTML = STORIES[story][2];
    //document.getElementById("storyQuote").innerHTML = STORIES[story][3];
	document.getElementById("storyLink").innerHTML = "<a href=\"#\" onclick=\"switchStory(" + STORIES[story][3] + "); return false;\"><img src=\"images/next.gif\" border=\"0\" alt=\"Next\"></a>";
	document.getElementById("storyLinkb").innerHTML = "<a href=\"#\" onclick=\"switchStory(" + STORIES[story][4] + "); return false;\"><img src=\"images/back.gif\" border=\"0\" alt=\"Back\"></a>";


    return false;
  }

// -->
