	
	/*------------SCROLL-----------*/
	window.addEvent('domready', function(){
	var scroll = new Fx.Scroll('wrapper', {
		wait: false,
		duration: 2000,
		offset: {'x': -1, 'y': -0},
		transition: Fx.Transitions.Quad.easeInOut
	});

	$('link1').addEvent('click', function(event) {
		event = new Event(event).stop();
		scroll.toElement('index');
	});

	$('link2').addEvent('click', function(event) {
		event = new Event(event).stop();
		scroll.toElement('about');
	});

	$('link3').addEvent('click', function(event) {
		event = new Event(event).stop();
		scroll.toElement('company');
	});

	$('link4').addEvent('click', function(event) {
		event = new Event(event).stop();
		scroll.toElement('contacts');
	});
		});

/*------------STYLE-----------*/

window.addEvent('domready', function(){
var list = $$('.list');
var vox = $$('.vox');
list.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:300, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
			'margin-left': 0,
			'background-color': 'transparent',
			'color': '#fff'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'margin-left': 0,
			'background-color': 'transparent',
			'color': '#8c8c8c'
		});
	});
 
});

vox.each(function(element) {
 
	var fx = new Fx.Styles(element, {duration:350, wait:false});
 
	element.addEvent('mouseenter', function(){
		fx.start({
			'margin-left': 0,
			'background-color': 'transparent',
			color: '#fff'
		});
	});
 
	element.addEvent('mouseleave', function(){
		fx.start({
			'margin-left': 0,
			'background-color': 'transparent',
			'color': '#333'
		});
	});
 
});
});

/*------------Tips-----------*/
	window.addEvent('domready', function(){
		/* Tips 1 */
		var Tips1 = new Tips($$('.Tips1'));
		
		/* Tips 2 */
		var Tips2 = new Tips($$('.Tips2'), {
			initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 500, wait: false}).set(0);
			},
			onShow: function(toolTip) {
				this.fx.start(1);
			},
			onHide: function(toolTip) {
				this.fx.start(0);
			}
		});
		
		/* Tips 3 */
		var Tips3 = new Tips($$('.Tips3'), {
			showDelay: 400,
			hideDelay: 400,
			fixed: true
		});
		
		/* Tips 4 */
		var Tips4 = new Tips($$('.Tips4'), {
			className: 'custom'
		});
	});
	
	
/*------------Cambio CSS-----------*/
window.addEvent('domready', function(){
var path = 'css/';
var white, stile;
 
/* Style White*/
$('white').addEvent('click', function(e) {
	e = new Event(e).stop();
 
	if (white) white.remove();
	new Asset.css(path + 'white.css', {id: 'white'});
	white = $('white');
 
	$('log').setHTML('<a href="' + path + 'white.css">white.css<\/a><\/span>');
});
 

 
/* Style Base */
$('stile').addEvent('click', function(e) {
	e = new Event(e).stop();
 
	if (stile) stile.remove();
	new Asset.css(path + 'stile.css', {id: 'stile'});
	stile = $('stile');
 
	$('log').setHTML('<a href="' + path + 'stile.css">stile.css<\/a><\/span>');
});

});
