// funzione per far aprire un pop up
function gowindow(str, titolo,w,h) {
	openwin = window.open(str,titolo,'width='+ w +',height='+ h +',status=no,scrollbars=no,resizable=no,location=no,toolbar=no');
}

$(document).ready (function () {
	var img = $('#foto_main').attr("src");
	$('#gallery img').hover(
		function () {
			$(this).css("cursor","pointer");
			//$(this).attr("title","Click to enlarge");
			var nome = $(this).attr("src").replace('.jpg','_b.jpg');
			$('#foto_main').attr("src",nome);
			return false;
		},
		function () {
			$('#foto_main').attr("src",img);
		}
	);
});