// il numero di items é calcolato in base a quanti elementi contiene l'Array myDida.
// E' sufficente aggiungere un altro elemento all'array myDida (esempio myDida[6]="testo...." )
// ed il numero randomico verrá calcolato in base alla nuova lunghezza dell'array.
// Quando si aggiunge un altro myDida, ricordarsi sempre di aggiungere anche il myTitle
// e la foto relativa nel folder img
//--------------------------------------------------------------------------------------------
var myDida = new Array();
      myDida[0] = "Sustainable utilization of the Iberian pig in Spain – a success story";
      myDida[1] = "Breeding Boran cattle in Kenya";
      myDida[2] = "A llama breeding programme in Ayopaya, Bolivia";
      myDida[3] = "Revival of the Aguh: Its success and challenges";
	  myDida[4] = "Community driven breeding programmes in north Viet Nam";
	  myDida[5] = "A review of traditional cattle production in Tajikistan";
	  myDida[6] = "German local farmers unite: regional pig becomes success";
	  myDida[7] = "Trypanotolerant Somba cattle require conservation";
	  myDida[8] = "Local chickens need coordinated breeding plan";
	  myDida[9] = "Community-managed yak genetic resources and breeding systems in Laya, Bhutan";
	  myDida[10] = "Strategic planning seems to save the Basotho pony in Lesotho";
	  myDida[11] = "Co ducks become part of breeding system in Viet Nam";
	  myDida[12] = "Karakul sheep in Uzbekistan: in phase of transition";
	  myDida[13] = "Andes communities eager to sustain their livestock";
	  myDida[14] = "Herder’s main food source – Bolivian camelids call for intensive conservation";
	  myDida[15] = "Buffaloes in the hills of Nepal";
	  myDida[16] = "Lleyn sheep of Wales – revival in fortunes in tune with modern demands";
	  myDida[17] = "Continuous repackaging of genes – Dorper sheep";
	  myDida[18] = "Strict production standards preserve Feral Sheep and landscape";	  
  	  myDida[19] = "Leader-sheep offer leadership for sheep";	  
	  myDida[20] = "Dutch genebank gets Red Pied cattle back on track";	  
	  myDida[21] = "Conservation for education: the Navajo-Churro sheep in the USA";	  
  	  myDida[22] = "Innovative tinkering helps traditional goat keepers";	  
	  myDida[23] = "The Nelore cattle: its success in South America";	
	  myDida[24] = "Women’s choice for Chiapas sheep wool";	  
	  myDida[25] = "Fluctuating demands in Korea dictate import of new goat breeds";	  
	  myDida[26] = "Management of Mongolian reindeer: an ongoing debate";	  
	  myDida[27] = "Moa Samoa chicken outperform exotics breeds";	  
	  myDida[28] = "Breeding programmes of superior Murrah Buffalo not yet optimal";	  
  	  myDida[29] = "Research restores important role of family poultry in Sri Lanka";	  
  	  myDida[30] = "Hungarian hybrid pigs prove competitive";	  	  
  	  myDida[31] = "National pride drives Hungarian Grey cattle expansion";	  	  	  
  	  myDida[32] = "A reduction of the cattle genetic diversity in the U.S.";	  	  	  
  	  myDida[33] = "Red Maasai sheep: threatened status remains ‘unnoticed’";	  	  	  
  	  myDida[34] = "Breeding programmes of superior Murrah Buffalo not yet optimal";	  	  	  
  	  myDida[35] = "Noma horse re-enters cultural life in Japan";	  	  
  	  myDida[36] = "Camels in Rajasthan";	  	  	  
  	  myDida[37] = "Conservation and development of Red Chittagong cattle for livelihood enhancement in Bangladesh";	  	  	  
  	  myDida[38] = "Revival of the Bentheim Black Pied Pig";	  	  	  
  	  myDida[39] = "Revival of the White-backed cattle";	  	  	  
  	  myDida[40] = "Green-legged Partridge hens of Poland";	  	  	  
  	  myDida[41] = "The Nguni Story";	  	  	  
  	  myDida[42] = "Revival of the Enderby cattle in New Zealand";	  	  	  
  	  myDida[43] = "Chilika buffaloes of India";	  	  	  
 	  myDida[44] = "A community-based breeding programme for the Black Bengal goat helps improve rural livelihoods in Bangladesh";		   	  myDida[45] = "Evaluation des caractères maternels de la chèvre Djallonké en condition d'élevage amélioré";	  	  	  
   	  myDida[46] = "Revival of Sahiwal cattle through animal recording and shows";	  	  	  	  
   	  myDida[47] = "Revival of the Capra Grigia";	  	  	  	  	  
   	  myDida[48] = "A long way to come back: the Pfau/Peacock goat";	  	  	  	  	  	  
   	  myDida[49] = "Conservation and development of Vorwerkhuhn chicken in Germany";
	  myDida[50] = "Kari sheep – indispensable breed contributing rural livelihoods";
// aggiungere qui altre Dida ie. myDida[6] = "altro dida";
var myTitle = new Array();
      myTitle[0] = "Photo: Vincente Rodríguez Estévez";
      myTitle[1] = "Photo: Hans Hinrich Sambraus";
      myTitle[2] = "Photo: Kim-Anh Tempelman";
      myTitle[3] = "Photo: Kenji Adaniya";
	  myTitle[4] = "Photo: Ute Lemke";
	  myTitle[5] = "Photo: Dadajon Ergashev";
	  myTitle[6] = "Photo: R. Bauer";
	  myTitle[7] = "Photo: Bonfoh Bèdibètè";
	  myTitle[8] = "Photo: B. Bouahom";
	  myTitle[9] = "Photo: Pema Gyamtsho";
	  myTitle[10] = "Photo: Ricardo Cardellino";
	  myTitle[11] = "Photo: Nguyen Thi Minh";
	  myTitle[12] = "Photo: Yusup Ibragimov";
	  myTitle[13] = "Photo: Kim-Anh Tempelman";
	  myTitle[14] = "Photo: Kim-Anh Tempelman";
	  myTitle[15] = "Photo: Pradeep Tulachan";
	  myTitle[16] = "Photo: David Cragg";
	  myTitle[17] = "Photo: Beate Scherf";
	  myTitle[18] = "Photo: Erling Fimland";	  
	  myTitle[19] = "Photo: Olafur R. Dyrmundsson";	  
	  myTitle[20] = "Photo: HFC";	  
	  myTitle[21] = "Photo: Donald E. Bixby";	  	  
	  myTitle[22] = "Photo: Kim-Anh Tempelman";	  	  
	  myTitle[23] = "Photo: Beate Scherf";	  	  
	  myTitle[24] = "Photo: NA";	  	  
	  myTitle[25] = "Photo: NA";	  	  
	  myTitle[26] = "Photo: Dmitriez, N.G. & Ernst, L.K.";	  	  
	  myTitle[27] = "Photo: NA";	  	  
	  myTitle[28] = "Photo: Devinder Sadana";	  	  
	  myTitle[29] = "Photo: D V S de S Gamage";	  
  	  myTitle[30] = "Photo: Tamás Szobolevszki";	  	  
  	  myTitle[31] = "Photo: Hans Hinrich Sambraus";	  	  	  
  	  myTitle[32] = "Photo: Rebecca K. Splan";	  	  	  
  	  myTitle[33] = "Photo: Hans Hinrich Sambraus";	  	  	  
  	  myTitle[34] = "Photo: Devinder Sadana";	  	  	  
  	  myTitle[35] = "Photo: Katsuyuki Osawa";	  	  
  	  myTitle[36] = "Photo: Hanwant Singh Rathore";	  	  	  
  	  myTitle[37] = "Photo: A.K. Fazlul Haque Bhuiyan";	  	  	  
  	  myTitle[38] = "Photo: Helge Thoelen";	  	  	  
  	  myTitle[39] = "Photo: Anna Majewska";	  	  	  
  	  myTitle[40] = "Photo: Jolanta Calik";	  	  	  
  	  myTitle[41] = "Photo: Michiel M Scholtz";	  	  	  
  	  myTitle[42] = "Photo: Michael Trotter, Rare Breeds Conservation Society of New Zealand";	  	  	  
  	  myTitle[43] = "Photo: D.K. Sadana";	 
  	  myTitle[44] = "Photo: A.K. Fazlul Haque Bhuiyan";	 	
	  myTitle[45] = "Photo: Bonfoh Bèdibètè";		
	  myTitle[46] = "Photo: M. Sajjad Khan";			  
	  myTitle[47] = "Photo: Philippe Ammann";			  	  
	  myTitle[48] = "Photo: Catherine Marguerat";			  	  	  
	  myTitle[49] = "Photo: Steffen Weigend";
	  myTitle[50] = "Photo: M. Sajjad Khan";
// aggiungere qui altri Ttitle ie. myTitle[6] = "altro title";


//#NON EDITARE IL CODICE QUI SOTTO##############################################################################################################################################
var randomnumber=Math.floor(Math.random()*myDida.length) 							// questo calcola il numero randomico
window.document.getElementById('rotatingImage').src='../../en/genetics/img/Ph'+randomnumber+'.jpg'; 	// questo cambia la foto
window.document.getElementById('rotatingImage').title=myTitle[randomnumber]; 		// questo cambia il testo sul mouse over della foto
var linkToHtml = "'../../en/genetics/documents/story/story"+randomnumber+".html'" 							// questo cambia il link su [...] foto
window.document.getElementById('imageNote').innerHTML=myDida[randomnumber]+' <a href="javascript:openstory('+linkToHtml+')">[...]</a>';	 // questo cambia il testo sotto la foto
//##############################################################################################################################################################################
