$(document).ready(function(){
	$(document).pngFix();
 
	$(".fancyt").hover(function(){  
		$(this).fadeTo(500, 0.5);  
	},function(){  
		$(this).fadeTo(500, 1.0);  
	});  
	
	
    $(".fancyt").fancybox();
	$("#inline").fancybox({
		'autoDimensions': false,
		'width'			: 350,
		'height'		: 180
	});
	$("#cbanklink").fancybox({
		'autoDimensions': false,
		'width'			: 450,
		'height'		: 550
	});
	
	$("ul.css-tabs").tabs("div.css-panes > div", {				
		effect: 'fade',		
		onBeforeClick: function(event, i) {	
			// get the pane to be opened
			var pane = this.getPanes().eq(i);	
			// only load once. remove the if ( ... ){ } clause if you want the page to be loaded every time
			if (pane.is(":empty")) {	
				// load it with a page specified in the tab's href attribute
				pane.load(this.getTabs().eq(i).attr("href"));
			}	
		}
	});
	
	$("ul.tabs").tabs("div.panes > div");
	
});

function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'it',
    includedLanguages: 'en,fr,de,hr,ko,el,nl,ru,es'
  }, 'google_translate_element');
}
