var isDOM=document.getElementById?1:0;
var isIE=document.all?1:0;
var isNS4=navigator.appName=='Netscape'&&!isDOM?1:0;

function getRef(i, p) {
	p = !p ? document : p.navigator ? p.document:p;
	return isIE ? p.all[i]:isDOM ? (p.getElementById ? p : p.ownerDocument ).getElementById(i) : isNS4 ? p.layers[i] : null;
}

function placeArrow(imageNum) {
		imgArrow = getRef('arrow'+imageNum);
		imgArrow.src = 'images/arrow.gif';	
}

function resetArrows(maxArrows) {
	for (x=1; x<=maxArrows; x++) {
		imgArrow = getRef('arrow'+x);
		imgArrow.src = 'images/spacer.gif';
	}
}