function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages(na,nsrc,alt) {








		re = /&amp;/g;
		nsrc = nsrc.replace(re, "&");
		document[na].src = nsrc;
		document[na].alt = alt;
}

function changeImage(na,nsrc,alt) {
		re = /&amp;/g;
		nsrc = nsrc.replace(re, "&");
		document[na].src = nsrc;
		document[na].alt = alt;
}

var preloadFlag = true;

function imagesonstart(){
		document.all.aap.src = "/images/s_prev_unact.gif";
		document.all.aap.alt = "Previous image";
}

function preloadImage(strRow,strFile,strLast) {
  if (document.images) {
	var imageNum;
	imageNum = strRow;
	strRow = newImage(strFile);
	if (imageNum == strLast){
	  preloadImageFlag = true;
	}
  }
}
