function popup(url, width, height) {
  var x_pos = screen.width / 2 - width / 2;
  var y_pos = screen.height / 2 - height / 2;
  var attribs = 'width=' + width + 'px,height=' + height + 'px,status=yes,screenX=' + x_pos + ',screenY=' + y_pos + ',scrollbars=no';
  var myWindow = window.open(url, "GUTENBERG", attribs);
  myWindow.focus();
}

var myScaler = 0;

function letItGrow(theClickedImage) {
	var mySmallImage = theClickedImage;
	var myZoomImage = $('zoomImage');
	var myPos = Position.cumulativeOffset(mySmallImage);
	var myHeight = Element.getHeight(mySmallImage);
	var myWidth = Element.getWidth(mySmallImage);
	if(myScaler) {
		myScaler = 0;					
		new Effect.Scale(myZoomImage, 25, {
			
			afterFinish : function(){
				myZoomImage.style.display = 'none';
			}
		}); 
		
		
	} else {
		myZoomImage.style.display = 'block';
		myZoomImage.style.left = myPos[0] + 'px';
		myZoomImage.style.top = myPos[1] + 'px';
		myZoomImage.style.width = myWidth + 'px';
		myZoomImage.style.height = myHeight + 'px';
		myZoomImage.style.cursor = 'url(\'/images/zoomout.cur\'), pointer';
		myScaler = 1;
		new Effect.Scale(myZoomImage, 400);
		
	}
}
