<!-- Hide script from old browsers

//hey this is easy - just populate this array with

//the pictures you want in this slide show.

var nasaurl = "http://photojournal.jpl.nasa.gov/catalog/PIA03401"; //for full caption

var dolPix = new Array(

	"slides/UNEP_0033028.jpg",

	"slides/UNEP_0014867.jpg",

	"slides/UNEP_0033979.jpg",

	"slides/J.Ledesma_UNEP_StillPicture.jpg",

	"slides/J.Kassanchuk_UNEP_StillPicture.jpg",

	"slides/PIA03401.jpg",
	
	"slides/UNEP_0014969.jpg",
	
	"slides/Philippe_Prigent_UNEP_00364.jpg",
	
	"slides/UNEP_0006923.jpg",
	
	"slides/UNEP_0036747.jpg",
	
	"slides/UNEP_0016616.jpg"
);

/* above is the array that holds our images, it is indexed from 0 to 

   (number of elements - 1) */

var thisPic = 0;  //the counter for the image array

var lastPic = 10;  //the last cell in our array = (number of pictures - 1)

	

var dolCap = new Array(

	" Oceans cover 70 per cent of the Earths surface.\n\n More than 90 per cent of the planet s living biomass is found in the oceans.",



	" Eighty per cent of all pollution in seas and oceans comes from land-based activities.\n\n Death and disease caused by polluted coastal waters costs the global economy US$12.8 billion a year.",

	

	" Plastic waste kills up to 1 million sea birds, 100,000 sea mammals and countless fish each year.\n\n Sea creatures killed by plastic decompose, the plastic does not. Plastic remains in the ecosystem to kill again and again.",

	

	" An estimated 21 million barrels of oil run into the oceans each year from street run-off, effluent from factories, and from ships flushing their tanks.\n\n Over the past decade, an average of 600,000 barrels of oil a year has been accidentally spilled fromships, the equivalent of 12 disasters the size of the sinking of the oil tanker Prestige in 2002.",

	

	" Although coral reefs comprise less than 0.5 per cent of the ocean floor,it is estimated that more than 90 per cent of marine species are directly or indirectly dependent on them.\n\n There are about 4,000 coral reef fish species worldwide, accounting for approximately a quarter of all marine fish species.",
	
	

	" The Great Barrier Reef, measuring 2,000 kilometres in length, is the largest living structure on Earth. It can be seen from the Moon.\n\n Reefs protect human populations along coastlines from wave and storm damage by serving as buffers between oceans and near-shore communities.",

	

	" Nearly 60 per cent of the world s remaining reefs are at significant risk of being lost in the next three decades.\n\n The major causes of coral reef decline are coastal development, sedimentation, destructive fishing practices, pollution, tourism and global warming.",



	" Average sea level has risen between 10 and 25 centimetres in the past 100 years. If all the world s ice melted, the oceans would rise by 66 metres.\n\n Sixty per cent of the Pacific shoreline and 35 per cent of the Atlantic shoreline are receding at a rate of one metre a year.",
	
	
	" Ninety per cent of the world s fishermen and women operate at the small-scale local level, accounting for over half the global fish catch.\n\n Artisanal fishing communities, who harvest half the world s fish catch, are seeing their livelihoods increasingly threatened by illegal, unregulated or subsidized commercial fleets.",
	
	
	" Ninety-five per cent of world fish catch (80 million tons) is from near-shore waters.\n\n More than 3.5 billion people depend on the ocean for their primary source of food. In 20 years, this number could double to 7 billion.",
	
	
	" Destructive fishing practices are killing hundreds of thousands of marine species each year and helping to destroy important undersea habitats.\n\n The World Summit on Sustainable Development (WSSD) Plan of Implementation calls for the elimination of destructive fishing practices and subsidies that contribute to illegal, unreported and unregulated fishing."

	);

	

var do2Cap = new Array(

	"© UNEP / Topham",

	"© UNEP / Topham",

	"© UNEP / Topham",

	"©J.Ledesma / UNEP / StillPictures",

	"©J.Kassanchuk / UNEP / StillPictures",

	"© NASA/GSFC/LaRC/JPL, MISR Team",
	
	"© UNEP / Topham",
	
	"© Philippe Prigent / UNEP",
	
	"© UNEP / Topham",
	
	"© UNEP / Topham",
	
	"© UNEP / Topham"

	);	

var thisCap = 0;  //the counter for the caption array

var lastCap = 10;  //the last cell in our array = (number of captions - 1)



function processPrevious() {

        if (document.images) {

                if (thisPic==0) //if at the very beginning of array

                 {

                    thisPic=lastPic; //goto the last cell in the array

                    thisCap=lastCap; //goto the last cell in the array

                 }

                 else 

                 {

                    thisPic--; //else simply decrement the counter                    

                    thisCap--; //else simply decrement the counter                    

                 }

                  document.myPicture.src=dolPix[thisPic];

                  document.capform.caption.value=dolCap[thisCap];

				  document.capform2.caption2.value=do2Cap[thisCap];

        }

}

function processNext() {

        if (document.images) {

                if (thisPic==lastPic) //if at the very end of the array

                 {

                    thisPic=0; //goto the first cell of the array

                    thisCap=0; //goto the first cell of the array

                 }

                 else 

                 {

                    thisPic++; //else simply increment the counter

                    thisCap++; //else simply increment the counter

                 }

                document.myPicture.src=dolPix[thisPic];

                document.capform.caption.value=dolCap[thisCap];

				document.capform2.caption2.value=do2Cap[thisCap];

        }

}


function openWindow(myurl){
	newWindow = window.open(myurl,"","statusbar,menubar,scrollbar=yes,height=500,width=700");
}
//End hiding script from old browsers -->


