	var myDate = new Date();
	var width = 320;
	var height = 240;
	var delay = 5; /* in milliseconds */
	var cameraipaddress = "terrace.peabody.vanderbilt.edu:26122";

	var tmpImg = new Image(width, height);

	function drawcamera() {document.CamImg.src = tmpImg.src;}

	function loadcamera() {
		myDate = new Date();  /* date and time are used to create unique cache name in order to
								 force new cache page.. otherwise, browser will not understand that
								 a new page is being created and will use cached page instead
							  */
		tmpImg.src = "http://"+cameraipaddress+"/cgi-bin/camera?CH=1&PAGE=" + myDate.getTime();
		tmpImg.onload=drawcamera;
		tmpImg.onerror=drawcamera;
	}

	/* document.write is first writing to html screen to start the onLoad function.
	   The onLoad function calls up setTimeout function to draw new page after the delay time.
	   Since setTimeout is within onLoad function call and a new page is being written, a loop
	   occurs until program is closed
	*/
	document.write("<IMG SRC=http://"+cameraipaddress+"/cgi-bin/camera?CH=1&PAGE="+ myDate.getTime() + " NAME=CamImg "  + "onLoad=\"TimerID=setTimeout('loadcamera()',delay);\" onError=\"TimerID=setTimeout('loadcamera()',delay);\"WIDTH="+width+" HEIGHT="+height+ " VSPACE=3>");
