// JavaScript Document
 function init(){
	 
	 
	 
	$('li.fancy a').fancybox({
						   
'hideOnContentClick': false, 
'frameWidth': 980,
		   					'frameHeight': 560 });
	 
	 
$('.footer a.popup').fancybox({

'hideOnContentClick': false, 
'frameWidth': 640,
		   					'frameHeight': 430 });

$('a.popup').fancybox({

'hideOnContentClick': false, 
'frameWidth': 390,
		   					'frameHeight': 300 });



$(' a.popup2').fancybox({

'hideOnContentClick': false, 
'frameWidth': 680,
		   					'frameHeight': 500 });



$('.hp .testo').jScrollPane();
$('.txt2').jScrollPane();
$('.txt').jScrollPane();
$(" #piu a").fancybox();
$("#menu_hp span").hide();

$("#menu_hp img").fadeTo("fast", 0.4); 
$("#menu2 img.roll").fadeTo("fast", 0.4); 



$("#menu_hp img").hover(

 function()
 {

$(this).next().fadeIn();

 

 
 },
 function()
 {
	$(this).next().fadeOut();
 }
);

<!-------------------------------------immagine rollover  HP------------>
$("#menu_hp img").hover(

 function()
 {

 this.src = this.src.replace("_off","_roll");
 
 

 
 },
 function()
 {

 
  this.src = this.src.replace("_roll","_off");}

);

<!-------------------------------------immagine rollover  NOHP------------>



$("#menu2 img.roll").hover(

 function()
 {
  if ( $(this).parent().parent().attr('class') != 'attiva' ){
 this.src = this.src.replace("_off","_active");
 $("#menu2  li.attiva span").show();}
 

 
 },
 function()
 {
  if ( $(this).parent().parent().attr('class') != 'attiva' ){
 
  this.src = this.src.replace("_active","_off");}
 }
);



<!-------------------------------------immagine rollover  alpha------------>

$("#menu2 img.roll, #menu_hp img").hover  (

function(){	
 if ( $(this).parent().parent().attr('class') != 'attiva' ){
	$(this).fadeTo("fast", 1.0); 
	$(this).next().fadeIn();
}
},


function(){ 
 if ( $(this).parent().parent().attr('class') != 'attiva' ){

 	
	$(this).fadeTo("slow", 0.4);
	$(this).next().fadeOut();
	
	}

});

<!------------------------------------------------->



		


animatedcollapse.addDiv('menu_main', 'fade=0,speed=250,height=65px')
animatedcollapse.ontoggle=function($, divobj, state){ 
}
animatedcollapse.init();

}