


function showHide()
{
    if ($('#lineeList').is(":hidden")) {
      $('#lineeList').slideDown("fast");
    } else {
      $('#lineeList').slideUp("fast");
    }
}

function showHideBox(pref,id)
{
    if ($('#'+pref+id).is(":hidden")) {
    	$('.'+pref).slideUp("fast");
      $('#'+pref+id).slideDown("fast");
    } else {
      $('#'+pref+id).slideUp("fast");
    }
}

/* ------------------------------------------------------------------
// DOCUMENT READY
------------------------------------------------------------------ */
$(document).ready(function() {
	$('#pane1').jScrollPane();
	$('.popup').click(function (e) {
		e.preventDefault();
		//alert($(this).attr('href'))
		 $.ajax({
		   url: $(this).attr('href'),
		   success: function(msg){
		   	        //alert(msg)
		     		$(msg).modal();
		  $('#panePopup').jScrollPane();
		   }
		 });
		
      return false;
	});
	
	$('#flashIntro').html('');
	$('#flashIntro').flash({
    src: wwwRoot+'/comuni/swf/fastfinance.swf',
    width: 600,
    height: 350
})
	
$('#news').innerfade({
	speed: 1000,
	timeout: 4000,
	type: 'sequence',
	containerheight: '1em'
});
/*
$("#menu li").mouseover(function(){

	  if(1 == 1){
      $(this).animate({height: "63"}, 500, 'swing', function(){show = true;} );}
      
    }).mouseout(function(){
      //$(this).animate({height: "40"}, 500, 'swing', function(){show = false;}  );
    });
*/
    
})


