// JavaScript Document

credOpen = false;

function openCreditos( _var )
{
	if ( _var == true )
	{
		$('.seta-nav-open').fadeOut('fast', function(){
			$('.seta-nav-close').fadeIn();
		});	
		
		$('.home').stop(false,true).animate({height: '548px'},'fast', function(){
			$('.creditos').fadeIn('slow');	
		})
		
	}
	else
	{
		$('.seta-nav-close').fadeOut('fast', function(){
			$('.seta-nav-open').fadeIn();
		});				
		
		
		$('.creditos').fadeOut('slow', function(){
			$('.home').stop(false,true).animate({height: '448px'},'fast');
		});	
	}
}

function playVideoHome()
{
	var url = "<iframe class=\"youtube-player\" type=\"text/html\" width=\"801\" height=\"448\" src=\"http://player.vimeo.com/video/27782757?title=0&amp;byline=0&amp;portrait=0&amp;autoplay=1\" frameborder=\"0\"></iframe>";
	$("#container-video").html(url);
}

function setVideos()
{
	$('.seta-nav-close').hide();
	$('.creditos').hide();
}
