window.addEvent('domready', function() {
						 
initImageZoom();
var show = function(){ 
var miniUrl = this.getChildren().getProperty('src');
miniUrl = miniUrl.toString();
var mediumUrl = miniUrl.replace("mini", "big");//provisoire///

var bigUrl = miniUrl.replace("mini", "big");
var maxUrl = bigUrl.replace("/pa/big", "/big");
maxUrl = maxUrl.replace(".JPG", ".jpg");
	$('big').set('html','<a href="" rel="imagezoom"><img src="cat/big.jpg" /></a>'); 
	$('big').getChildren().setProperty('href', maxUrl);	
	$('big').getChildren()[0].getChildren().setProperty('src', mediumUrl);

		
initImageZoom();	

} // this refers to the Element.

 // this refers to the Element.

	if($('thumbs')) $$('.thumb').addEvent('mouseover', show);
	//if($('thumbs')) $$('.thumb').addEvent('click', zoom);
	


});