// JavaScript Document

 var data;
 
 function participantIcon(pageObject, imageName, rolloverText) {
	this.pageObject = pageObject;
	this.imageName = imageName;
	this.rolloverText = rolloverText;
}

function rolloverText(text) {
var id = 'nameRollover';
var theText = "benjamin";
if (document.getElementById) {
		x = document.getElementById(id);
		x.innerHTML = '';
		x.innerHTML = text;
} else if (document.all) {
		x = document.all[id];
		x.innerHTML = text;
} else if (document.layers) {
		x = document.layers[id];
		text2 = '<P CLASS="testclass">' + text + '</P>;';
		x.document.open();
		x.document.write(text2);
		x.document.close();
	}
}

function iconMouseOver(sender) {
if (!data) data = iconData();
var theIcon;
for (i = 0; i < data.length; i++) 
	if (data[i].pageObject == sender) {
		theIcon = data[i];
		break;
	}
if (!theIcon) return;
sender.src = "http://www.dshed.net/digitised/art_and_power/images/navimages/" + theIcon.imageName +"_rollover.gif";
rolloverText(theIcon.rolloverText);
}


function iconMouseOut(sender) {
if (!data) data = iconData();
var theIcon;
for (i = 0; i < data.length; i++) 
	if (data[i].pageObject == sender) {
	theIcon = data[i];
	break;
	}
if (!theIcon) return;
sender.src = "http://www.dshed.net/digitised/art_and_power/images/navimages/" + theIcon.imageName +".gif";
rolloverText("Artist: Rollover image for info");
}


function iconData() {
var theIconData = new Array();
theIconData[0] = new participantIcon(document.alanM, "alanM", "Artist: Alan Marshall");
theIconData[1] = new participantIcon(document.bellaE, "bellaE", "Artist: Bella Edwards");
theIconData[2] = new participantIcon(document.bobH, "bobH", "Artist: Bob Howourth");
theIconData[3] = new participantIcon(document.brianD, "brianD", "Artist: Brian Davis");
theIconData[4] = new participantIcon(document.brendaC, "brendaC", "Artist: Brenda Cook");
theIconData[5] = new participantIcon(document.carolC, "carolC", "Artist: Carol Chilcott");
theIconData[6] = new participantIcon(document.claudeR, "claudeR", "Artist: Claude Rimmer");
theIconData[7] = new participantIcon(document.davidC, "davidC", "Artist: David Conn");
theIconData[8] = new participantIcon(document.davidGk, "davidGk", "Artist: David Glover-Kirk");
theIconData[9] = new participantIcon(document.davidPj, "davidPj", "Artist: David Parry-Jones");
theIconData[10] = new participantIcon(document.davidS, "davidS", "Artist: David Scott");
theIconData[11] = new participantIcon(document.davidT, "davidT", "Artist: David Talbot");
theIconData[12] = new participantIcon(document.faustus, "faustus", "Artist: Faustus");
theIconData[13] = new participantIcon(document.group, "group", "Artist: Group Work");
theIconData[14] = new participantIcon(document.jackM, "jackM", "Artist: Jack Mundy");
theIconData[15] = new participantIcon(document.jackyL, "jackyL", "Artist: Jacky Long");
theIconData[16] = new participantIcon(document.joanC, "joanC", "Artist: Joan Clews");
theIconData[17] = new participantIcon(document.joanG, "joanG", "Artist: Joan Goodyear");
theIconData[18] = new participantIcon(document.johnV, "johnV", "Artist: John Vowles");
theIconData[19] = new participantIcon(document.kathyS, "kathyS", "Artist: Kathy Stewart");
theIconData[20] = new participantIcon(document.kevinH, "kevinH", "Artist: Kevin Hogan");
theIconData[21] = new participantIcon(document.lizzieL, "lizzieL", "Artist: Lizzie Lane");
theIconData[22] = new participantIcon(document.lynM, "lynM", "Artist: Lyn Martin");
theIconData[23] = new participantIcon(document.maryL, "maryL", "Artist: Mary Lansdown");
theIconData[24] = new participantIcon(document.nicholasS, "nicholasS", "Artist: Nicholas Selway");
theIconData[25] = new participantIcon(document.paulW, "paulW", "Artist: Paul Williams");
theIconData[26] = new participantIcon(document.peterS, "peterS", "Artist: Peter Sutton");
theIconData[27] = new participantIcon(document.richardE, "richardE", "Artist: Richard Edwards");
theIconData[28] = new participantIcon(document.robertC, "robertC", "Artist: Robert Chapman");
theIconData[29] = new participantIcon(document.robertT, "robertT", "Artist: Robert Tooze");
theIconData[30] = new participantIcon(document.sarahM, "sarahM", "Artist: Sarah McGreevy");
theIconData[31] = new participantIcon(document.stephenC, "stephenC", "Artist: Stephen Canby");
theIconData[32] = new participantIcon(document.thisriver, "thisriver", "Artist: This River Winding");
theIconData[33] = new participantIcon(document.tinaK, "tinaK", "Artist: Tina Kelly");
theIconData[34] = new participantIcon(document.tomH, "tomH", "Artist: Tom Hudson");
theIconData[35] = new participantIcon(document.georgeT, "georgeT", "Artist:  George Trmal");
theIconData[36] = new participantIcon(document.roystonT, "roystonT", "Artist: Royston Tanner");

	
	return theIconData;
}

// n=navigator.appName
// ns=(n=="Netscape")
// ie=(n=="Microsoft Internet Explorer")
// BROWSER DETECTION SCRIPT SETS STYLESHEET
// Navigator 6 and up
	
	
//	if (ie) {
//		document.write('<'+'link rel="stylesheet" href="http://www.dshed.net/digitised/art_and_power/css/artpower.css" type="text/css" />');
//	
//	}else{
	
//		document.write('<'+'link rel="stylesheet" href="http://www.dshed.net/digitised/art_and_power/css/artpower_other.css" type="text/css" />');
//	}
