function loadRolloverFiles(pageID)
{
if (document.images)
	{
/*
	HomeButtOn = new Image;
	CareerButtOn = new Image;
	CompsButtOn = new Image;
	VideosButtOn = new Image;
	RecordingsButtOn = new Image;
	GalleryButtOn = new Image;
	SolosButtOn = new Image;
	
	HomeButtOff = new Image;
	CareerButtOff = new Image;
	CompsButtOff = new Image;
	VideosButtOff = new Image;
	RecordingsButtOff = new Image;
	GalleryButtOff = new Image;
	SolosButtOff = new Image;
		
	HomeButtOn.src = "assets/images/my buttons/homeOn.jpg";
	CareerButtOn.src = "assets/images/my buttons/careerOn1.jpg";
	CompsButtOn.src = "assets/images/my buttons/cableCompsOn1.jpg";
	VideosButtOn.src = "assets/images/my buttons/clipsOn1.jpg";
	RecordingsButtOn.src = "assets/images/my buttons/recordingsOn1.jpg";
	GalleryButtOn.src = "assets/images/my buttons/gallery1On.jpg";
	SolosButtOn.src = "assets/images/my buttons/solosOn.jpg";
	
	HomeButtOff.src = "assets/images/my buttons/homeOff.jpg";
	CareerButtOff.src = "assets/images/my buttons/careerOff1.jpg";
	CompsButtOff.src = "assets/images/my buttons/cableCompsOff1.jpg";
	VideosButtOff.src = "assets/images/my buttons/clipsOff1.jpg";
	RecordingsButtOff.src = "assets/images/my buttons/recordingsOff1.jpg";
	GalleryButtOff.src = "assets/images/my buttons/gallery1Off.jpg";
	SolosButtOff.src = "assets/images/my buttons/solosOff.jpg";
*/	
	switch(pageID)
		{
		case "careerPage":
			tvLinkOff = new Image;
			tvLinkOn = new Image;
			recordsLinkOff = new Image;
			recordsLinkOn = new Image;
			moviesLinkOff = new Image;
			moviesLinkOn = new Image;
			compsLinkOff = new Image;
			compsLinkOn = new Image;
			theatreLinkOff = new Image;
			theatreLinkOn = new Image;
			interLinkOff = new Image;
			interLinkOn = new Image;
			liveLinkOff = new Image;
			liveLinkOn = new Image;
		
			tvLinkOff.src = "assets/images/my buttons/crTvOff.jpg";
			tvLinkOn.src = "assets/images/my buttons/crTvOn.jpg";
			recordsLinkOff.src = "assets/images/my buttons/crRecordingsOff.jpg";
			recordsLinkOn.src = "assets/images/my buttons/crRecordingsOn.jpg";
			moviesLinkOff.src = "assets/images/my buttons/crMoviesOff.jpg";
			moviesLinkOn.src = "assets/images/my buttons/crMoviesOn.jpg";
			compsLinkOff.src = "assets/images/my buttons/crCompsOff.jpg";
			compsLinkOn.src = "assets/images/my buttons/crCompsOn.jpg";
			theatreLinkOff.src = "assets/images/my buttons/crTheatreOff.jpg";
			theatreLinkOn.src = "assets/images/my buttons/crTheatreOn.jpg";
			interLinkOff.src = "assets/images/my buttons/crInternationalOff.jpg";
			interLinkOn.src = "assets/images/my buttons/crInternationalOn.jpg";
			liveLinkOff.src = "assets/images/my buttons/crLiveOff.jpg";
			liveLinkOn.src = "assets/images/my buttons/crLiveOn.jpg";
			break;
		}
	}
}

//***********************************************************************************************


//old innerHTML code

/*

function getText(linkID)
{

thisText = document.getElementById("careerText");
switch (linkID)
	{
	case "tv":
		thisText.innerHTML = "Linda has appeared countless times on all major TV channels in Australia, " +
														"performing on various variety shows hosted by Daryl Somers, Steve Vizard, " +
														"Peter Couchman, Don Lane, Mike Walsh, Ray Martin, Ernie Sigley, Bert Newton, "+
														"ABC\�s Art shows, Don Burrows Collection (a 1 hour special on Linda and her band), Channel 7�s Penthouse Show "+
														"(where she performed 2 songs every 2 weeks) with Mary Hardy & Mike Williamson, "+
														"and many TV interviews.  Her appearances number over 100 shows.";
		thisText.className = "careerTextMauve";
		break;
	case "records":
		thisText.innerHTML = "Linda has recorded 5 CDs, which included several of her own compositions, "+
														"and 3 albums of which were with Move records. Some of Australia�s greatest musicians appear on these tracks. She was also a prominent "+
														"recording studio singer in the mid 70s to 90s therefore spending a great "+
														"deal of time in recording studios during the day and working live at night. ";

		thisText.className = "careerTextGreen1";
		break;
	case "movies":
		thisText.innerHTML = "Linda appeared in the FILM �Gross Misconduct� with America�s famous "+
														"Jimmy Smits of �L.A. LAW� & �NYPD BLUE� fame in 1993.<br><br>She also filmed on "+
														"tour with the Daly Wilson Big Band which screened in Australian movie houses. "+
														"Linda made a film clip with Daryl Somers, filmed in the snow, when they sang "+
														"a duet for his long running TV show.";
		thisText.className = "careerTextBrown";
		break;

	case "comps":
				thisText.innerHTML = "Linda is the composer of more than 20 recorded songs.  Her songs are very "+
																"hard to categorize but are best described as sensuous, exotic, "+
																"and full of adventure."; 
		thisText.className = "careerTextRed";
				
		break;		

	case "theatre":
				thisText.innerHTML = "Linda played a principal role in the musical �THE MAGIC SHOW� in Melbourne "+
																"at the Princess Theatre. �The Magic Show� was a musical based around some "+
																"spectacular illusions.  Linda had to leave her 'regular' TV spot on Channel "+
																"7�s Penthouse Show in order to do this theatre show along with America�s Natalie Mosco."; 
		thisText.className = "careerTextBlue";
				
		break;		
	case "inter":
				thisText.innerHTML = "Linda has worked in England, Germany, Italy, Japan, Vietnam, Indonesia, "+
																"Channel Islands, Australia-wide and all of New Zealand.  <br><br>"+
																"A jazz singer of international standing, Linda was invited to perform a "+
																"week�s engagement in London at the famous Ronnie Scott�s Jazz Club in the mid 90�s. "+
																"<br><br>Her most recent visit to Japan was for a 6 month engagement for The Hilton Hotel.  "+
																"Her engagement in Vietnam brought much publicity when she was caught in the major "+
																"crossfire of war and lost touch with officials."; 
		thisText.className = "careerTextGreen2";
				
		break;		

	case "live":
				thisText.innerHTML = "Linda has performed with many top named bands in the 70�s such as Barrie McAskill�s " +
																"Levi Smith Clefs, Peter Cupples Band, Rotary Connection, and formed her own band " +
																"�Local Heroes�. She has consistently appeared in major arts centres, " +
																"hotels & nightclubs and on cruise ships around the world. <br><br>" +
																"She performed at Ronnie Scott's famous London club for a week�s engagement " +
																"in the mid 1990s. Performed at the backstage party celebrating the opening " + 
																"of Victoria�s State Theatre. Performed at the celebrity wedding of Daryl Somers. " +
																"Appeared at numerous Arts Centre concerts and was the support act for several " +
																"high profile overseas artists and toured Australia & New Zealand with " +
																"�The Daly Wilson Big Band� for several months." +
																"<br><br>She began her career as a guitarist in her first band, �Grown Up Wrong�, "+
																"then switched to being a bass player in R & B bands for 6 years world-wide "+
																"before emerging as a solo singer in Australia and around the world."; 
		thisText.className = "careerTextYellow";
				
		break;		


	}
}
*/

//*************************************************************************************************

//function called from within getText() to clear previous text

function clearSpielText(obj)
{
while(obj.firstChild)
 obj.removeChild(obj.firstChild);
}



//************************************************************************************************
//new DOM code to replace innerHTML

function getText(linkID)
{

var spielText = new Array();
//spielTextBreak1 = document.createElement("p");
//spielTextBreak2 = document.createElement("p");
eDiv = document.createElement("div");
eDiv.setAttribute("id","spielTextContainer");
nline = String.fromCharCode(32,32);
switch (linkID)
	{
	case "tv":
		spielText[0] = "Linda has appeared countless times on all major TV channels in Australia, " +
														"performing on various variety shows hosted by Daryl Somers, Steve Vizard, " +
														"Peter Couchman, Don Lane, Mike Walsh, Ray Martin, Ernie Sigley, Bert Newton, "+
														"ABC�s Art shows, Don Burrows Collection, Channel 7�s Penthouse Show "+
														"(where she performed 2 songs every 2 weeks) with Mary Hardy & Mike Williamson, "+
														"and many TV interviews.  Her appearances number over 100 shows.";
		spielText[1] = "";
		spielText[2] = "";
		eDiv.className = "careerTextMauve";
		break;
		
	case "records":
		spielText[0] = "Linda has recorded 5 CDs, which included several of her own compositions, "+
														"and 3 albums of which were with Move records. She was also a prominent "+ nline +
														"recording studio singer in the mid 70s to 90s therefore spending a great "+
														"deal of time in recording studios during the day and working live at night. "+
														"Some of Australia�s greatest musicians appear on these tracks.";
		spielText[1] = "";
		spielText[2] = "";

		eDiv.className = "careerTextGreen1";
		break;
		
	case "movies":
		spielText[0] = "Linda appeared in the FILM �Gross Misconduct� with America�s " +
														"famous Jimmy Smits of �West Wing� fame in 1993." +
														"She also filmed on tour with the Daly Wilson Big Band which screened in Australian movie houses. "+
														"Linda made a film clip with Daryl Somers, filmed in the snow, when they sang "+
														"a duet for his long running TV show.";
		spielText[1] = "";
		spielText[2] = "";

		eDiv.className = "careerTextBrown";
		break;

	case "comps":
		spielText[0] = "Linda is the composer of more than 20 recorded songs.  Her songs are very "+
																"hard to categorize but are best described as sensuous, exotic, "+
																"and full of adventure."; 
				
		spielText[1] = "";
		spielText[2] = "";

		eDiv.className = "careerTextRed";
		break;		

	case "theatre":
				spielText[0] = "Linda played a principal role in the musical �THE MAGIC SHOW� in Melbourne "+
																"at the Princess Theatre. �The Magic Show� was a musical based around some "+
																"spectacular illusions.  Linda had to leave her 'regular' TV spot on Channel "+
																"7�s Penthouse Show in order to do this theatre show along with America�s Natalie Mosco."; 
				
		spielText[1] = "";
		spielText[2] = "";

		eDiv.className = "careerTextBlue";
		break;		
	case "inter":
		spielText[0] = "Linda has worked in England, Germany, Italy, Japan, Vietnam, Indonesia, "+
																"Channel Islands, Australia-wide and all of New Zealand. "+
																"A jazz singer of international standing, Linda was invited to perform a "+
																"week�s engagement in London at the famous Ronnie Scott�s Jazz Club in the mid 90�s. ";

													
		spielText[1] = "Her most recent visit to Japan was for a 6 month engagement for The Hilton Hotel.  "+
																"Her engagement in Vietnam brought much publicity when she was caught in the major "+
																"crossfire of war and lost touch with officials."; 
		spielText[2] = "";
				
		eDiv.className = "careerTextGreen2";
		break;		

	case "live":
				spielText[0] = "Linda has performed with many top named bands in the 70�s such as Barrie McAskill�s " +
																"Levi Smith Clefs, Peter Cupples Band, Rotary Connection, and formed her own band " +
																"�Local Heroes�. She has consistently appeared in major arts centres, " +
																"hotels & nightclubs and on cruise ships around the world. ";
																
				spielText[1] = "She performed at Ronnie Scott's famous London club for a week�s engagement " +
																"in the mid 1990s. Performed at the backstage party celebrating the opening " + 
																"of Victoria�s State Theatre. Performed at the celebrity wedding of Daryl Somers. " +
																"Appeared at numerous Arts Centre concerts and was the support act for several " +
																"high profile overseas artists and toured Australia & New Zealand with " +
																"�The Daly Wilson Big Band� for several months.";
																
				spielText[2] = "She began her career as a guitarist in her first band, �Grown Up Wrong�, "+
																"then switched to being a bass player in R & B bands for 6 years world-wide "+
																"before emerging as a solo singer in Australia and around the world."; 
				
		eDiv.className = "careerTextYellow";
		break;		
	}

//clear old text
clearSpielText(document.getElementById("careerText"));
//clearSpielText(document.getElementById("textContainer"));

eDiv.appendChild(document.createTextNode(spielText[0]));
for (x=1;x<3;x++)
	{
	if (spielText[x].length > 0)
		{
		eDiv.appendChild(document.createElement("p"));
		eDiv.appendChild(document.createTextNode(spielText[x]));

		}
	}	
//eDiv.appendChild(document.createTextNode(spielText[2]));

document.getElementById("careerText").appendChild(eDiv);
//document.getElementById("textContainer").appendChild(eDiv);


}


//**********************************************************************************************************
function delayRoutine()
{
x = 0;
while (x<100)
	{
	++x;
	}
}

//*******************************************************************************************************************
function startProgDisc()
{
while(1)
	{
	progInd.src = progDisc1.src;
//	delayRoutine();
	
	progInd.src = progDisc2.src;
//	delayRoutine();
	
	progInd.src = progDisc3.src;
//	delayRoutine();
	
	progInd.src = progDisc4.src;
//	delayRoutine();
	}

}


//*******************************************************************************************************************
function showVideo(videoID)
{

viewArea = document.getElementById("videoArea");
textArea = document.getElementById("videoText");


switch (videoID)
	{
	case "lin01":
		viewArea.innerHTML = "<EMBED SRC='assets/videos/birdland01[2].wmv' type='video/x-ms-wvx'  AUTOSTART=true VOLUME=100 LOOP=0 height='300' width='280'>";
//		viewArea.innerHTML = "<EMBED SRC='assets/no upload/movies/birdland01.mpg' type='video/mpeg'>";
//		viewArea.innerHTML = "<EMBED SRC='assets/no upload/movies/birdland01.swf' AUTOSTART=true type='application/x-shockwave-flash' VOLUME=100 LOOP=0 height='300' width='280'>";
		textArea.innerHTML = "BIRDLAND - Linda and the Session Singers on the Don Lane Show in 1984";
		break;
		
	case "clowns":
		viewArea.innerHTML = "<EMBED SRC='assets/videos/clowns.wmv' type='video/x-ms-wvx'  AUTOSTART=true VOLUME=100 LOOP=0 height='300' width='280'>";
//		viewArea.innerHTML = "<EMBED SRC='assets/no upload/movies/birdland01.mpg' type='video/mpeg'>";
//		viewArea.innerHTML = "<EMBED SRC='assets/no upload/movies/birdland01.swf' AUTOSTART=true type='application/x-shockwave-flash' VOLUME=100 LOOP=0 height='300' width='280'>";
		textArea.innerHTML = "A classic version of the great standard with Peter Jones on piano, David Jones on drums and Jeremy Alsop on bass.";
		break;
	}	
//startProgDisc();

}

//*****************************************************************************************************************

/*
function swapImageAndTextNew()
{
}	
*/

//*******************************************************************************************************
function preloadImages(pageID)
{
if (document.images)
	{
	switch (pageID)
		{
		case "gallery":
			
			var pImages = new Array();
			for (i=0;i<8;i++)
				{
				pImages[i] = new Image;
				}
			pImages[0].src = "assets/images/gallery/lin1.jpg";
			pImages[1].src = "assets/images/gallery/lin2.jpg";
			pImages[2].src = "assets/images/gallery/linda4.jpg";
			pImages[3].src = "assets/images/gallery/lindaHat.jpg";
			pImages[4].src = "assets/images/gallery/lindaJim.jpg";
			pImages[5].src = "assets/images/gallery/lindaPD.jpg";
			pImages[6].src = "assets/images/gallery/rotary.jpg";
			pImages[7].src = "assets/images/gallery/ww.jpg";


/*			
			lin4 = new Image;
			linHat = new Image;
			linJim = new Image;
			linPD = new Image;
			lin1 = new Image;
			lin2 = new Image;
			rotary = new Image;
	
			lin1.src = "/assets/images/gallery/lin1.jpg";
			lin2.src = "/assets/images/gallery/lin2.jpg";
			lin4.src = "/assets/images/gallery/linda4.jpg";
			linHat.src = "/assets/images/gallery/lindaHat.jpg";
			linJim.src = "/assets/images/gallery/lindaJim.jpg";
			linPD.src = "/assets/images/gallery/lindaPD.jpg";
			rotary.src = "/assets/images/gallery/rotary.jpg";
*/
			break;
		}	
	}	
return pImages;
}


//*****************************************************************************************************


function swapImageAndText(photoID)
{

textElement = document.getElementById("textDiv");

switch (photoID)
	{
 	case "lin4":
		document.bigImage.src=loadedImages[2].src;
		document.bigImage.alt = "Linda Cable wears sassy hat.";
//		document.bigImage.src=lin4.src;
		textElement.innerHTML = "Linda Cable has composed & recorded over 25 songs"; 
		break;
	
 	case "lin1":
		document.bigImage.src=loadedImages[0].src;
		document.bigImage.alt = "Linda wears brocade jacket at Ronnie Scott's jazz club.";
//		document.bigImage.src=lin1.src;

		textElement.innerHTML = "Linda appeared for a week's engagement at the world famous Ronnie Scott's Jazz Club in London."; 
		break;
 	case "lin2":
		document.bigImage.src=loadedImages[1].src;
		document.bigImage.alt = "Linda Cable singing on stage.";
//		document.bigImage.src=lin2.src;
		textElement.innerHTML = "Linda was signed by Move Records for her first album."; 
		break;
	
 	case "linHat":
		document.bigImage.src=loadedImages[3].src;
		document.bigImage.alt = "Linda Cable wearing vogue like hat.";
//		document.bigImage.src=linHat.src;
		textElement.innerHTML = "The Hat!"; 
		break;
	
 	case "linJim":
		document.bigImage.src=loadedImages[4].src;
		document.bigImage.alt = "Linda Cable with West Wing star Jimmy Smits.";
//		document.bigImage.src=linJim.src;
		textElement.innerHTML = "Linda Cable with Hollywood Star Jimmy Smits (West Wing) after filming Gross Misconduct � Linda played the singer with whom he was thought to be having an affair.  Jimmy Smits played a sax playing teacher."; 
		break;
	
 	case "linPD":
		document.bigImage.src=loadedImages[5].src;
		document.bigImage.alt = "Linda Cable live on stage with Penny Dyer.";
		//		document.bigImage.src=linPD.src;
		textElement.innerHTML = "Linda Cable during a live performance with the great Melbourne singer Penny Dyer."; 
		break;
	
 	case "rotary":
		document.bigImage.src=loadedImages[6].src;
		document.bigImage.alt = "Newspaper clipping of Linda Cable playing bass with other band members in Rotary Connection.";
		//		document.bigImage.src=rotary.src;
		textElement.innerHTML = "Linda was a professional bass player for 6 years before her singing career emerged.  This photo appeared in a European Newspaper."; 
		break;
	
 	case "ww":
		document.bigImage.src=loadedImages[7].src;
		document.bigImage.alt = "Saxophonists Bill Harrower and Wilbur Wilde with Linda Cable.";
//		document.bigImage.src=rotary.src;
		textElement.innerHTML = "Linda Cable with Melbourne Sax players Wilbur Wilde and Billy Harrower."; 
		break;
	
	}
}

