/* -------------------- FANCYBOX ------------------------ */

function attivaFancy(){
	
	$("a[rel=example_group]").fancybox({
	'transitionIn'		: 'fade',
	'transitionOut'		: 'fade',
	'titlePosition' 	: 'over',
	'overlayColor'		: '#000000',
	'overlayOpacity'	: '0.6',
	'type'				: 'iframe',
	'width'				: 750,
	'height'			: 560,
	'autoDimensions'	:false,
	'scrolling'			:'auto'
	
	});
}

function attivaFancyMail(){
	
	$("a[rel=fancybox-mail]").fancybox({
	'transitionIn'		: 'fade',
	'transitionOut'		: 'fade',
	'titlePosition' 	: 'over',
	'overlayColor'		: '#000000',
	'overlayOpacity'	: '0.6',
	'type'				: 'iframe',
	'width'				: 490,
	'height'			: 300,
	'autoDimensions'	:false,
	'scrolling'			:'auto'
	
	});	
}

function attivaFancyCredits(){
	
	$("a[rel=fancybox-credits]").fancybox({
	'transitionIn'		: 'fade',
	'transitionOut'		: 'fade',
	'titlePosition' 	: 'over',
	'overlayColor'		: '#000000',
	'overlayOpacity'	: '0.6',
	'type'				: 'iframe',
	'width'				: 620,
	'height'			: 400,
	'autoDimensions'	:false,
	'scrolling'			:'auto'
	
	});	
	
}
function attivaFancyCreditsSmall(){
	
	$("a[rel=fancybox-creditsSmall]").fancybox({
	'transitionIn'		: 'fade',
	'transitionOut'		: 'fade',
	'titlePosition' 	: 'over',
	'overlayColor'		: '#000000',
	'overlayOpacity'	: '0.6',
	'type'				: 'iframe',
	'width'				: 400,
	'height'			: 300,
	'autoDimensions'	:false,
	'scrolling'			:'auto'
	
	});	
}

$(document).ready(function() {


/*
	$('img').tooltip({ 
		track: true, 
		delay: 0, 
		showURL: false, 
		showBody: " - ", 
		fade: 250 
	});
*/	
	$('a img[title!=""]').each(function() {
		$(this).removeAttr('title');
	});
	
	
	$('.gallery a').each(function() {
		$(this).removeAttr('title');
		$(this).removeAttr('alt');

	});
	
	$('a').tooltip({ 
		track: true, 
		delay: 0, 
		showURL: false, 
		showBody: " - ", 
		fade: 250 
	});
	
});


$(document).ready(function() {
		$("#qtranslate-chooser").hide();  
		
		$("#langmenu").mouseenter(function() {
		$("#qtranslate-chooser").stop(true, true).slideDown("slow");
	})
	.mouseleave(function() {
		$("#qtranslate-chooser").stop(true, true).slideUp("slow");
	});
});
