




function showStrip(index) 
		{
		
		    $('ul.stepper li').eq(index).find('a').css('opacity','0').css('visibility','visible');
		    
		    $('ul.stepper li').eq(index).find('a').animate(	{
		    							opacity: '1'
		    
		    							}, 250,function() {
		    									if (index < $('ul.stepper li').size()) 
		    										{
		    										showStrip(index + 1);
												}
	    										})
		}




function iconStepper(index) 
		{
		
		    $('a.iconStepper').eq(index).css('opacity','0').css('visibility','visible');
		    
		    $('a.iconStepper').eq(index).animate(	{
		    							opacity: '1'
		    
		    							}, 125,function() {
		    									if (index < $('a.iconStepper').size()) 
		    										{
		    										iconStepper(index + 1);
												}
	    										})
		}
		

function showTracks(index) 
		{
		
		    $('ul.audioStepper li').eq(index).css('opacity','0').css('visibility','visible');
		    
		    $('ul.audioStepper li').eq(index).animate(	{
		    							opacity: '1'
		    
		    							},125,function() {
		    										
		    										
		    										
		    										
		    									if (index < $('ul.audioStepper li').size()) 
		    										{		    										
		    										showTracks(index + 1);
		    							
												}
											if (index == $('ul.audioStepper li').size()-1) 	
												{
												iconStepper(0) 
												}
												
	    										})
		}
		


function videoFadeIn(index) 
		{
		
		    $('ul.videoGallery li').eq(index).find('a').css('opacity','0').css('visibility','visible');
		    
		    $('ul.videoGallery li').eq(index).find('a').animate(	{
		    							opacity: '1'
		    
		    							},35,function() {
		    										
		    										
		    										
		    										
		    									if (index < $('ul.videoGallery li').size()) 
		    										{		    										
		    										videoFadeIn(index + 1);
		    							
												}
									
												
	    										})
		}		
		


function imageFadeIn(index) 
		{
		
		    $('ul.imageGallery li').eq(index).find('a').css('opacity','0').css('visibility','visible');
		    
		    $('ul.imageGallery li').eq(index).find('a').animate(	{
		    							opacity: '1'
		    
		    							},35,function() {
		    										
		    										
		    										
		    										
		    									if (index < $('ul.imageGallery li').size()) 
		    										{		    										
		    										imageFadeIn(index + 1);
		    							
												}
									
												
	    										})
		}	
		
$(window).load(function(){   


	$('.back').click(	function(){	history.go(-1);	 });
	
	$('.boxContent').css('opacity','0').animate({opacity: 	'1'},1500);
	
	
	showStrip(0);





						 
						 

	$('ul.menu2h').animate({bottom: 	'10px'},1000);

	
	$('.boxTab li').each(function(index) {
	  					
						if($(this).find("a").attr('class') == "sel")
							{
							$(this).animate({
										marginTop: 	'0px'
									},750);

							$(this).find("a").animate({
										opacity:	'1',
										color:		'#c50e1f',
										lineHeight:	'40px'

									},750);												
							}else
							{
							
							$(this).animate({
									marginTop: 	'10px'
									},750);

							$(this).find("a").animate({
										opacity:	'0.4',
										color:		'#555',
										lineHeight:	'30px'

									},750);								
							
							
							}
						

					      });





	$('.boxTab li').hover(function(){
					
									if($(this).find("a").attr('class') != "sel")
										{
										$(this).animate({
													marginTop: 	'0px'
												},150);
												
										$(this).find("a").animate({
													opacity:	'1',
													color:		'#c50e1f',
													lineHeight:	'40px'

												},150);												
										}		

						
						
								},
					  function(){
					  
										if($(this).find("a").attr('class') != "sel")
											{
											$(this).animate({
													marginTop: 	'10px'
													},150);
													
											$(this).find("a").animate({
														opacity:	'0.4',
														color:		'#555',
														lineHeight:	'30px'

													},150);														
													
											}

								}
					  );










	


	$('.LinkPopup').popupWindow({
						resizable: 		1,
						scrollbars: 		1,
						centerBrowser:		1
					});
		

						
	$('.LinkOverlay').openDOMWindow({ 
						positionType:		'centered', 
						eventType:		'click', 
						windowSource:		'iframe', 
						windowPadding:		0, 
						loader:			1, 
						loaderImagePath:	'animationProcessing.gif', 
						loaderHeight:		16, 
						loaderWidth:		17 
					}); 
					

					 
					 
	$('#TextSearchForm').click(		function(){	
							$('#TextSearchForm').val('');	
						 
						 
						 
						 });

	$('#TextSearchForm').focusout(	function(){	if($('#TextSearchForm').val() == '')
                                                                                        {
                                                                                        $('#TextSearchForm').val($("#search").attr("i18n"));
                                                                                        }
										});
										


	$(".press_review li a").hover(function(){


									$(this).find("span.imageFront").css("display","none");
									$(this).find("span.imageBack").css("display","block");

									$(this).find("span.title").css("display","none");
									$(this).find("span.date").css("display","block");
								},
					  function(){


									$(this).find("span.imageFront").css("display","block");
									$(this).find("span.imageBack").css("display","none");

									$(this).find("span.title").css("display","block");
									$(this).find("span.date").css("display","none");

								}
					  );
				  
});		

function sendForm(url,livello,form)	
		{
		obj = $(form).serialize();
		
	

			$.ajax({
			  type: 'POST',
			  url: url,
			  data: obj,
			  success: function(data) { $(livello).html(data) }
			});
						
		}





function load(url,livello)
		{
		
		$(livello).load(url );
		
		}
		
		
	
