function imgPreload() {
  if(document.images) {
    preloadHeaders();
  }
}

function preload(s) {
  var iObj = new Image();
  iObj.src = s;
}

function menuOn(t) {
  var e=document.getElementById(t);
  if(!e) return;
  e.className="colourBlue noUL";
}

function menuOff(t) {
  var e=document.getElementById(t);
  if(!e) return;
  e.className="colourWhite noUL";
}

function menuClick(t) {
  var e=document.getElementById(t);
  if(!e) return;
  document.location=e.href;
}

function epost()
{
if (arguments.length == 3) {
document.write('<a href="mailto:'+arguments[0]+'@'+arguments[1]+'">'+arguments[2]+'</a>');
} else if (arguments.length == 2) {
document.write('<a href="mailto:'+arguments[0]+'@'+arguments[1]+'">'+arguments[0]+'@'+arguments[1]+'</a>');
} else if (arguments.length == 1) {
document.write('<a href="mailto:'+arguments[0]+'">'+arguments[0]+'</a>');
}
}

var note = null;

function explain(path,wsize,hsize)
{
	if (note && note.open && !note.closed)
	{
		note.close();
		note=window.open(path,"notewindow","menubar=no,toolbar=no,left=30,top=50,resizable=yes,scrollbars=yes,height=" + hsize + ",width=" + wsize);
	}
	else
	{
		note=window.open(path,"notewindow","menubar=no,toolbar=no,left=30,top=50,resizable=yes,scrollbars=yes,height=" + hsize + ",width=" + wsize);
	}
}
function close_note()
{
	if (note && note.open && !note.closed) note.close();
}

