Window.addEvent('domready', function() {

// INIZIO PORTALE

new SmoothScroll(); //Scorrimento anchor
var Active_Sez = window.getQueryStringValue('C');	// legge la categoria attiva per il menu accordion DA FARE
 

//Mostra-Nascondi Menu SX

//Accordion Menu SX
var accordion = new Accordion('h3.atStart', 'div.atStart', {
	opacity: false,
	onActive: function(toggler, element){
		toggler.setStyle('color', '#CC0000');
	},
 
	onBackground: function(toggler, element){
		toggler.setStyle('color', '#222');
	}
}, $('accordion'));
//Accordion Menu SX
var accordion_elementi = new Accordion('h3.atStart2', 'div.atStart2', {
	opacity: false,
	duration: 200,
	onActive: function(toggler, element){
		toggler.setStyle('font-weight', 'normal');
	},
 
	onBackground: function(toggler, element){
		toggler.setStyle('font-weight', 'normal');
	}
}, $('accordion_elementi'));
accordion_elementi.display(-1);
//Tool tips
var Tips3 = new Tips($$('.Tips3'), {
	initialize:function(){
		this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 300, wait: false}).set(0);
	},
	onShow: function(toolTip) {
		this.fx.start(1);
	},
	onHide: function(toolTip) {
		this.fx.start(0);
	},
	showDelay: 1000,
	hideDelay: 100,
	className: 'custom',
	fixed: false
});
var list = $$('h3.atStart2');
list.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:300, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
			'color': '#0000FF'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'color': '#333'
		});
	});
 
});		
//Apre accordion su categoria corrente
var Cat = window.getQueryStringValue('M');

if (Cat == null) Cat = 1;
accordion.display(Cat-1);
 
});
//in evidenza
function initScrollerMoo(){
	var myscrollerMoo = new scrollerMoo($('myScrollerMoo'));		        
}
window.onDomReady(initScrollerMoo);

