<!--
/**************************************************************
FUNCTION:		update_photos()
VERSION:		1.0
DESCRIPTION:	Updates the calling page with random photos (there are 3 place holders on the page)
AUTHOR:			Warren Searle, Precise Minds Ltd
HISTORY:		23/05/2005		W.Searle	Function created 
**************************************************************/
function update_photos(path_to_root) {
	arr_photo = new Array();
	arr_title = new Array();
	
	
	arr_photo[1] = "uploads/home01_s.jpg";
	arr_title[1] = "Heifetz Encores Brunswick";
	
	arr_photo[2] = "uploads/home02_s.jpg";
	arr_title[2] = "Ogdon Stevenson ASD";
	
	arr_photo[3] = "uploads/home03_s.jpg";
	arr_title[3] = "Rodzinski Russian Overtures ASD";
	
	arr_photo[4] = "uploads/home08_s.jpg";
	arr_title[4] = "Kempe Nights in Vienna ASD";
	
	arr_photo[5] = "uploads/home09_s.jpg";
	arr_title[5] = "Martzy Bach Columbia";
	
	arr_photo[6] = "uploads/home10_s.jpg";
	arr_title[6] = "Klemperer Brandenburgs SAX";
	
	arr_photo[7] = "uploads/home11_s.jpg";
	arr_title[7] = "Katchen Liszt Piano Concertos SXL";
	
	arr_photo[8] = "uploads/home12_s.jpg";
	arr_title[8] = "De Vito Mendelssohn Violin Concerto";
	
	arr_photo[9] = "uploads/home13_s.jpg";
	arr_title[9] = "Cluytens L'Heure Espagnole Columbia";
	
	arr_photo[10] = "uploads/home14_s.jpg";
	arr_title[10] = "Dorati Rimsky Borodin Mercury";
	
	arr_photo[11] = "uploads/home15_s.jpg";
	arr_title[11] = "Karajan Beethoven 9 Columbia";
	
	arr_photo[12] = "uploads/home16_s.jpg";
	arr_title[12] = "De Vito Brahms Double Concerto HMV";
	
	arr_photo[13] = "uploads/home17_s.jpg";
	arr_title[13] = "Kempe VPO on Holiday ASD";
	
	arr_photo[14] = "uploads/home18_s.jpg";
	arr_title[14] = "Ansermet Prokofiev Glinka etc SXL";
	
	arr_photo[15] = "uploads/home19_s.jpg";
	arr_title[15] = "Ansermet Coppelia SXL";
	
	arr_photo[16] = "uploads/home20_s.jpg";
	arr_title[16] = "Fischer-Dieskau Winterreise ALP";
	
	arr_photo[17] = "uploads/home07_s.jpg";
	arr_title[17] = "Nilsson Tristan Highlights Decca";
	
	arr_photo[18] = "uploads/home06_s.jpg";
	arr_title[18] = "Ricci Sarasate Decca";
	
	arr_photo[19] = "uploads/home05_s.jpg";
	arr_title[19] = "Einem/Blacher/Egk DGG";
	
	arr_photo[20] = "uploads/home04_s.jpg";
	arr_title[20] = "Borkh/Tebaldi etc Turandot Decca";
	
	arr_photo[21] = "uploads/record49_s.jpg";
	arr_title[21] = "Horowitz in Recital RCA";
	
	arr_photo[22] = "uploads/record48_s.jpg";
	arr_title[22] = "Anna Moffo Night of Love RCA";
	
	arr_photo[23] = "uploads/record47_s.jpg";
	arr_title[23] = "Missa Solemnis Bohm DGG";
	
	arr_photo[24] = "uploads/record46_s.jpg";
	arr_title[24] = "Parsifal Bayreuth Decca LXT";
	
	arr_photo[25] = "uploads/record45_s.jpg";
	arr_title[25] = "Kings Row Gerhardt Chalfont";
	
	arr_photo[26] = "uploads/record44_s.jpg";
	arr_title[26] = "Vienna Holiday KNA Decca SXL";
	
	arr_photo[27] = "uploads/record43_s.jpg";
	arr_title[27] = "Beethoven Violin Sonatas Rostal Decca";
	
	arr_photo[28] = "uploads/record42_s.jpg";
	arr_title[28] = "Wagner Singers German EMI";
	
	arr_photo[29] = "uploads/record41_s.jpg";
	arr_title[29] = "Cav HMV Angel";
	
	arr_photo[30] = "uploads/record40_s.jpg";
	arr_title[30] = "Magic Bow Rabin Capitol";
	
	arr_photo[31] = "uploads/record39_s.jpg";
	arr_title[31] = "Well Tempered Clavier Tureck Am Decca";
	
	arr_photo[32] = "uploads/record38_s.jpg";
	arr_title[32] = "Steber at Continental Baths RCA";
	
	arr_photo[33] = "uploads/record37_s.jpg";
	arr_title[33] = "Flying Dutchman D F-D HMV";
	
	arr_photo[34] = "uploads/record36_s.jpg";
	arr_title[34] = "Vivaldi Concertos Am Decca";
	
	arr_photo[35] = "uploads/record35_s.jpg";
	arr_title[35] = "R Strauss Kna Decca LXT";
	
	arr_photo[36] = "uploads/record34_s.jpg";
	arr_title[36] = "Tchaikovsky 4 Kubelik ASD";
	
	arr_photo[37] = "uploads/record33_s.jpg";
	arr_title[37] = "Hansel and Gretel Streich DGG";
	
	arr_photo[38] = "uploads/record32_s.jpg";
	arr_title[38] = "Rosenkavalier Columbia SAX";
	
	arr_photo[39] = "uploads/record31_s.jpg";
	arr_title[39] = "Bartok Rorem Decca LXT";
	
	arr_photo[40] = "uploads/record30_s.jpg";
	arr_title[40] = "Schumann Cello Du Pre ASD";
	
	arr_photo[41] = "uploads/record29_s.jpg";
	arr_title[41] = "Magic Flute Decca LXT";
	
	arr_photo[42] = "uploads/record28_s.jpg";
	arr_title[42] = "Beethoven Glenn Gould Am Columbia";
	
	arr_photo[43] = "uploads/record27_s.jpg";
	arr_title[43] = "Rita Streich DGG";
	
	arr_photo[44] = "uploads/record26_s.jpg";
	arr_title[44] = "Walkure Act 3 Decca SXL";
	
	arr_photo[45] = "uploads/record25_s.jpg";
	arr_title[45] = "Don Giovanni Decca LXT";
	
	arr_photo[46] = "uploads/record24_s.jpg";
	arr_title[46] = "Chopin Arrau Brunswick";
	
	arr_photo[47] = "uploads/record23_s.jpg";
	arr_title[47] = "Stravinsky Philips HiFi Stereo";
	
	arr_photo[48] = "uploads/record22_s.jpg";
	arr_title[48] = "Faure Long Decca ";
	
	arr_photo[49] = "uploads/record21_s.jpg";
	arr_title[49] = "Casals Prades Am Columbia";
	


	// get random numbers
	var int_index_1 = 1 + Math.round((arr_photo.length-2)*Math.random());
	var int_index_2 = 1 + Math.round((arr_photo.length-2)*Math.random());
	var int_index_3 = 1 + Math.round((arr_photo.length-2)*Math.random());
	var int_safety_limit = 10; 
	var i = 1;
	while( int_index_1 == int_index_2 && i < int_safety_limit) { int_index_2 = 1 + Math.round((arr_photo.length-2)*Math.random()); i++; }
	i=1;
	while( (int_index_1 == int_index_3 || int_index_2 == int_index_3) && i < int_safety_limit) { int_index_3 = 1 + Math.round((arr_photo.length-2)*Math.random()); i++; }
	
	if (document.images) {
		document.images["cover_photo_1"].src = path_to_root + arr_photo[int_index_1];
		document.images["cover_photo_1"].alt = arr_title[int_index_1];
		document.images["cover_photo_2"].src = path_to_root + arr_photo[int_index_2];
		document.images["cover_photo_2"].alt = arr_title[int_index_2];
		document.images["cover_photo_3"].src = path_to_root + arr_photo[int_index_3];
		document.images["cover_photo_3"].alt = arr_title[int_index_3];
	}
	return true;
}
//-->