if (document.images){
   pic1 = new Image(487,256)
   pic1.src = "/files/floodplain/front-quicknav-events.jpg";

   pic2 = new Image(487,256)
   pic2.src = "/files/floodplain/front-quicknav-invertebrates.jpg";

   pic3 = new Image(487,256)
   pic3.src = "/files/floodplain/front-quicknav-research.jpg";

   pic4 = new Image(487,256)
   pic4.src = "/files/floodplain/front-quicknav-management.jpg";

   pic5 = new Image(487,256)
   pic5.src = "/files/floodplain/front-quicknav-plant_life.jpg";
}


text1 = "<h3>Events</h3>";
text1 += "<p>We help to run guided walks, workshops and presentations about floodplain meadows. Tell us about your events.</p>";
text1 += "<p><a href='/content/events' id='related-link'>See our up coming events</a></p>";

text2 = "<h3>Invertebrates</h3>";
text2 += "<p>Floodplain meadows are rich in wildflowers and are very important habitats for our pollinating insects such as bees, butterflies, moths, and hoverflies.</p><p><a href='/content/invertebrates'>Watch a hoverfly in action</a></p>";

text3 = "<h3>Research</h3>";
text3 += "<p>We collect data from many meadow sites across the country. This information is used to help us understand how many factors, including climate change, are affecting meadows.</p>";
text3 += "<p><a href='/content/research-zone'>See our research</a></p>";

text4 = "<h3>Meadow management</h3>";
text4 += "<p>The way your site is managed can affect how many plant species are found in your meadow. Be a part of modern science.</p><p><a href='/content/your-site-management'>Your meadow management</a></p>";

text5 = "<h3>Plants</h3>";
text5 += "<p>The flowers and grasses found in meadows can tell you a lot about the site history, management, type and fertility of soil and levels of water on the site.</a></p>";
text5 += "<p><a href='/content/plant-communities'>Find out about plant communities</a></p>";

function changeView(image, text){
   if (document.images){
      newImage = eval(image + ".src");
      document.getElementById("front-quicknav-related-image").src = newImage;
   }

   newText = eval(text);
   document.getElementById("front-quicknav-related-text").innerHTML = newText;
}

