jQuery(document).ready(function() {

jQuery("a.fancybox").fancybox(); 

jQuery('#archive_vcar').accordion({ 
    autoheight: false,
    header: '.anno_tit'
}); 
 
jQuery(function () {
			var tabContainers = jQuery('div.tabs > div');
			tabContainers.hide().filter(':first').show();
			
			jQuery('div.tabs ul.tabNavigation a').click(function () {
				tabContainers.hide();
				tabContainers.filter(this.hash).show();
				jQuery('div.tabs ul.tabNavigation a').removeClass('selected');
				jQuery(this).addClass('selected');
				return false;
			}).filter(':first').click();
		});
   
	jQuery(".checkVC").click(function(){
			jQuery("#searchdiv-gg").hide();
			// CECCO VC
			jQuery("#vc1").attr('checked', true);
			jQuery("#searchdiv-vc").show();
	});
	
	jQuery(".checkGG").click(function(){
			jQuery("#searchdiv-vc").hide();
			// CECCO GG
			jQuery("#gg2").attr('checked', true);
			jQuery("#searchdiv-gg").show();
	});

	//restituisce il valore di href
	/*
	if (jQuery("a#post_title").attr("href"))
		{
		// Inserisco href sulle immagini dentro il post
		// mettor prima .prepend() e metto dopo .prependTo()
			post_url=jQuery("a#post_title").attr("href");
			jQuery("<a href='"+post_url+"'>").prepend("img#alignnone"); 
			jQuery("<a href='"+post_url+"'>").prependTo("img#alignnone"); 
			
		}
	*/
});