

<!--

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_findObj(n, d) { //v4.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && document.getElementById) x=document.getElementById(n); return x;
}


function playButton(){
if (document.form1.track.selectedIndex <0) 
	{
	alert("Please select a track to listen to");
	}
	else {
		var urlAddress = "listen.shtm?album=" + document.form1.album.options[document.form1.album.selectedIndex].value + "&track=" + document.form1.track.options[document.form1.track.selectedIndex].value
		window.location = urlAddress
	}
}

function stopB(){
if (document.form1.album.selectedIndex < 0){
	var urlAddress = "listen.shtm";
	window.location = urlAddress;
	}
	else {
	var urlAddress = "listen.htm?album=" + document.form1.album.options[document.form1.album.selectedIndex].value;
	window.location = urlAddress;
} 
}

function alertEJ(){	
	if (albumChoice == "blank") 
		{
		document.form1.album[0].selected = "true";
		albumSelect();
		} else {
			for (var i=0; i< document.form1.album.length; i++)
				{
				var selector = String(document.form1.album.options[i].value);
				if (selector == albumChoice)
					{
					document.form1.album[i].selected = "true";
					albumSelect();
					for (var y=0; y < document.form1.track.length; y++) 
						{
						var trackselect = String(document.form1.track.options[y].value);
						if (trackselect == trackChoice)
							{
							document.form1.track[y].selected = "true";
							}
						}		 
					}
				}
			}
}



function picChange(img_name,img_src) 
	{
	document[img_name].src=img_src;
	}


function delineate(str)
	{
	theleft = str.indexOf("album=") + 6;
	theright = str.indexOf("&");
	return(str.substring(theleft, theright));
	}

function delineate2(str)
	{
	point = str.lastIndexOf("=");
	return(str.substring(point+1,str.length));
	}

function removeAllOptions(selectbox)
	{
	var i;
	for(i=selectbox.options.length-1;i>=0;i--)
		{
		selectbox.remove(i);
		}
	}

function addOption(selectbox, value, text )
	{
	var optn = document.createElement("OPTION");
	optn.text = text;
	optn.value = value;
	selectbox.options.add(optn);
	}



function albumSelect(){

removeAllOptions(document.form1.track);

if(document.form1.album.value == 'Ladies'){
addOption(document.form1.track,"LadiesinLavender", "Ladies in Lavender");
addOption(document.form1.track,"Olga", "Olga");
addOption(document.form1.track,"TeachingAndrea", "Teaching Andrea");
addOption(document.form1.track,"FantasyforViolinandOrchestra", "Fantasy for Violin and Orchestra");
addOption(document.form1.track,"OurSecret", "Our Secret");
addOption(document.form1.track,"OntheBeach", "On The Beach");
addOption(document.form1.track,"TheLetter", "The Letter");
addOption(document.form1.track,"ZabawaWeselna", "Zabawa Weselna");
addOption(document.form1.track,"Stirrings", "Stirrings");
addOption(document.form1.track,"Potatoes", "Potatoes");
addOption(document.form1.track,"ABrokenHeart", "A Broken Heart");
addOption(document.form1.track,"TwoSisters", "Two Sisters");
}
if(document.form1.album.value == 'FOL'){
addOption(document.form1.track,"TheEntryToTheSenate", "'The Enry to the Senate' from Julius Caesar");
addOption(document.form1.track,"TheChristeningAndCoronation", "'The Christening and Coronation' from Henry VIII");
addOption(document.form1.track,"TheStatue", "'The Statue' from The Winter's Tale");
addOption(document.form1.track,"AChristmasCarol", "A Christmas Carol");
addOption(document.form1.track,"TheSecretOfSherlockHolmes", "The Secret of Sherlock Holmes");
addOption(document.form1.track,"SighNoMore_MuchAdoAboutNothing", "Sigh No More");
addOption(document.form1.track,"TheComedyOfErrors", "The Comedy of Errors");
addOption(document.form1.track,"LovesLaboursLost", "Love's Labour's Lost");
addOption(document.form1.track,"TroilusAndCressida", "Troilus and Cressida");
addOption(document.form1.track,"ComeSomeMusicCome", "'Come, some music!' from Hamlet");
addOption(document.form1.track,"Overture_MuchAdoAboutNothing", "'Overture' from Much Ado About Nothing");
addOption(document.form1.track,"WillowSong", "'Willow Song' from Othello");
addOption(document.form1.track,"CyranoDeBergerac", "Cyrano de Bergerac");
addOption(document.form1.track,"FestesSongs", "'Feste's Songs' from Twelth Night");
}
if(document.form1.album.value == 'Concerto'){
addOption(document.form1.track,"PianoConcerto_Movt1", "Movement1 - 'The Smile'");
addOption(document.form1.track,"PianoConcerto_Movt2", "Movement2 - 'The Love'");
addOption(document.form1.track,"PianoConcerto_Movt3", "Movement3 - 'The Duty'");
}
if(document.form1.album.value == 'TVThemes'){
addOption(document.form1.track,"HettyWainthroppInvestigates", "Hetty Wainthropp Investigates");
addOption(document.form1.track,"Badger", "Badger");
addOption(document.form1.track,"TheOneGame", "The One Game");
addOption(document.form1.track,"Wycliffe", "Wycliffe");
addOption(document.form1.track,"AWomanOfSubstance", "A Woman of Substance");
addOption(document.form1.track,"SummersLease", "Summer's Lease");
addOption(document.form1.track,"Dangerfield", "Dangerfield");
addOption(document.form1.track,"JustWilliam", "Just William");
addOption(document.form1.track,"EveryWomanKnowsASecret", "Every Woman Knows a Secret");
addOption(document.form1.track,"PerfectScoundrels", "Perfect Scoundrels");
addOption(document.form1.track,"AnnaOfTheFiveTowns", "Anna of the Five Towns");
addOption(document.form1.track,"Campion", "Campion");
addOption(document.form1.track,"Maigret", "Maigret");
addOption(document.form1.track,"VidalInVenice", "Vidal in Venice");
addOption(document.form1.track,"ClassicAdventure", "Classic Adventure");
addOption(document.form1.track,"AllPassionSpent", "All Passion Spent");
addOption(document.form1.track,"Chimera", "Chimera");
addOption(document.form1.track,"Testament", "Testament");
addOption(document.form1.track,"VanityFair", "Vanity Fair");
addOption(document.form1.track,"AnAffairInMind", "An Affair in Mind");
addOption(document.form1.track,"TheLondonEmbassy", "The London Embassy");
addOption(document.form1.track,"Atlantis", "Atlantis");
addOption(document.form1.track,"AHundredAcres", "A Hundred Acres");
addOption(document.form1.track,"GrowingPains", "Growing Pains");
addOption(document.form1.track,"UsGirls", "Us Girls");
addOption(document.form1.track,"TitmussRegained", "Titmuss Regained");
addOption(document.form1.track,"AnIdealHusband", "An Ideal Husband");
}
if(document.form1.album.value == 'Maigret'){
addOption(document.form1.track,"Maigret", "Maigret");
addOption(document.form1.track,"ClassicAdventure", "Classic Adventure");
addOption(document.form1.track,"PerfectScoundrels", "Perfect Scoundrels");
addOption(document.form1.track,"Chimera", "Chimera");
addOption(document.form1.track,"AHundredAcres", "A Hundred Acres");
addOption(document.form1.track,"GrowingPains", "Growing Pains");
addOption(document.form1.track,"ArdenofFaversham", "Arden of Faversham");
addOption(document.form1.track,"UsGirls", "Us Girls");
addOption(document.form1.track,"TitmussRegained", "Titmuss Regained");
}
if(document.form1.album.value == 'Romeo'){
addOption(document.form1.track,"TanTanTarira", "Tan Tan Tarira");
addOption(document.form1.track,"ComeAway", "Come away");
addOption(document.form1.track,"WhatIsOurLife", "What is our life?");
addOption(document.form1.track,"SilentTheForests", "Silent the forests");
addOption(document.form1.track,"HeWhoOffendsAWoman", "He who offends a woman");
addOption(document.form1.track,"Sleepe", "Sleepe");
addOption(document.form1.track,"AVeryFlower", "A very flower");
addOption(document.form1.track,"ComeToTheWindow", "Come to the window");
}

if(document.form1.album.value == 'MerryWives'){
addOption(document.form1.track,"Overture_MerryWIves", "Overture");
addOption(document.form1.track,"MyLoveIsFair(Instr)", "My Love is Fair (instrumental)");
addOption(document.form1.track,"MerrilyAndEVerAmong", "Merrily and Ever Among");
addOption(document.form1.track,"AnnesTheme", "Anne's Theme");
addOption(document.form1.track,"Chases", "Chases");
addOption(document.form1.track,"FentonsTheme", "Fenton's Theme");
addOption(document.form1.track,"MyLoveIsFair", "My Love is Fair");
addOption(document.form1.track,"TheLetter_MerryWives", "The Letter");
addOption(document.form1.track,"DingDongBell", "Ding Dong Bell");
addOption(document.form1.track,"Fishing", "Fishing");
addOption(document.form1.track,"FieOnSinfulFantasy", "Fie on SInful Fantasy");
addOption(document.form1.track,"Greensleeves", "Greensleeves");
addOption(document.form1.track,"Finale", "Finale");

}

if(document.form1.album.value == 'Saylon'){
addOption(document.form1.track,"SaylonDola", "Saylon Dola (from 'The One Game')");
addOption(document.form1.track,"LongLongAgo", "Long Long Ago");
addOption(document.form1.track,"SonaMiaHan", "Sona Mia Han");
addOption(document.form1.track,"AnAffairInMind", "An Affair in Mind");
addOption(document.form1.track,"ShonaTu" , "Shona Tu");
addOption(document.form1.track,"UnayGarm", "Unay Garm");
addOption(document.form1.track,"SeregAnna", "Sereg Anna");
addOption(document.form1.track,"TheWaterIsWide", "The Water is Wide");
addOption(document.form1.track,"WillowSong", "Willow Song");
addOption(document.form1.track,"TuSherrinSo", "Tu Sherrin So");
addOption(document.form1.track,"BellTune", "Bell Tune");
addOption(document.form1.track,"LullaLoel", "Lulla Loel");
addOption(document.form1.track,"TheMeetingOfTheWaters", "The Meeting of the Waters");
addOption(document.form1.track,"SummersLease", "Carmina Valles (from 'Summer's Lease')");
}
if(document.form1.album.value == 'Wind'){
addOption(document.form1.track,"ThamesJourney", "Thames Journey");
addOption(document.form1.track,"EastCoast_ShelterIsland", "East Coast Pictures i.Shelter Island");
addOption(document.form1.track,"EastCoast_TheCatskills", "East Coast Pictures ii.The Catskills");
addOption(document.form1.track,"EastCoast_NewYork", "East Coast Pictures iii.New York");
addOption(document.form1.track,"StephensonsRocket", "Stephenson's Rocket");
addOption(document.form1.track,"GlobalVariations", "Global Variations");
addOption(document.form1.track,"TheWindsOfPower", "The Winds of Power");
addOption(document.form1.track,"Scramble", "Scramble!");
addOption(document.form1.track,"TheTVDetectives", "The TV Detectives");
addOption(document.form1.track,"ToTheStars", "To the Stars!");
}
if(document.form1.album.value == 'Swan'){
addOption(document.form1.track,"Overture_TheSwanDownGloves", "Overture");
addOption(document.form1.track,"WithTheSunArise", "With the Sun Arise");
addOption(document.form1.track,"EverythingsGoingToBeFine", "Everything's Going to be Fine");
addOption(document.form1.track,"Catastrophe", "Catastrophe");
addOption(document.form1.track,"LetsBeFriends", "Let's Be Friends");
addOption(document.form1.track,"MakeYourOwnWorld", "Make Your Own World");
addOption(document.form1.track,"HowsTheWay", "How's The Way");
addOption(document.form1.track,"GoingIntoTown", "Going Into Town");
addOption(document.form1.track,"StuckInAMuddle", "Stuck in a Muddle");
addOption(document.form1.track,"BestFootForward", "Best Foot Forward");
addOption(document.form1.track,"DemewerButDangerous", "Demewer but Dangerous");
addOption(document.form1.track,"Muck", "Muck");
addOption(document.form1.track,"AnyOldRose", "Any Old Rose");
addOption(document.form1.track,"FireDown", "Fire Down");
addOption(document.form1.track,"Finale_TheSwanDownGloves", "Finale");
}
if(document.form1.album.value == 'LuckyDip'){
addOption(document.form1.track,"AChristmasOverture", "A Christmas Overture");
addOption(document.form1.track,"MoncksMarch", "Monck's March");
addOption(document.form1.track,"OldManOfLochnagar", "The Old Man of Lochnagar");
addOption(document.form1.track,"StickWithMeKid", "Stick With Me Kid");
addOption(document.form1.track,"ScreenPlay", "Screen Play");
addOption(document.form1.track,"Achilles", "Achilles");
addOption(document.form1.track,"LoveOrMoney", "Love or Money");
addOption(document.form1.track,"PortraitOfTheUSSR", "Portrait of the USSR");
addOption(document.form1.track,"Deceptions", "Deceptions");
addOption(document.form1.track,"ReunionAtFairborough", "Reunion at Fairborough");
}


var albumCover="../images/CD_"+document.form1.album.value+".jpg";
picChange('AlbumCover',albumCover);

}

//-->

