// JavaScript Document
function create(w){
 document.write ('<img name="r_img" width="790" height="170" border="0" />');

		var img_src = new Array();
		var img_alt = new Array();
		
		switch (w){
				
				case "members" :	
					img_src[0]="1642_turtle_christian_laufenberg_en.jpg";
					img_alt[0]="IUCN - working together";
					img_src[1]="1642_turtle_christian_laufenberg_fr.jpg";
					img_alt[1]="IUCN - working together";
					img_src[2]="1642_turtle_christian_laufenberg_es.jpg";
					img_alt[2]="IUCN - working together";					
					img_src[3]="359_butterfly_jim_thorsell_en.jpg";
					img_alt[3]="IUCN - working together";
					img_src[4]="359_butterfly_jim_thorsell_es.jpg";
					img_alt[4]="IUCN - working together";
					img_src[5]="359_butterfly_jim_thorsell_fr.jpg";
					img_alt[5]="IUCN - working together";	
					img_src[6]="08_school_es.jpg";
					img_alt[6]="IUCN - working together";	
					img_src[7]="08_school_fr.jpg";
					img_alt[7]="IUCN - working together";
					img_src[8]="08_school.jpg";
					img_alt[8]="IUCN - working together";	
					img_src[9]="3884_elephants_alicia_wirz_en.jpg";
					img_alt[9]="IUCN - working together";
					img_src[10]="3884_elephants_alicia_wirz_es.jpg";
					img_alt[10]="IUCN - working together";
					img_src[11]="3884_elephants_alicia_wirz_fr.jpg";
					img_alt[11]="IUCN - working together";	
					img_src[12]="814_toucan_jim_thorsell_en.jpg";
					img_alt[12]="IUCN - working together";
					img_src[13]="814_toucan_jim_thorsell_es.jpg";
					img_alt[13]="IUCN - working together";
					img_src[14]="814_toucan_jim_thorsell_fr.jpg";
					img_alt[14]="IUCN - working together";	
					img_src[15]="04_congresspeople.jpg";
					img_alt[15]="IUCN - working together";	
					img_src[16]="04_congresspeople_fr.jpg";
					img_alt[16]="IUCN - working together";	
					img_src[17]="04_congresspeople_es.jpg";
					img_alt[17]="IUCN - working together";	
									
					break;
					
				case "water" :	
					img_src[0]="iucn_tow_cambodia.jpg";
					img_alt[0]="IUCN - Tales of Water - Cambodia";
					img_src[1]="iucn_tow_ecuador.jpg";
					img_alt[1]="IUCN - Tales of Water - Ecuador";
					img_src[2]="iucn_tow_salvador.jpg";
					img_alt[2]="IUCN - Tales of Water - El Salvador";
					img_src[3]="iucn_tow_thailand.jpg";
					img_alt[3]="IUCN - Tales of Water - Thailand";
										
					break;
				case "science" :	
					img_src[0]="Cheetah.jpg";
					img_alt[0]="A cheetah in the grass Kaparota Botswana. Photo: Sue Mainka";
					img_src[1]="Karst_mountains.jpg";
					img_alt[1]="Karst mountains on the Li River in Guilin China. Photo: Sue Mainka";
					img_src[2]="nomad_family.jpg";
					img_alt[2]="A nomad family in Qinghai China. Photo: Sue Mainka";
					img_src[3]="Sally_lightfoot_crab.jpg";
					img_alt[3]="Sally lightfoot crab on Fernandina Island Galapagos Ecuador. Photo: Sue Mainka";
					img_src[4]="Terraced_rice.jpg";
					img_alt[4]="Terraced rice fields in Serbithang Bhutan. Photo: Sue Mainka";
					img_src[5]="Victoria_falls.jpg";
					img_alt[5]="Victoria falls. Photo: Sue Mainka";
										
					break;
		}
			
		var lenght_array = img_src.length;
		var rnd_no = Math.round((lenght_array-1)*Math.random());
		document.r_img.src = "http://cmsdata.iucn.org/custom/images/2009_banners/"+img_src[rnd_no];
		document.r_img.alt = img_alt[rnd_no];
}
