function changePic(picimage, pictitle, picdescript) { // changes the image and description displayed depending on what link is clicked
	document['picture'].src= 'pics/' + picimage + '.jpg';
	
	document.getElementById("playInfo").innerHTML = '<h4>' + pictitle + '</h4>' + '<p>' + picdescript + '</p>';
	}
	
	
function changeLinkPic(picimage) { // changes the image for link hovers
	document['picture'].src= 'pics/' + picimage + '.jpg';
	}
	
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=1,resizable=1,width=804,height=560,left = 318,top = 170');");
}
	
 function flip(who){ // makes hidden classes visible and vice versa
  if (who.className == 'hid') {
  	who.className= 'unhid'; 
  } else {
  	who.className= 'hid';
  }
}

function popupwin() { // opens the dramatis personae popup window
    window.open("dramatis.html","Dramatis_Personae","menubar=no,width=700,height=700,toolbar=no,scrollbars=yes");
}

function hide(who){ // use this to close other unwanted already expanded sets
	if (who.className == 'unhid') {
	who.className= 'hid';}
	}
	
function toggleLayer( whichLayer )
{
  var elem, vis;
  if( document.getElementById ) // this is the way the standards work
    elem = document.getElementById( whichLayer );
  else if( document.all ) // this is the way old msie versions work
      elem = document.all[whichLayer];
  else if( document.layers ) // this is the way nn4 works
    elem = document.layers[whichLayer];
  vis = elem.style;
  // if the style.display value is blank we try to figure it out here
  if(vis.display==''&&elem.offsetWidth!=undefined&&elem.offsetHeight!=undefined)
    vis.display = (elem.offsetWidth!=0&&elem.offsetHeight!=0)?'block':'none';
  vis.display = (vis.display==''||vis.display=='block')?'none':'block';
}