
//Rollover Script


if (document.images){



img1on=new Image();
img1on.src="indexmenu-over.png";
img2on=new Image();
img2on.src="indexmenu-over.png";
img3on=new Image();
img3on.src="indexmenu-over.png";
img4on=new Image();
img4on.src="indexmenu-over.png";
img6on=new Image();
img6on.src="gallery_bottom-on.gif";
img7on=new Image();
img7on.src="statement_bottom-on.gif";
img8on=new Image();
img8on.src="exhibitions_bottom-on.gif";
img9on=new Image();
img9on.src="contact_bottom-on.gif";
img10on=new Image();
img10on.src="home_bottom-on.gif";
img11on=new Image();
img11on.src="janieemailon.gif";



img1off=new Image();
img1off.src="spacer.gif";
img2off=new Image();
img2off.src="spacer.gif";
img3off=new Image();
img3off.src="spacer.gif";
img4off=new Image();
img4off.src="spacer.gif";
img6off=new Image();
img6off.src="spacer.gif";
img7off=new Image();
img7off.src="spacer.gif";
img8off=new Image();
img8off.src="spacer.gif";
img9off=new Image();
img9off.src="spacer.gif";
img10off=new Image();
img10off.src="spacer.gif";
img11off=new Image();
img11off.src="janieemailoff.gif";


}

function imgOn(imgName){
    if (document.images){
        document[imgName].src=eval(imgName+"on.src");
       
    }
}

function imgOff(imgName){
    if (document.images){
        document[imgName].src=eval(imgName+"off.src");
      
    }
} 

//End of rollover script







/*************************************************************************
  This code is from Dynamic Web Coding at http://www.dyn-web.com/
  Copyright 2001-3 by Sharon Paine 
  See Terms of Use at http://www.dyn-web.com/bus/terms.html
  regarding conditions under which you may use this code.
  This notice must be retained in the code as is!
*************************************************************************/

// resize fix for ns4
var origWidth, origHeight;
if (document.layers) {
	origWidth = window.innerWidth; origHeight = window.innerHeight;
	window.onresize = function() { if (window.innerWidth != origWidth || window.innerHeight != origHeight) history.go(0); }
}

var cur_lyr;	// holds id of currently visible layer
function swapLayers(id) {
  if (cur_lyr) hideLayer(cur_lyr);
  showLayer(id);
  cur_lyr = id;
}

function showLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "visible";
}

function hideLayer(id) {
  var lyr = getElemRefs(id);
  if (lyr && lyr.css) lyr.css.visibility = "hidden";
}

function getElemRefs(id) {
	var el = (document.getElementById)? document.getElementById(id): (document.all)? document.all[id]: (document.layers)? getLyrRef(id,document): null;
	if (el) el.css = (el.style)? el.style: el;
	return el;
}

// get reference to nested layer for ns4
// from old dhtmllib.js by Mike Hall of www.brainjar.com
function getLyrRef(lyr,doc) {
	if (document.layers) {
		var theLyr;
		for (var i=0; i<doc.layers.length; i++) {
	  	theLyr = doc.layers[i];
			if (theLyr.name == lyr) return theLyr;
			else if (theLyr.document.layers.length > 0) 
	    	if ((theLyr = getLyrRef(lyr,theLyr.document)) != null)
					return theLyr;
	  }
		return null;
  }
}










