jQuery(function($){	init() 

		
	function init(){
	$('#newsitems').bxSlider({
		    mode: 'slide',
		    auto: 'true',
		    controls: false,
		    speed: 2500,
		    pause: 7000,
		    width: 630,
		    wrapper_class: 'news_wrap'
		}); 
	$("#top-left").accordion({fillSpace: true})	
	$("#top-right").accordion({fillSpace: true})	
	$("#menubar a").addClass('ui-state-default').css({'textShadow':"1px  1px 2px #000000"});
	
	

	$(".sidebar li a").hover(
		function(){ 
			$(this).addClass('ui-state-hover ui-corner-all').css({'border':"0", 'color':'#fff'})
		},
		function(){
			$(this).removeClass('ui-state-hover').css({'border':"0", 'color':'#2A404D'})
		}
	);
	
	
	
	$("#menubar a").hover(
		function(){ 
			$(this).removeClass('ui-state-default').addClass('ui-state-hover').css({'textShadow':"1px  1px 1px #fff"})
		},
		function(){
			$(this).removeClass('ui-state-hover').addClass('ui-state-default').css({'textShadow':"1px  1px 2px #000000"})
		}
	);
	
	$('#menubar ul li:first-child a').addClass('ui-corner-left')
	$('#menubar ul li:last-child a').addClass('ui-corner-right')

	$(".ui-widget").addClass('ds_boxshadow ui-corner-all').css({'padding':"2px"})
	$(".ui-widget h1").addClass('ui-widget-header ui-corner-top')
		//$('#wrap').height($(window).height)
		$('#content').height($('#wrap').height()-310)
		if ($.browser.ie && ($.browser.version.substr(0,3)=="7.0" || $.browser.version.substr(0,3)=="6.0")) {
	    
	
			$("<div>La tua versione del browser e' vecchia, aggiornala o usa Firefox per visualizzare correttamente il sito</div>").dialog({
				bgiframe: true,
				modal: true,
				buttons: {
					Ok: function() {
						$(this).dialog('close');
					}
				}
			});
		 }	
	}


});		