/// ANTISPAM EMAIL

function mail_no_spam(user,dominio) { 
	document.location.href = "mailto:" + user + "@" + dominio; 
}

// CONTROLLI FANCYBOX

$(document).ready(function() {


$("a#vt").fancybox({
	'titleShow'		: false
});

$("a[rel=gl_01]").fancybox({
	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
		return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
	}
	});

$("a[rel=gl_02]").fancybox({
	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
		return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
	}
	});
$("a[rel=gl_03]").fancybox({
	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
		return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
	}
	});

$("a[rel=gl_04]").fancybox({
	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
		'titlePosition' 	: 'over',
		'titleFormat'		: function(title, currentArray, currentIndex, currentOpts) {
		return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &nbsp; ' + title : '') + '</span>';
	}
	
	});
$("#part").fancybox({
	/*'width'				: '75%',
	/*'height'			: '75%',*/
	'autoScale'			: false,
	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
	'type'				: 'iframe'
});

$("#cont").fancybox({
	/*'width'				: '75%',
	/*'height'			: '75%',*/
	'autoScale'			: false,
	'transitionIn'		: 'none',
	'transitionOut'		: 'none',
	'type'				: 'iframe'
});

			
});