// this controls the image roll over of the "Listen" button at the top of each page


function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		listen_button_over = newImage("images/listen_button-over.gif");
		preloadFlag = true;
	}
}


// this controls the pop up window for the flash mp3 player

function openWin(URL) {
	aWindow = window.open(URL, 'flashplayerwindow', 'toolbar=no,location=no,directories=no,status=no,menub ar=no,scrollbar=no,resizable=no,copyhistory=yes,width=490,height=354,left=366, top=164,screenX=366,screenY=164'); 
}

