function archivejump() {
	window.location.href = document.archivepulldown.ID.options[document.archivepulldown.ID.selectedIndex].value
}

function preloadImages() {
	if ( document.images ) {
		var imgFiles = arguments

		if( ! document.preloadArray ) {
			document.preloadArray = new Array()
		}

		for (var j=0; j < imgFiles.length; j++) {
			if (imgFiles[j].charAt(0)!="#") {
				img = new Image
				img.src = imgFiles[j]
				document.preloadArray.push(img)
			}
		}
	}
}

function swapImage(imageId,imgSrc) {
	var i, j=0

	if( ! document.swappedImages ) {
		document.swappedImages = new Array
	}

	obj = document.getElementById(imageId)
	if (obj != null) {
		obj.origSrc = obj.src
		obj.src = imgSrc;
		document.swappedImages.push( imageId )
 	}
}

function swapImgRestore() {
	while( document.swappedImages.length > 0 ) {
		imageId = document.swappedImages.shift()
		obj = document.getElementById(imageId)
		if (obj != null) {
			obj.src = obj.origSrc
 		}
	}
}

function archiveJump(issueId) {
	location.href="index.cgi?issueId="+issueId;
}
