	$(document).ready(function(){
	
	
		//ajustes na home
		$('#header, #header .container').css('height', '500px');
		$('#clipe').css('display', 'none');
		
		//aba clipe
		$('#ver-clipe').click(function(){
			$('#header, #header .container').animate({height: 900}, 600, function(){
				$('#clipe').fadeIn(500);
			});	
			return false;				   
		});
		
		$('#close').click(function(){
			$('#clipe').fadeOut(500, function(){
				$('#header, #header .container').animate({height: 500}, 600);
			});
			
			//var myPlayer = document.getElementById('swf-video');
			$('.swf-video').stopVideo();			
			
			return false;
		});
		
		//textos integrantes
		$('#integrantes img').hover(function(){
		
			id = $(this).attr('alt');
			
			if($('#'+id).is(':visible'))
			{
				$('#'+id).fadeOut(200);
			} else {
				$('#'+id).fadeIn(200);

			}
		});
		
		//contato
		$('#contato').hover(function(){
		
			if($(this).hasClass('hover'))
			{
				$(this).removeClass('hover');
			} else {
				$(this).addClass('hover');
			}
									 
		});
		
		
		$('#contato').click(function(){
			
			document.location = 'mailto:contato@antenasdevinil.com.br';
		
		});
	
	});
