window.addEvent('domready', function(){ 
		var mySmoothScroll = new SmoothScroll({ duration:900 }, window);
		var tip1 = new Tips($$('.TipImg'), {
			initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 300, wait: false}).set(0);
			},
			onShow: function(toolTip) {
				this.fx.start(0.9);
			},
			onHide: function(toolTip) {
				this.fx.start(0);
			},
			/*fixed: true*/
		});
		var tip1 = new Tips($$('.TipText'), {
			initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 100, wait: false}).set(0);
			},
			onShow: function(toolTip) {
				this.fx.start(0.9);
			},
			onHide: function(toolTip) {
				this.fx.start(0);
			},
			/*fixed: true,*/
			offsets: {'x': -20, 'y': -60},
			className: 'tooltipHome'
		});

		var tip1 = new Tips($$('.TipNav'), {
			initialize:function(){
				this.fx = new Fx.Style(this.toolTip, 'opacity', {duration: 200, wait: false}).set(0);
			},
			onShow: function(toolTip) {
				this.fx.start(1);
			},
			onHide: function(toolTip) {
				this.fx.start(0);
			},
			offsets: {'x': -50, 'y': -110},
			className: 'toolNav'
		});
		//------------per prova-------------------//
		
		
function alertSize() {
	var myWidth = 0, myHeight = 0;
	if( typeof( window.innerWidth ) == 'number' ) {
		myWidth = window.innerWidth; myHeight = window.innerHeight;
	} else if( document.documentElement && ( document.documentElement.clientWidth ||document.documentElement.clientHeight ) ) {
		myWidth = document.documentElement.clientWidth; myHeight = document.documentElement.clientHeight;
	} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
		myWidth = document.body.clientWidth; myHeight = document.body.clientHeight;
	}
	window.alert( 'Width = ' + myWidth + ' and height = ' + myHeight );
}
function getScrollXY() {
	var scrOfX = 0, scrOfY = 0;
	if( typeof( window.pageYOffset ) == 'number' ) {
		scrOfY = window.pageYOffset; scrOfX = window.pageXOffset;
	} else if( document.body && ( document.body.scrollLeft || document.body.scrollTop ) ) {
		scrOfY = document.body.scrollTop; scrOfX = document.body.scrollLeft;
	} else if( document.documentElement && ( document.documentElement.scrollLeft || document.documentElement.scrollTop ) ) {
		scrOfY = document.documentElement.scrollTop; scrOfX = document.documentElement.scrollLeft;
	}
	window.alert( 'Horizontal scrolling = ' + scrOfX + '\nVertical scrolling = ' + scrOfY );
}
		$('.lefter').addEvent('click', function(){
			this.morph({
			'width':200,
			'margin-left':100
			});
		});
		$('.righter').addEvent('click', function(){
			this.morph({
			'width':0,
			'margin-left': 100
			});
		});
	});
