
/* - javascripts.load.js - */
jq(function(){
	jq('ul.sf-menu').superfish({
		animation:{opacity:'show',height:'show'},
		speed:'fast',
		autoArrows: false
	});
});

jq(document).ready(function() {
	// toggles the slickbox on clicking the noted link
	jq('a#sitemap-hideshow').click(function() {
		jq('#sitemap-content').slideToggle('slow');
		obj = document.getElementById("sitemap-label"); 
		if (obj.className == "sitemapDown"){
			obj.className = "sitemapUp";
		}else{
			obj.className = "sitemapDown";
		}
		return false;
	});
	
	// tabs
	jq("#tabs").tabs();
	jq('#tabContainer').tabs({
        fx: {
            opacity: 'toggle',
            duration: 'fast'
            },
        selected:0,
    });
	
	// carousel
	jq('#carousel').jcarousel({
        visible: 1,
        scroll: 1
    });
	
	// sites
	jq('.singolo_sito a').each(function(){
		var content = '<img src="';
		content += jq(this).attr('rel');
		content += '" alt="Loading thumbnail..." height="65" width="105" /' + '>';
		jq(this).qtip({
			content: content,
			position: {
				corner: {
					tooltip: 'topMiddle',
					target: 'bottomMiddle'
				}
			},
			style: {
				tip: true, // Give it a speech bubble tip with automatic corner detection
			},
		});
	});
});



