function errFunc(t) {
    alert('Error ' + t.status + ' -- ' + t.statusText);
	alert(t.responseText);
}
function swapimg(strName,strHref) {
	if ($(strName)) { $(strName).src = strHref; }
}
function handleNavOver(strName,strHref,strClass) {
	if ($(strName).className != "on") {
		$(strName).className = strClass;
		swapimg(strName,strHref);
	}
}
function setSelectedNav(strName,strHref) {
	$(strName).className = 'on';
	swapimg(strName,strHref);
}
// Example:
// simplePreload( '01.gif', '02.gif' ); 
function simplePreload()
{ 
  var args = simplePreload.arguments;
  document.imageArray = new Array(args.length);
  for(var i=0; i<args.length; i++)
  {
    document.imageArray[i] = new Image;
    document.imageArray[i].src = args[i];
  }
}

window.load = function() {
	simplePreload('images/picHeaderEvents_x.gif','images/picHeaderMenu_x.gif','images/picHeaderBook_x.gif','images/picHeaderDirections_x.gif','images/picHeaderAbout_x.gif');
}