function activatePopup(id, imgWid, aEvent) {
	active = id;
	if(imgWid == 80){
		width = 320;
		height = 220;
	} else {
		width = 220;
		height = 320;
	}
	var left = aEvent.clientX + document.body.scrollLeft + imgWid;
	if(left + width > document.body.clientWidth){left = aEvent.clientX - width - imgWid;}	
	else if(left < 0){left = 0;}
	var top = aEvent.clientY + document.body.scrollTop;
	if(aEvent.clientY + height > document.body.clientHeight){top = document.body.clientHeight - height + document.body.scrollTop;}
	var whichEl = document.getElementById(active).style;
	whichEl.left = left;
	whichEl.top = top;
	whichEl.visibility = "visible";
}
  
function clearPopup(aEvent) {
	var whichEl = document.getElementById(active).style;
	whichEl.visibility = "hidden";
	active = null;
}

function guestbook() {
	newWindow = window.open('guestbook.htm','guestbook','height=350,width=450');
	newWindow.focus();
}