Event.observe(window, 'load', function() {
	// attempt to autodetect the baseUrl
	try {
		zoomImagesURI = $$('script').first().src.replace(/^(.*)\/javascripts.*/, '$1/images/zoom/');
	} catch(e) {}
	
	setupZoom();
});
