
function thumbnailMouseover(imagen) {
	
	new_img = document.createElement("img");
	
	var position = jQuery(imagen).offset();
	
	jQuery(new_img).css({'position' : 'absolute', 'left' : position.left, 'top' : position.top, 'cursor' : 'pointer'});
	new_img.id = "big" + imagen.id;
	new_img.src = imagen.src;
	new_img.width = imagen.width;
	new_img.height = imagen.height;
	new_img.originalWidth = imagen.width;
	new_img.originalHeight = imagen.height;
	new_img.originalLeft = position.left;
	new_img.originalTop = position.top;
	
	jQuery(new_img).click(function () {
		jQuery(imagen).parent().click();
	});
	
	document.body.appendChild(new_img);
	
	new_height = new_img.originalWidth * 0.06;
	
	jQuery(new_img).stop().animate({ 
        width: new_img.originalWidth + (new_height * 2),
        height: new_img.originalHeight + (new_height * 2),
        left: new_img.originalLeft - new_height,
		top: new_img.originalTop - new_height
    }, 150, 'swing' );
	
	jQuery(new_img).mouseout(function(){thumbnailMouseOut(this)});
	
}

function thumbnailMouseOut(new_img) {
	
	jQuery(new_img).stop().animate({ 
        width: new_img.originalWidth,
        height: new_img.originalHeight,
        left: new_img.originalLeft,
		top: new_img.originalTop
    }, 150, 'swing', function () { document.body.removeChild(new_img) } );
}
