function init(boxOpen){
	$(document).ready(function(){ 
		//-----> Fitted
		$(".extend_anchor").fitted();		
		//-----> SELECT STYLE
		$("#box form select").sSelect({ objWidth:182 });
		//-----> BOX		
		$('#box:not(.notClose #box)').accordion({
			active: boxOpen, 
			header: 'li span',
			navigation: true,
			event: 'click',
			autoHeight: false,
			collapsible: true
		});			
		//-----> Accordion MENU SX	
		$('.sub-main').accordion({	
			active: 'li a.open', 
			header: 'li a.opensub-l1',
			navigation: false,
			event: 'click',
			autoHeight: false,
			collapsible: true
		});	
		$('.sub-l1').accordion({	
			active: 'li a.open', 
			header: 'li a.opensub-l2',
			navigation: false,
			event: 'click',
			autoHeight: false,
			collapsible: true
		});	
		$('.sub-l2').accordion({	
			active: 'li a.open', 
			header: 'li a.opensub-l3',
			navigation: false,
			event: 'click',
			autoHeight: false,
			collapsible: true
		});
		//-----> SELECT HREF
		$('#box form select').change(function(){		
			location.href=$(this).val();			
		});
		$('#box form').submit(function(){		
			location.href=$(this).attr("action");
			return false;
		});			
		//-----> FIX BORDER MENU SX
		$(".sub-l1 li:last-child .sub-l2, .sub-l1:last ").css('border-bottom',0); //fix border bottom menu_sx
		if($.browser.msie && parseInt($.browser.version) <= 6){
			$(".tabella tbody tr td:first-child,.tabella tfoot tr td:first-child").css("text-align","left");
			$(".tabella tbody tr td:first-child ,.tabella tfoot tr td:first-child ").css("width","auto");
		}
	});
	//-----> Shadowbox
	Shadowbox.init({ players: ["img","html","iframe"] });
}

//--- jCarouselLite --- 
function load_jCarouselLite(el,v,a,c){
	$(el+".cont-slide-gallery").prepend("<button class='prev'>prev</button> <button class='next'>next</button>");
	$(el+".cont-slide-gallery .slide-gallery").jCarouselLite({
		btnNext: el+" .next",
		btnPrev: el+" .prev",
		visible:v,
		easing:'easeInOutQuad',
		speed: 700,			
		auto: a,	
		circular: c					
	});		
}
//--- //jCarouselLite --- 
