$(document).ready( onReady );
function onReady( evento )
{
	Shadowbox.init();	$('a.maps')		.mouseover( mapsHover )		.mouseleave( mapsOut );	
	$('#curso').click( abrirCurso );
	$('a.fechar').click( fecharCurso );
	$('ul.numbers li a').click( mudarBanner );
	$('div#banner ul.banners li')
		.not('.active')
		.css('z-index', '1')
		.fadeOut( 300 );
}function mapsHover(){	$(this).children('img.ponto').stop().animate({top: -15}, {duration: 500, easing: 'easeOutExpo'});	$(this).children('img.ponto-s').stop().animate({opacity: 0.3, left: 21, top: 8}, {duration: 500, easing: 'easeOutExpo'});}function mapsOut(){	$(this).children('img.ponto').stop().animate({top: -8}, {duration: 500, easing: 'easeOutBounce'});	$(this).children('img.ponto-s').stop().animate({opacity: 1, left: 17, top: 10}, {duration: 500, easing: 'easeOutBounce'});}
function mudarBanner()
{
	var classe = $(this).attr('class');
	var banner = $('div#banner ul.banners li.' + classe);
	$('div#banner ul.numbers li').removeClass('active');
	$(this).parent().addClass('active');	$('div#banner ul.banners li')		.not('.' + classe)		.removeClass('active')		.css('z-index', '1')		.fadeOut( 300 );		
	banner		.css('z-index', '10')		.addClass('active')		.fadeIn( 300 );}

function fecharCurso( evento )
{
	evento.preventDefault();
	$('div.black').fadeOut( 500 );
	$('div.curso').fadeOut( 500 );
}

function abrirCurso( evento )
{
	evento.preventDefault();
	$('div.black').fadeIn( 500 );
	$('div.curso').fadeIn( 500 );
}
