var ytsejamkr = {
	texts: function() 
	{
		$$('#texts').each(function(el){
			new Accordion(el.getElements('p.more1 a'), el.getElements('div.complete1'), {show: -1, fps: 50, onActive: function(){ el.getElements('p.more1 a').addClass('close'); el.getElements('p.more1 a').setText('Chiudi'); }, onBackground: function(){ el.getElements('p.more1 a').removeClass('close'); el.getElements('p.more1 a').setText('Continua...'); }, alwaysHide: true});
		});
		
		$$('#texts').each(function(el){
			new Accordion(el.getElements('p.archivio_d a'), el.getElements('div.archivio_d'), {show: -1, fps: 50, onActive: function(){ el.getElements('p.archivio_d a').addClass('close'); el.getElements('p.archivio_d a').setText('Chiudi'); }, onBackground: function(){ el.getElements('p.archivio_d a').removeClass('close'); el.getElements('p.archivio_d a').setText('Archivio..'); }, alwaysHide: true});
		});

		$$('#texts').each(function(el){
			new Accordion(el.getElements('p.archivio_n a'), el.getElements('div.archivio_n'), {show: -1, fps: 50, onActive: function(){ el.getElements('p.archivio_n a').addClass('close'); el.getElements('p.archivio_n a').setText('Chiudi'); }, onBackground: function(){ el.getElements('p.archivio_n a').removeClass('close'); el.getElements('p.archivio_n a').setText('Archivio..'); }, alwaysHide: true});
		});
				
	},

	init: function() {
		this.texts();
		new SmoothScroll();
	}
};

window.onDomReady(ytsejamkr.init.bind(ytsejamkr));