var makeImageZoomable = function(parentObj, origWidth, origHeight){
	Event.observe($(parentObj), 'mouseover', function(event){
		var imgElement = $$('#'+parentObj+' img')[0];
		new Effect.Scale(imgElement, 104, {
			scaleFromCenter: true,
			scaleMode: {
				originalHeight: origHeight, 
				originalWidth: origWidth
			},
			duration:0.1,
			fps:100,
			transition: Effect.Transitions.linear,
			queue:{
				position:'end',
				scope:'imagezoom'
			}
		});
		return false;
	});
	Event.observe($(parentObj), 'mouseout', function(event){
		var imgElement = $$('#'+parentObj+' img')[0];
		var queue = Effect.Queues.get('imagezoom');
		queue.each(function(effect) { effect.cancel(); });
		imgElement.setStyle({
			'width':origWidth+'px',
			'height':origHeight+'px',
			'top':'0px',
			'left':'0px'
		});
		return false;
	});
}
