function errFunc(t) {
    alert('Error ' + t.status + ' -- ' + t.statusText);
	alert(t.responseText);
}
function swapimg(strName,strHref) {
	if ($(strName)) { $(strName).src = strHref; }
}
function handleNavOver(strCntName,strName,strHref,strClass) {
	if ($(strCntName)) {
		if ($(strCntName).className != "on") {
			$(strCntName).className = strClass;
			swapimg(strName,strHref);
		}
	}
}
function setSelectedNav(strCntName,strName,strHref) {
	if ($(strCntName)) {
		$(strCntName).className = 'on';
		swapimg(strName,strHref);
	}
}
// 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.onload = function() {
	simplePreload( 'images/picMastHome_x.gif','images/picMastProjects_x.gif','images/picMastContact_x.gif','images/picMastAbout_x.gif' );
}