$(document).ready(function() {
	/*gestione animazione */
	var myAlien = new AlienAnimation();
	window['myAlien'] = myAlien;
	$( "#slider" ).slider({
			
			value:300,
			min: 0,
			max: 500,
			step: 100,
			slide: function( event, ui ) {
				switch(ui.value){
					case 0: 	myAlien.goToVintage();break;
					case 100: myAlien.goToAltroieri();	break;
					case 200: myAlien.goToIeri(); break;
					case 300: myAlien.goToOggi();	break;
					case 400: myAlien.goToDomani();break;
					case 500: myAlien.goToDopodomani();break;	
				}
			}
		});
	
	$('#vintage').click(function(){		 $( "#slider" ).slider('value', 0);	myAlien.goToVintage();		});  	
   	$('#altroieri').click(function(){		$( "#slider" ).slider('value', 100); 	myAlien.goToAltroieri();		}); 
	$('#ieri').click(function(){			$( "#slider" ).slider('value', 200);	myAlien.goToIeri();			}); 
	$('#oggi').click(function(){			$( "#slider" ).slider('value', 300);	myAlien.goToOggi();			});
	$('#domani').click(function(){		$( "#slider" ).slider('value', 400);	myAlien.goToDomani();		});
	$('#dopodomani').click(function(){		$( "#slider" ).slider('value', 500);	myAlien.goToDopodomani();	});
	$('#help').animate({opacity :1}, 2000);
});
bounce = 1;
function myBounce(){
	  $('#ponyContainer').animate({top:"-=4px"},150).animate({top:"+=4px"},150);
      }

function AlienAnimation() {
    this.visibleElement = new Array;
    this.invisibleElement = new Array;
    this.animationTime = 2000;
    this.easing = 'easeOutBounce'
    this.disappearTime = 100;
    this.disappearEasing = 'linear';
 	this.timerId = null;
 	this.song = null;
    
    this.goToDomani= function(){
    		this.stopPony();
    		$('#help').animate({opacity :0}, this.disappearTime, this.disappearEasing);
    		$('#azienda').stop().animate({     	left: '550',  		top:'230', 	width: '168',  	height: '92'		}, this.animationTime,this.easing );
		$('#banner').stop().animate({     	left: '81',  		top:'297', 	width: '107',  	height: '20'		}, this.animationTime,this.easing );
		$('#bdv').stop().animate({     		left: '90',  		top:'100', 	width: '196',  	height: '19'		}, this.animationTime,this.easing );
		$('#carta').stop().animate({     	left: '13',  		top:'339', 	width: '211',  	height: '22'		}, this.animationTime,this.easing );
		$('#cdrom').stop().animate({     	left: '29',  		top:'255', 	width: '109',  	height: '10'		}, this.animationTime,this.easing );
		$('#no_multimedia').stop().animate({ left: '10',  		top:'250', 	width: '125',  	height: '20'		}, this.animationTime,this.easing );
		$('#ecommerce').stop().animate({     left: '763',  		top:'220', 	width: '181',  	height: '32'		}, this.animationTime,this.easing );
		$('#email').stop().animate({     	left: '588',  		top:'4', 	   	width: '184',  	height: '23'		}, this.animationTime,this.easing );
		$('#geo').stop().animate({     		left: '747',  		top:'258', 	width: '181',  	height: '32'		}, this.animationTime,this.easing );
		$('#immcoord').stop().animate({     	left: '600',  		top:'328', 	width: '349',  	height: '38'		}, this.animationTime,this.easing );
		$('#logo').stop().animate({     	left: '660',  		top:'155', 	width: '124',  	height: '54'		}, this.animationTime,this.easing );
		$('#merchandise').stop().animate({   left: '242',  		top:'343', 	width: '168',  	height: '26'		}, this.animationTime,this.easing );
		$('#mobile').stop().animate({     	left: '700',  		top:'98', 	width: '244',  	height: '50'		}, this.animationTime,this.easing );
		$('#motori').stop().animate({     	left: '8',  		top:'44', 	width: '224',  	height: '49'		}, this.animationTime,this.easing );
		$('#passaparola').stop().animate({   left: '349',  		top:'135', 	width: '250',  	height: '87'		}, this.animationTime,this.easing );
		$('#ppc').stop().animate({     		left: '305',  		top:'283', 	width: '170',  	height: '34'		}, this.animationTime,this.easing );
		$('#qr').stop().animate({     		left: '838',  		top:'11', 	width: '110',  	height: '41'		}, this.animationTime,this.easing );
		$('#radio').stop().animate({     	left: '154',  		top:'0', 	   	width: '138',  	height: '30'		}, this.animationTime,this.easing );
		$('#seo').stop().animate({     		left: '609',  		top:'40', 	width: '151',  	height: '70'		}, this.animationTime,this.easing );
		$('#sito').stop().animate({     	left: '124',  		top:'138', 	width: '216',  	height: '81'		}, this.animationTime,this.easing );
		$('#sms').stop().animate({     		left: '600',  		top:'127', 	width: '42,',  	height: '19'		}, this.animationTime,this.easing );
		$('#socialnetworks').stop().animate({ left: '222',  	top:'218', 	width: '347',  	height: '49'		}, this.animationTime,this.easing );
		$('#tv').stop().animate({     		left: '453',  		top:'343', 	width: '66',  		height: '17'		}, this.animationTime,this.easing );
		$('#viral').stop().animate({     	left: '310',  		top:'32', 	width: '229',  	height: '32'		}, this.animationTime,this.easing );
		$('#youtube').stop().animate({     	left: '421',  		top:'68', 	width: '142',  	height: '73'		}, this.animationTime,this.easing );
		$('#fff_blue').stop().animate({     	left: '260',  		top:'260', 	width: '50',  		height: '30'		}, this.animationTime,this.easing );
		$('#ff_blue').stop().animate({     	left: '355',  		top:'58', 	width: '62',  		height: '53'		}, this.animationTime,this.easing );
		$('#f_blue').stop().animate({     	left: '820',  		top:'130', 	width: '0',  	height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#f_green').stop().animate({     	left: '850',  		top:'50', 	width: '45',  		height: '45'		}, this.animationTime,this.easing );
		$('#ff_green').stop().animate({     	left: '680',  		top:'280', 	width: '102',  	height: '42'		}, this.animationTime,this.easing );
		$('#ff_green').stop().animate({     	left: '680',  		top:'280', 	width: '102',  	height: '42'		}, this.animationTime,this.easing );
		$('#qmw_1').stop().animate({     	left: '782',		top:'23', 	width: '34',  		height: '58'		}, this.animationTime,this.easing );
		$('#qmw_2').stop().animate({		left: '600',		top:'170', 	width: '37',  		height: '60'		}, this.animationTime,this.easing );
		$('#qmw_3').stop().animate({		left: '812',		top:'290', 	width: '19',  		height: '32'		}, this.animationTime,this.easing );
		$('#qmw_4').stop().animate({		left: '160',		top:'235', 	width: '28',  		height: '48'		}, this.animationTime,this.easing );
		$('#qmy_1').stop().animate({		left: '11', 		top:'128', 	width: '107',  	height: '111'		}, this.animationTime,this.easing );
		$('#qmy_2').stop().animate({		left: '822',		top:'143', 	width: '72',  		height: '75'		}, this.animationTime,this.easing );
		$('#qmy_3').stop().animate({		left: '293',		top:'74', 	width: '62',  		height: '64'		}, this.animationTime,this.easing );
		$('#ffff_blue').stop().animate({     	left: '243',  		top:'226', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#fff_green').stop().animate({     	left: '790',  		top:'280', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
   		$('#pony').stop().animate({     	left: '950',  		top:'0', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		
   	}
   
   	this.goToDopodomani= function(){
   		this.stopPony();
   		$('#help').animate({opacity :0}, this.disappearTime, this.disappearEasing);
   		$('#azienda').stop().animate({     	left: '550',  		top:'230', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#banner').stop().animate({     	left: '81',  		top:'297', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#bdv').stop().animate({     		left: '90',  		top:'100', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#carta').stop().animate({     	left: '13',  		top:'339', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#cdrom').stop().animate({     	left: '29',  		top:'255', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#no_multimedia').stop().animate({ left: '10',  		top:'250', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#ecommerce').stop().animate({     left: '763',  		top:'220', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#email').stop().animate({     	left: '588',  		top:'4', 	   	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#geo').stop().animate({     		left: '747',  		top:'258', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#immcoord').stop().animate({     	left: '600',  		top:'328', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#logo').stop().animate({     	left: '660',  		top:'155', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#merchandise').stop().animate({   left: '242',  		top:'343', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#mobile').stop().animate({     	left: '700',  		top:'98', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#motori').stop().animate({     	left: '8',  		top:'44', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#passaparola').stop().animate({   left: '349',  		top:'135', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#ppc').stop().animate({     		left: '305',  		top:'283', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#qr').stop().animate({     		left: '838',  		top:'11', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#radio').stop().animate({     	left: '154',  		top:'0', 	   	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#seo').stop().animate({     		left: '609',  		top:'40', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#sito').stop().animate({     	left: '124',  		top:'138', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#sms').stop().animate({     		left: '600',  		top:'127', 	width: '0,',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#socialnetworks').stop().animate({ left: '222',  	top:'218', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#tv').stop().animate({     		left: '640',  		top:'330', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#viral').stop().animate({     	left: '310',  		top:'32', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#youtube').stop().animate({     	left: '421',  		top:'68', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#fff_blue').stop().animate({     	left: '260',  		top:'260', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#ff_blue').stop().animate({     	left: '355',  		top:'58', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#f_blue').stop().animate({     	left: '820',  		top:'130', 	width: '0',  	height: '0'		}, this.disappearTime, this.disappeardisappearEasing);
		$('#f_green').stop().animate({     	left: '850',  		top:'50', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#ff_green').stop().animate({     	left: '680',  		top:'280', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#ff_green').stop().animate({     	left: '680',  		top:'280', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		
		
		
		$('#qmw_1').stop().animate({     	left: '782',		top:'23', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#qmw_2').stop().animate({		left: '600',		top:'170', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#qmw_3').stop().animate({		left: '812',		top:'290', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#qmw_4').stop().animate({		left: '160',		top:'235', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#qmy_1').stop().animate({		left: '11', 		top:'128', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#qmy_2').stop().animate({		left: '822',		top:'143', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#qmy_3').stop().animate({		left: '293',		top:'74', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
    		$('#ffff_blue').stop().animate({     	left: '243',  		top:'226', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );				
   		$('#fff_green').stop().animate({     	left: '790',  		top:'280', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
   		
   		
		this.movePony();
		
		
		/*$('#pony').stop().animate({     	left: '250',		top:'10', 	width: '442',  		height: '350'		}, 3000, 'swing', function(){
			timerId = setTimeout( 'window.myAlien.returnPony()', 3000 );
		});*/
   			
   	}
   	
   	this.movePony = function(){
   		this.song = document.createElement('audio');
		this.song.setAttribute('src', 'audio/scifi.ogg');
		this.song.load()
		 this.song.play();
		   		
   		this.timerId=setInterval("myBounce()",300);
		
   		$('#pony').animate({     	left: '250',		top:'10', 	width: '442',  		height: '350'		}, 3000, 'swing')
		.animate({     	left: '250',		top:'10', 	width: '442',  		height: '350'		}, 3000, 'swing')
		.animate({     	left: '0',		top:'0', 	width: '0',  		height: '0'		}, 1000, 'swing', function(){
			$('#pony').css({ 'left': '950px'}); 
			$( "#slider" ).slider('value', 300);
   			window.myAlien.goToOggi();
   			clearInterval(this.timerId);	
		});		
   	}
   	this.stopPony = function(){
   		$('#pony').clearQueue("fx");
   		$('#pony').css({ 'left': '950px',  width: '0',  		height: '0'});
   		if(this.song != null){
   			this.song.pause();
   			this.song = null;
   		}
   		 
   		clearInterval(this.timerId);
   	}
   	 /*this.returnPony=function(){.animate({    width: '0',  		height: '0'		}, 100,this.disappearEasing )
   		clearTimeout(this.timerId);
   		$('#pony').stop().animate({     	left: '0',		top:'0', 	width: '0',  		height: '0'		}, 1000, 'swing' ,function(){ 
   			$('#pony').css({ 'left': '950px'}); 
   			bounce = 0;	
   			
   			$( "#slider" ).slider('value', 300);
   			window.myAlien.goToOggi();	
   			
   		});
}*/


   	this.goToVintage= function(){
   		this.stopPony();
   		$('#help').animate({opacity :0}, this.disappearTime, this.disappearEasing);
   		$('#azienda').stop().animate({     left: '417',  		top:'160', 	   	width: '168',  	height: '92'		}, this.animationTime,this.easing );
						$('#banner').stop().animate({     	left: '250',  		top:'20', 	   	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#bdv').stop().animate({     	left: '50',  		top:'80', 	   	width: '349',  	height: '33'		}, this.animationTime,this.easing );
		$('#carta').stop().animate({     	left: '13',  		top:'330', 		width: '439',  	height: '45'		}, this.animationTime,this.easing );
						$('#cdrom').stop().animate({     	left: '50',  		top:'220', 		width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#no_multimedia').stop().animate({ left: '13',  		top:'240', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#ecommerce').stop().animate({     left: '787',  		top:'195', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#email').stop().animate({     	left: '700',  		top:'27', 	   	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#geo').stop().animate({     		left: '747',  		top:'258', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#immcoord').stop().animate({     	left: '480',  		top:'320', 	width: '475',  	height: '52'		}, this.animationTime,this.easing );
		$('#logo').stop().animate({     	left: '700',  		top:'190', 	width: '124',  	height: '54'		}, this.animationTime,this.easing );
						$('#merchandise').stop().animate({   left: '310',  	top:'330', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#mobile').stop().animate({     	left: '713',  		top:'98', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#motori').stop().animate({     	left: '380',  		top:'50', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#passaparola').stop().animate({   left: '85',  		top:'150', 	width: '250',  	height: '87'		}, this.animationTime,this.easing );
						$('#ppc').stop().animate({     		left: '315',  		top:'273', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#qr').stop().animate({     		left: '838',  		top:'11', 	width: '0',  		height: '0'	}, this.disappearTime,this.disappearEasing );
		$('#radio').stop().animate({     	left: '600',  		top:'65', 	   	width: '225',  	height: '49'		}, this.animationTime,this.easing );
						$('#seo').stop().animate({     		left: '680',  		top:'70', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#sito').stop().animate({     	left: '347',  		top:'148', 		width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#sms').stop().animate({     	left: '690',  		top:'135', 		width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#socialnetworks').stop().animate({ left: '372',  	top:'218', 	width: '0',  	height: '0'		}, this.disappearTime,this.easing );
		$('#tv').stop().animate({     	left: '90',  		top:'260', 		width: '172',  	height: '45'		}, this.animationTime,this.easing );
						$('#viral').stop().animate({     	left: '310',  		top:'12', 	width: '0',  	height: '0'			}, this.disappearTime,this.disappearEasing );
						$('#youtube').stop().animate({     	left: '490',  		top:'16', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#fff_blue').stop().animate({     	left: '260',  		top:'260', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#ff_blue').stop().animate({     	left: '330',  		top:'120', 	width: '93',  	height: '96'		}, this.animationTime,this.easing );
		$('#f_blue').stop().animate({     	left: '330',  		top:'245', 	width: '80',  	height: '80'		}, this.animationTime,this.easing );
		$('#f_green').stop().animate({     	left: '550',  		top:'102', 	width: '65',  		height: '65'		}, this.animationTime,this.easing );
		$('#fff_green').stop().animate({     	left: '590',  		top:'240', 	width: '75',  		height: '82'		}, this.animationTime,this.easing );
		
						$('#ff_green').stop().animate({     	left: '780',  		top:'230', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
						$('#qmw_1').stop().animate({     	left: '782',		top:'23', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
						$('#qmw_2').stop().animate({		left: '600',		top:'170', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmw_3').stop().animate({		left: '812',		top:'290', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmw_4').stop().animate({		left: '160',		top:'235', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmy_1').stop().animate({		left: '11', 		top:'128', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmy_2').stop().animate({		left: '822',		top:'143', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmy_3').stop().animate({		left: '293',		top:'74', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#ffff_blue').stop().animate({   left: '170',  		top:'245', 	width: '0',  		height: '60'		}, this.disappearTime,this.disappearEasing );
						$('#pony').stop().animate({     	left: '950',  		top:'0', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
	
   	}
	this.goToAltroieri= function(){
		this.stopPony();
		$('#help').animate({opacity :0}, this.disappearTime, this.disappearEasing);
		$('#azienda').stop().animate({     left: '617',  		top:'210', 	   	width: '168',  	height: '92'		}, this.animationTime,this.easing );
		$('#banner').stop().animate({     	left: '250',  		top:'20', 	   	width: '161',  	height: '30'		}, this.animationTime,this.easing );
		$('#bdv').stop().animate({     	left: '50',  		top:'66', 	   	width: '278',  	height: '26'		}, this.animationTime,this.easing );
		$('#carta').stop().animate({     	left: '13',  		top:'300', 		width: '310',  	height: '32'		}, this.animationTime,this.easing );
		$('#cdrom').stop().animate({     	left: '50',  		top:'220', 		width: '210',  	height: '20'		}, this.animationTime,this.easing );
						$('#no_multimedia').stop().animate({ left: '13',  		top:'240', 	width: '0',  	height: '0'		}, this.disappearTime,this.easing );
						$('#ecommerce').stop().animate({     left: '787',  		top:'195', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#email').stop().animate({     	left: '700',  		top:'27', 	   	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#geo').stop().animate({     		left: '747',  		top:'258', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#immcoord').stop().animate({     	left: '600',  		top:'328', 	width: '349',  	height: '38'		}, this.animationTime,this.easing );
		$('#logo').stop().animate({     	left: '835',  		top:'170', 	width: '124',  	height: '54'		}, this.animationTime,this.easing );
		$('#merchandise').stop().animate({   left: '310',  	top:'330', 	width: '236',  	height: '40'		}, this.animationTime,this.easing );
						$('#mobile').stop().animate({     	left: '713',  		top:'98', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#motori').stop().animate({     	left: '380',  		top:'50', 	width: '268',  	height: '59'		}, this.animationTime,this.easing );
		$('#passaparola').stop().animate({   left: '85',  		top:'113', 	width: '250',  	height: '87'		}, this.animationTime,this.easing );
						$('#ppc').stop().animate({     		left: '315',  		top:'273', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
						$('#qr').stop().animate({     		left: '838',  		top:'11', 	width: '0',  		height: '0'	}, this.disappearTime,this.disappearEasing );
		$('#radio').stop().animate({     	left: '694',  		top:'45', 	   	width: '174',  	height: '38'		}, this.animationTime,this.easing );
						$('#seo').stop().animate({     		left: '680',  		top:'70', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#sito').stop().animate({     	left: '347',  		top:'148', 		width: '269',  	height: '106'		}, this.animationTime,this.easing );
		$('#sms').stop().animate({     	left: '690',  		top:'135', 		width: '80',  		height: '33'		}, this.animationTime,this.easing );
						$('#socialnetworks').stop().animate({ left: '372',  	top:'218', 	width: '0',  	height: '0'		}, this.disappearTime,this.easing );
		$('#tv').stop().animate({     	left: '370',  		top:'280', 		width: '123',  	height: '32'		}, this.animationTime,this.easing );
						$('#viral').stop().animate({     	left: '310',  		top:'12', 	width: '0',  	height: '0'			}, this.disappearTime,this.disappearEasing );
						$('#youtube').stop().animate({     	left: '490',  		top:'16', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#fff_blue').stop().animate({     	left: '260',  		top:'260', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#ff_blue').stop().animate({     	left: '540',  		top:'245', 	width: '74',  	height: '62'		}, this.animationTime,this.easing );
						$('#f_blue').stop().animate({     	left: '820',  		top:'130', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#f_green').stop().animate({     	left: '510',  		top:'97', 	width: '65',  		height: '65'		}, this.animationTime,this.easing );
		$('#fff_green').stop().animate({     	left: '790',  		top:'280', 	width: '75',  		height: '52'		}, this.animationTime,this.easing );
		
						$('#ff_green').stop().animate({     	left: '780',  		top:'230', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
						$('#qmw_1').stop().animate({     	left: '782',		top:'23', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
						$('#qmw_2').stop().animate({		left: '600',		top:'170', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmw_3').stop().animate({		left: '812',		top:'290', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmw_4').stop().animate({		left: '160',		top:'235', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmy_1').stop().animate({		left: '11', 		top:'128', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmy_2').stop().animate({		left: '822',		top:'143', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
						$('#qmy_3').stop().animate({		left: '293',		top:'74', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#ffff_blue').stop().animate({     	left: '170',  		top:'245', 	width: '67',  		height: '60'		}, this.animationTime,this.easing );
						$('#pony').stop().animate({     	left: '950',  		top:'0', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
	
	}
	this.goToOggi= function(){
		this.stopPony();
		$('#help').animate({opacity :0}, this.disappearTime, this.disappearEasing);
		$('#azienda').stop().animate({     	left: '550',  		top:'230', 	   	width: '168',  	height: '92'		}, this.animationTime,this.easing );
		$('#banner').stop().animate({     	left: '81',  		top:'290', 	   	width: '115',  	height: '22'		}, this.animationTime,this.easing );
		$('#bdv').stop().animate({     	left: '127',  		top:'96', 	   			width: '233',  	height: '22'		}, this.animationTime,this.easing );
		$('#carta').stop().animate({     	left: '13',  		top:'339', 	width: '211',  	height: '22'		}, this.animationTime,this.easing );
		$('#cdrom').stop().animate({     	left: '29',  		top:'255', 	width: '109',  	height: '10'		}, this.animationTime,this.easing );
		$('#no_multimedia').stop().animate({ left: '10',  		top:'250', 	width: '125',  	height: '20'		}, this.animationTime,this.easing );
		$('#ecommerce').stop().animate({     left: '763',  		top:'192', 	width: '181',  	height: '32'		}, this.animationTime,this.easing );
		$('#email').stop().animate({     	left: '588',  		top:'4', 	   	width: '184',  	height: '23'		}, this.animationTime,this.easing );
		$('#geo').stop().animate({     		left: '747',  		top:'258', 	width: '181',  	height: '32'		}, this.animationTime,this.easing );
		$('#immcoord').stop().animate({     	left: '600',  		top:'328', 	width: '349',  	height: '38'		}, this.animationTime,this.easing );
		$('#logo').stop().animate({     	left: '604',  		top:'159', 	width: '124',  	height: '54'		}, this.animationTime,this.easing );
		$('#merchandise').stop().animate({   left: '242',  		top:'343', 	width: '168',  	height: '26'		}, this.animationTime,this.easing );
		$('#mobile').stop().animate({     	left: '713',  		top:'98', 	width: '226',  	height: '46'		}, this.animationTime,this.easing );
		$('#motori').stop().animate({     	left: '8',  		top:'44', 	width: '224',  	height: '49'		}, this.animationTime,this.easing );
		$('#passaparola').stop().animate({   left: '309',  		top:'127', 	width: '250',  	height: '87'		}, this.animationTime,this.easing );
		$('#ppc').stop().animate({     		left: '305',  		top:'283', 	width: '170',  	height: '34'		}, this.animationTime,this.easing );
		$('#qr').stop().animate({     		left: '838',  		top:'11', 	width: '91',  		height: '33'		}, this.animationTime,this.easing );
		$('#radio').stop().animate({     	left: '154',  		top:'0', 	   	width: '138',  	height: '30'		}, this.animationTime,this.easing );
		$('#seo').stop().animate({     		left: '609',  		top:'40', 	width: '151',  	height: '70'		}, this.animationTime,this.easing );
		$('#sito').stop().animate({     	left: '24',  		top:'128', 	width: '269',  	height: '106'		}, this.animationTime,this.easing );
		$('#sms').stop().animate({     		left: '580',  		top:'127', 	width: '42,',  	height: '19'		}, this.animationTime,this.easing );
		$('#socialnetworks').stop().animate({ left: '222',  	top:'218', 	width: '347',  	height: '49'		}, this.animationTime,this.easing );
		$('#tv').stop().animate({     		left: '453',  		top:'343', 	width: '77',  		height: '20'		}, this.animationTime,this.easing );
		$('#viral').stop().animate({     	left: '310',  		top:'12', 	width: '229',  	height: '32'		}, this.animationTime,this.easing );
		$('#youtube').stop().animate({     	left: '441',  		top:'58', 	width: '142',  	height: '73'		}, this.animationTime,this.easing );
		$('#fff_blue').stop().animate({     	left: '260',  		top:'260', 	width: '50',  		height: '30'		}, this.animationTime,this.easing );
		$('#ff_blue').stop().animate({     	left: '345',  		top:'38', 	width: '100',  	height: '83'		}, this.animationTime,this.easing );
		$('#f_blue').stop().animate({     	left: '820',  		top:'130', 	width: '100',  	height: '80'		}, this.animationTime,this.easing );
		$('#f_green').stop().animate({     	left: '850',  		top:'50', 	width: '45',  		height: '45'		}, this.animationTime,this.easing );
		$('#ff_green').stop().animate({     	left: '680',  		top:'280', 	width: '102',  	height: '42'		}, this.animationTime,this.easing );
		$('#qmw_1').stop().animate({     	left: '782',		top:'23', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
		$('#qmw_2').stop().animate({		left: '600',		top:'170', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmw_3').stop().animate({		left: '812',		top:'290', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmw_4').stop().animate({		left: '160',		top:'235', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmy_1').stop().animate({		left: '11', 		top:'128', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmy_2').stop().animate({		left: '822',		top:'143', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmy_3').stop().animate({		left: '293',		top:'74', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#ffff_blue').stop().animate({     	left: '243',  		top:'226', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );				
   		$('#fff_green').stop().animate({     	left: '790',  		top:'280', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
		$('#pony').stop().animate({     	left: '950',  		top:'0', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
	
	}
	this.goToIeri= function(){
		this.stopPony();
		$('#help').animate({opacity :0}, this.disappearTime, this.disappearEasing);
		$('#azienda').stop().animate({     	left: '617',  		top:'210', 	   	width: '168',  	height: '92'		}, this.animationTime,this.easing );
		$('#banner').stop().animate({     	left: '81',  		top:'275', 	   	width: '115',  	height: '22'		}, this.animationTime,this.easing );
		$('#bdv').stop().animate({     	left: '275',  		top:'96', 	   			width: '233',  	height: '22'		}, this.animationTime,this.easing );
		$('#carta').stop().animate({     	left: '13',  		top:'315', 	width: '268',  	height: '28'		}, this.animationTime,this.easing );
		$('#cdrom').stop().animate({     	left: '29',  		top:'240', 	width: '164',  	height: '15'		}, this.animationTime,this.easing );
		$('#no_multimedia').stop().animate({ left: '13',  		top:'240', 	width: '180',  	height: '25'		}, this.animationTime,this.easing );
		$('#ecommerce').stop().animate({     left: '787',  		top:'195', 	width: '181',  	height: '32'		}, this.animationTime,this.easing );
		$('#email').stop().animate({     	left: '700',  		top:'27', 	   	width: '269',  	height: '34'		}, this.animationTime,this.easing );
		$('#geo').stop().animate({     		left: '747',  		top:'258', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#immcoord').stop().animate({     	left: '600',  		top:'328', 	width: '349',  	height: '38'		}, this.animationTime,this.easing );
		$('#logo').stop().animate({     	left: '835',  		top:'120', 	width: '124',  	height: '54'		}, this.animationTime,this.easing );
		$('#merchandise').stop().animate({   left: '252',  		top:'343', 	width: '200',  	height: '34'		}, this.animationTime,this.easing );
		$('#mobile').stop().animate({     	left: '713',  		top:'98', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#motori').stop().animate({     	left: '8',  		top:'44', 	width: '254',  	height: '56'		}, this.animationTime,this.easing );
		$('#passaparola').stop().animate({   left: '320',  		top:'127', 	width: '250',  	height: '87'		}, this.animationTime,this.easing );
		$('#ppc').stop().animate({     		left: '315',  		top:'273', 	width: '213',  	height: '43'		}, this.animationTime,this.easing );
		$('#qr').stop().animate({     		left: '838',  		top:'11', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#radio').stop().animate({     	left: '300',  		top:'27', 	   	width: '138',  	height: '30'		}, this.animationTime,this.easing );
		$('#seo').stop().animate({     		left: '680',  		top:'70', 	width: '151',  	height: '70'		}, this.animationTime,this.easing );
		$('#sito').stop().animate({     	left: '24',  		top:'128', 	width: '269',  	height: '106'		}, this.animationTime,this.easing );
		$('#sms').stop().animate({     		left: '590',  		top:'135', 	width: '65',  	height: '27'		}, this.animationTime,this.easing );
		$('#socialnetworks').stop().animate({ left: '372',  	top:'218', 	width: '220',  	height: '31'		}, this.animationTime,this.easing );
		$('#tv').stop().animate({     		left: '470',  		top:'335', 	width: '101',  		height: '26'		}, this.animationTime,this.easing );
		$('#viral').stop().animate({     	left: '310',  		top:'12', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#youtube').stop().animate({     	left: '490',  		top:'16', 	width: '166',  	height: '86'		}, this.animationTime,this.easing );
		$('#fff_blue').stop().animate({     	left: '260',  		top:'260', 	width: '0',  		height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#ff_blue').stop().animate({     	left: '520',  		top:'243', 	width: '74',  	height: '62'		}, this.animationTime,this.easing );
		$('#f_blue').stop().animate({     	left: '820',  		top:'130', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
		$('#f_green').stop().animate({     	left: '710',  		top:'140', 	width: '65',  		height: '65'		}, this.animationTime,this.easing );
		$('#ff_green').stop().animate({     	left: '780',  		top:'230', 	width: '120',  	height: '47'		}, this.animationTime,this.easing );
		$('#qmw_1').stop().animate({     	left: '782',		top:'23', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
		$('#qmw_2').stop().animate({		left: '600',		top:'170', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmw_3').stop().animate({		left: '812',		top:'290', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmw_4').stop().animate({		left: '160',		top:'235', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmy_1').stop().animate({		left: '11', 		top:'128', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmy_2').stop().animate({		left: '822',		top:'143', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#qmy_3').stop().animate({		left: '293',		top:'74', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing);
		$('#ffff_blue').stop().animate({     	left: '243',  		top:'226', 	width: '67',  		height: '69'		}, this.animationTime,this.easing );
		$('#fff_green').stop().animate({     	left: '790',  		top:'280', 	width: '0',  		height: '0'		}, this.disappearTime, this.disappearEasing );
		$('#pony').stop().animate({     	left: '950',  		top:'0', 	width: '0',  	height: '0'		}, this.disappearTime,this.disappearEasing );
	
	}
}

