// JavaScript Document
function MM_reloadPage(init) { 
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//Reloads the window if Nav4 resized. Just a silly bug fix!
//Right, now the fun starts...

var objectIDCurr = 'ch1';

function setVisibility(objectID) {
	var domNew = findDOM(objectID,1);
	var domCurr = findDOM(objectIDCurr,1);
	domCurr.visibility = "hidden";
	domNew.visibility = "visible";
	objectIDCurr = objectID;
}
// That bit of Javascript tells the browser to look at the DOM (to see if you have IE, or NS)
// then it determines the visibility of each layer.

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

//preload images - use body onload="MM_preloadImages('images/x.gif')" tag
if (isLayers) 
				document.write('<link href="styles/gillpc.css" rel="styleSheet" type="text/css">');
			else
				document.write('<link href="styles/gill.css" rel="styleSheet" type="text/css">');
//  This says if the browser is NS (ie uses layers not divs), then use the NS style sheet.
//  NS displays text slightly smaller then IE and colours a little darker. When making an NS style
// Start with an IE one and make the text slightly bigger etc. Also, do test on NS6 because this is the most
//compliant browser for Javascript and CSS. Just because it works in IE doesn't mean it's right!