var imagesSupported = (document["images"] != null);

 
function regularImageFile(imageName) {
  return("images/" + imageName + "-a.jpg");
}

function negativeImageFile(imageName) {
  return("images/" + imageName + "-b.jpg");
}

function thirdImageFile(imageName) {
  return("images/" + imageName + "-c.jpg");
}

function glow(imageName) {
  if (imagesSupported) 
    document.images[imageName].src =
      negativeImageFile(imageName);
}

function unglow(imageName) {
  if (imagesSupported)
    document.images[imageName].src =
      regularImageFile(imageName);
}

function depress(imageName) {
  if (imagesSupported)
    document.images[imageName].src =
      thirdImageFile(imageName);
}

function StartPage(page, height, width) {
if (height == 0) {height = 550}
if (width == 0) {width = 750}
OpenWin = this.open(page, "picture", 
"height="+ height +",width=" + width + ",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
}


function imagePage (imageName, height, width){
imageposition=1;
if (imageposition == 1) {
	imageHeight = 800;
	imageWidth = 600;
	
	} else {
	imageWidth = 800;
	imageHeight = 600;
	
}
if (height == 0) {height = 550}
if (width == 0) {width = 750}

OpenWin = this.open("", "", "height="+ height +",width=" + width + ",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
OpenWin.document.writeln('<html>' +
'<head>' +
'<title>You Call THIS Archaeology?</title>' +
'<body bgcolor="#000000" text="#FFCCCC" onload=focus();>' +
'</head><DIV align=center><img src="' + imageName + '" hspace=0 vspace=0 border="0"></DIV>' +
'</body>' +
'</html>');

}

function imagePage1 (imageName, imageposition){
if (imageposition == 1) {
	height = 800;
	width = 600;
	
	} else {
	width = 800;
	height = 600;
	
}
if (height == 0) {height = 550}
if (width == 0) {width = 750}

OpenWin = this.open("", "", "height="+ height +",width=" + width + ",toolbar=no,menubar=no,location=no,scrollbars=yes,resizable=yes");
OpenWin.document.writeln('<html>' +
'<head>' +
'<title>You Call THIS Archaeology?</title>' +
'<body bgcolor="#000000" text="#FFCCCC" onload=focus();>' +
'</head><DIV align=center><img src="' + imageName + '"height="' + height +'" width="' + width + '"hspace=0 vspace=0 border="0"></DIV>' +
'</body>' +
'</html>');

}

function windowSwapon (newsrc){

frames['Photos'].location.href=newsrc;

}

function windowSwapoff (){

frames['Photos'].location.href="photos.html";

}

function imageSwap(imageName, newImage) {
  if (imagesSupported) 
    document.images[imageName].src = newImage;

}
