// JavaScript Document

				$(document).ready(function() {
										  
										   $("#chi_siamo").toggle(function(){
																		$(this).removeClass('pulsanti');
																		$("#titolo").html('<p class="titolo_chisiamo">CHI SIAMO</p>').css({borderBottom:'4px #cc3333 solid'});
																		
																		$("#foot_iris").css({backgroundColor:"#cc3333"});
																		
																		
																		$(".pulsanti").slideUp(100);
																		$("#chi_siamo a").html('<a>HOME</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"60",
																							  width:"280"
																							},1000);
																	$("#chi_siamo").animate({
																					"opacity":"1",
																					left:"195",
																					marginLeft:"-40",
																					width:"195"
																					},
																					1000).css({backgroundColor:"#cc3333"});
															
																 
														$("#box_chi").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"-200",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		return false;
																		   },function(){
																			   $("#titolo").html('<p class="titolo_home">HOME</p>').css({borderBottom:'4px #000 solid'});
																			   $("#foot_iris").css({backgroundColor:"#000"});
																			   $(".pulsanti").slideDown(100);
																			   $(this).addClass('pulsanti');
																			    $("#chi_siamo a").html('<a>CHI SIAMO</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"10",
																							  width:"130"
																							},1000);
																			   $("#chi_siamo").animate({
																					"opacity":"1",
																					left:"145",
																					marginLeft:"-40",
																					width:"130"
																					},
																					1000);
																			   $("#box_chi").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"800",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		
																				
																	});
										   $("#mission").toggle(function(){
																		  $(this).removeClass('pulsanti'); 
																		  $("#titolo").html('<p class="titolo_mission">MISSION</p>').css({borderBottom:'4px #333399 solid'});
																		  $("#foot_iris").css({backgroundColor:"#333399"});
																		  
																		  
																		  $(".pulsanti").slideUp(100);
																		 $("#mission a").html('<a>HOME</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"60",
																							  width:"230"
																							},1000);
																	$("#mission").animate({
																					"opacity":"1",
																					left:"195",
																					marginLeft:"-40",
																					width:"195"
																					},
																					1000).css({backgroundColor:"#333399"});
															
																 
														$("#box_mission").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"-200",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		return false;
																		   },function(){
																			 
																			   $("#foot_iris").css({backgroundColor:"#000"});
																			   $("#titolo").html('<p class="titolo_home">HOME</p>').css({borderBottom:'4px #000 solid'});
																			   $(".pulsanti").slideDown(100);
																			   $(this).addClass('pulsanti');
																			    $("#mission a").html('<a>MISSION</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"10",
																							  width:"130"
																							},1000);
																			   $("#mission").animate({
																					"opacity":"1",
																					left:"145",
																					marginLeft:"-40",
																					width:"130"
																					},
																					1000);
																			   $("#box_mission").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"800",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		
																				
																	});
										     $("#servizi").toggle(function(){
																		  $(this).removeClass('pulsanti');
																		 $("#titolo").html('<p class="titolo_servizi">SERVIZI</p>').css({borderBottom:'4px #ffcc66 solid'});
																		  $("#foot_iris").css({backgroundColor:"#ffcc66"});
																		 
																		
																		 
																		 
																		  
																		  $(".pulsanti").slideUp(100);
																		 $("#servizi a").html('<a>HOME</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"60",
																							  width:"230"
																							},1000);
																	$("#servizi").animate({
																					"opacity":"1",
																					left:"195",
																					marginLeft:"-40",
																					width:"195"
																					},
																					1000).css({backgroundColor:"#ffcc66"});
															
																 
														$("#box_servizi").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"-200",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		return false;
																		   },function(){
																			  
																			   $("#foot_iris").css({backgroundColor:"#000"});
																			   $("#titolo").html('<p class="titolo_home">HOME</p>').css({borderBottom:'4px #000 solid'});
																			   $(".pulsanti").slideDown(100);
																			   $(this).addClass('pulsanti');
																			    $("#servizi a").html('<a>SERVIZI</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"10",
																							  width:"130"
																							},1000);
																			   $("#servizi").animate({
																					"opacity":"1",
																					left:"145",
																					marginLeft:"-40",
																					width:"130"
																					},
																					1000);
																			   $("#box_servizi").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"800",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		
																				
																	});
											 $("#portfolio").toggle(function(){
																		  $(this).removeClass('pulsanti');
																		  $("#foot_iris").css({backgroundColor:"#ff9933"});
																		  $("#titolo").html('<p class="titolo_portfolio">PORTFOLIO</p>').css({borderBottom:'4px #ff9933 solid'});
																		  
																		  $(".pulsanti").slideUp(100);
																		 $("#portfolio a").html('<a>HOME</a>').animate({
																							  "opacity":"1",
																							 marginLeft:"60",
																							  width:"230"
																							},1000);
																	$("#portfolio").animate({
																					"opacity":"1",
																					left:"195",
																					marginLeft:"-40",
																					width:"195"
																					},
																					1000).css({backgroundColor:"#ff9933"});
															
																 
														$("#box_portfolio").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"-200",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		return false;
																		   },function(){
																				
																				$("#foot_iris").css({backgroundColor:"#000"});
																			  $("#titolo").html('<p class="titolo_home">HOME</p>').css({borderBottom:'4px #000 solid'});
																			   $(".pulsanti").slideDown(100);
																			   $(this).addClass('pulsanti');
																			    $("#portfolio a").html('<a>PORTFOLIO</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"10",
																							  width:"130"
																							},1000);
																			   $("#portfolio").animate({
																					"opacity":"1",
																					left:"145",
																					marginLeft:"-40",
																					width:"130"
																					},
																					1000);
																			   $("#box_portfolio").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"800",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		
																				
																	});
											 $("#dove").toggle(function(){
																		  $(this).removeClass('pulsanti');
																		  $("#titolo").html('<p class="titolo_dove">DOVE</p>').css({borderBottom:'4px #339933 solid'});
																		  $("#foot_iris").css({backgroundColor:"#339933"});
																		  
																		  
																		  $(".pulsanti").slideUp(100);
																		 $("#dove a").html('<a>HOME</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"60",
																							  width:"230"
																							},1000);
																	$("#dove").animate({
																					"opacity":"1",
																					left:"195",
																					marginLeft:"-40",
																					width:"195"
																					},
																					1000).css({backgroundColor:"#339933"});
															
																 
														$("#box_dove").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"-200",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		return false;
																		   },function(){
																			  
																			 $("#foot_iris").css({backgroundColor:"#000"});
																			  $("#titolo").html('<p class="titolo_home">HOME</p>').css({borderBottom:'4px #000 solid'});  
																			   $(".pulsanti").slideDown(100);
																			   $(this).addClass('pulsanti');
																			    $("#dove a").html('<a>DOVE</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"10",
																							  width:"130"
																							},1000);
																			   $("#dove").animate({
																					"opacity":"1",
																					left:"145",
																					marginLeft:"-40",
																					width:"130"
																					},
																					1000);
																			   $("#box_dove").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"800",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		
																				
																	});
											  $("#partner").toggle(function(){
																		  $(this).removeClass('pulsanti');
																		   $("#titolo").html('<p class="titolo_partners">PARTNERS</p>').css({borderBottom:'4px #66ccff solid'});
																		  $("#foot_iris").css({backgroundColor:"#66ccff"});
																		  
																		  
																		  $(".pulsanti").slideUp(100);
																		 $("#partner a").html('<a>HOME</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"60",
																							  width:"230"
																							},1000);
																	$("#partner").animate({
																					"opacity":"1",
																					left:"195",
																					marginLeft:"-40",
																					width:"195"
																					},
																					1000).css({backgroundColor:"#66ccff"});
															
																 
														$("#box_partner").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"-200",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		return false;
																		   },function(){
																			  
																			   $("#foot_iris").css({backgroundColor:"#000"});
																			    $("#titolo").html('<p class="titolo_home">HOME</p>').css({borderBottom:'4px #000 solid'});
																			   $(".pulsanti").slideDown(100);
																			   $(this).addClass('pulsanti');
																			    $("#partner a").html('<a>PARTNERS</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"10",
																							  width:"230"
																							},1000);
																			   $("#partner").animate({
																					"opacity":"1",
																					left:"145",
																					marginLeft:"-40",
																					width:"130"
																					},
																					1000);
																			   $("#box_partner").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"800",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		
																				
																	});
											  $("#contatti").toggle(function(){
																		  $(this).removeClass('pulsanti');
																		 $("#titolo").html('<p class="titolo_contatti">CONTATTI</p>').css({borderBottom:'4px #996699 solid'});
																		  $("#foot_iris").css({backgroundColor:"#996699"});
																		  
																		 
																		  $(".pulsanti").slideUp(100);
																		 $("#contatti a").html('<a>HOME</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"60",
																							  width:"230"
																							},1000);
																	$("#contatti").animate({
																					"opacity":"1",
																					left:"195",
																					marginLeft:"-40",
																					width:"195"
																					},
																					1000).css({backgroundColor:"#996699"});
															
																 
														$("#box_contatti").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"-200",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		return false;
																		   },function(){
																			  
																			   $("#foot_iris").css({backgroundColor:"#000"});
																			    $("#titolo").html('<p class="titolo_home">HOME</p>').css({borderBottom:'4px #000 solid'});
																			   $(".pulsanti").slideDown(100);
																			   $(this).addClass('pulsanti');
																			    $("#contatti a").html('<a>CONTATTI</a>').animate({
																							  "opacity":"1",
																							  marginLeft:"10",
																							  width:"130"
																							},1000);
																			   $("#contatti").animate({
																					"opacity":"1",
																					left:"145",
																					marginLeft:"-40",
																					width:"130"
																					},
																					1000);
																			   $("#box_contatti").animate({
																		"opacity":"1",
																		height:"375",
																		
																		left:"800",
																		width: "435"},
																		{duration:1500,
																		easing: 'easeOutBounce'}
																		);
																		
																				
																	});
											  /*<![CDATA[*/
											  $("a[rel^='prettyPhoto']").prettyPhoto({
			animationSpeed: 'normal', /* fast/slow/normal */
			opacity: 0.40, /* Value between 0 and 1 */
			showTitle: false, /* true/false */
			allowresize: false, /* true/false */
			default_width: 500,
			default_height: 400,
			counter_separator_label: '/', /* The separator for the gallery counter 1 "of" 2 */
			theme: 'light_rounded', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
			
												   });
											   $('#slideshow2').cycle({
        fx:      'scrollHorz',
        timeout:  0,
        prev:    '#prev',
        next:    '#next',
        pager:   '#nav2',
        pagerAnchorBuilder: pagerFactory
    });

    function pagerFactory(idx, slide) {
        var s = idx > 6 ? ' style="display:none"' : '';
        return '<li'+s+'><a href="#">'+(idx+1)+'</a></li>';
    };
	
	
	
	  $("#advert").addClass('colore');
						   $("#advert").click(function(){
													   $("#contiene").animate({opacity:"1",marginLeft:"-17",width:"1400"},1800);
													   $(this).addClass('colore');
													   $("#graf").removeClass('colore');
													   $("#allest").removeClass('colore');
													   });
						   $("#graf").click(function(){
													   $("#contiene").animate({opacity:"1",marginLeft:"-432",width:"1400"},1800);
													   $(this).addClass('colore');
													   $("#advert").removeClass('colore');
													   $("#allest").removeClass('colore');
													   
													   });
						    $("#allest").click(function(){
													   $("#contiene").animate({opacity:"1",marginLeft:"-857",width:"1400"},1800);
													    $(this).addClass('colore');
													   $("#advert").removeClass('colore');
													   $("#graf").removeClass('colore');
													   });
							$(".sound").jmp3({
											backcolor: "ffffff",
											forecolor: "000",
											width: 25,
											showdownload: "false",
											showfilename: "false",
											repeat: "true",
											volume: "80",
											autoplay: "true"
											});
});
