

function flash(imageName,imageFile) {
	if(document.images && goodToGo == "yes") eval('document.images[imageName].src = '+imageFile+'.src');
}


function showRotatingImage(numOfImages) {
	var now = new Date();
	var number= (Math.round((Math.abs(Math.sin(now.getTime()))*1000))%numOfImages) + 1;
	document.write("<img src='images/rotating_images/photo_" + number + ".jpg' alt='photo' width='234' height='161' border='0'>");
}


	// Functions to control Pop-up Window

	// Closes window if already opened (ensures new, correctly sized and placed window)
	var temp_url = "";

	function closeWins() {
		if (window.theLICRWin) {
			if (!window.theLICRWin.closed) window.theLICRWin.close();
		}
	}

	// Opens window in the center of the monitor
	function popLICRWin(url,w,h,setscroll) {
			var thePage = url;
			var theWidth = w;
			var theHeight = h;
			var winl = Math.floor((screen.width - theWidth) / 2);
			var wint = Math.floor(((screen.height - theHeight) / 2) - 25);

			theLICRWin = window.open(thePage,'theLICRWin','width='+theWidth+',height='+theHeight+',top='+wint+',screenY='+wint+',left='+winl+',screenX='+winl+',toolbar=no,scrollbars='+setscroll+',resizable=yes,status=no,dependent=yes');
			if (window.theLICRWin.focus()) setTimeout("focusLICRWin();",200);
	}

	// Checks to see if there is a window open alread, then closes
	// (if necessary) and pops the new window.

	function popLICR(url,w,h,setscroll){
			url2 = url;
			w2 = w;
			h2 = h;
			setscroll2 = setscroll;
			if (window.theLICRWin) {
				if (!window.theLICRWin.closed) window.theLICRWin.close();
				//delayToEnsureBioPop = setTimeout("popLICRWin();",500);
				delayToEnsureLICRPop = setTimeout("popLICRWin(url2,w2,h2,setscroll2);",500);
			} else {
				popLICRWin(url,w,h,setscroll);
			}
		}

	// Makes sure new window is on top of disclaimer.
	function focusLICRWin() {
			window.theLICRWin.focus();
		}
