<!--

// Preloading images and setting variables.

var home1 = new Image (166, 42)
home1.src = "images/home.gif"

var home2 = new Image (166, 42)
home2.src = "images/home_over.gif"

var gallery1 = new Image (166, 47)
gallery1.src = "images/gallery.gif"

var gallery2 = new Image (166, 47)
gallery2.src = "images/gallery_over.gif"

var earthenware1 = new Image (166, 44)
earthenware1.src = "images/earthenware.gif"

var earthenware2 = new Image (166, 44)
earthenware2.src = "images/earthenware_over.gif"

var collapsed1 = new Image (166, 29)
collapsed1.src = "images/collapsed.gif"

var collapsed2 = new Image (166, 29)
collapsed2.src = "images/collapsed_over.gif"

var vessels1 = new Image (166, 29)
vessels1.src = "images/vessels.gif"

var vessels2 = new Image (166, 29)
vessels2.src = "images/vessels_over.gif"

var exhibits1 = new Image (166, 48)
exhibits1.src = "images/exhibits.gif"

var exhibits2 = new Image (166, 48)
exhibits2.src = "images/exhibits_over.gif"

var bio1 = new Image (166, 54)
bio1.src = "images/bio.gif"

var bio2 = new Image (166, 54)
bio2.src = "images/bio_over.gif"

var contact1 = new Image (166, 49)
contact1.src = "images/contact.gif"

var contact2 = new Image (166, 49)
contact2.src = "images/contact_over.gif"

var links1 = new Image (166, 52)
links1.src = "images/links.gif"

var links2 = new Image (166, 52)
links2.src = "images/links_over.gif"

// Function for swapping images.

function changePicture(ImageA, ImageB)
{
	ImageA.src = ImageB.src
}

// Function to open image popup windows.

var newwindow;
var wheight = 0, wwidth = 0;

function popitup(url, title, iwidth, iheight, colour) {
var pwidth, pheight;

if ( !newwindow || newwindow.closed ) {
pwidth=iwidth+30;
pheight=iheight+30;
newwindow=window.open('','htmlname','width=' + pwidth +',height=' +pheight + ',resizable=1,top=50,left=10');
wheight=iheight;
wwidth=iwidth;
}

if (wheight!=iheight || wwidth!=iwidth ) {
pwidth=iwidth+30;
pheight=iheight+90;
newwindow.resizeTo(pwidth, pheight);
wheight=iheight;
wwidth=iwidth;
}

newwindow.document.clear();
newwindow.focus();
newwindow.document.writeln('<html> <head> <title>' + title + '<\/title> <\/head> <body bgcolor= \"' + colour + '\"> <center>');
newwindow.document.writeln('<img src=' + url + ' title=\"' + title + '\" alt=\"' + title + '\" >');
newwindow.document.writeln('<\/center> <\/body> <\/html>');
newwindow.document.close();
newwindow.focus();
}

// Routines to tidy up popup windows when page is left
// Call with an onUnload="tidy5()" in body tag

function tidy5() {
if (newwindow && !newwindow.closed) { newwindow.close(); }
}


//-->
