function equalHeight(group) {
	var tallest = 0;
	group.each(function() {
		var thisHeight = $(this).height();
		if(thisHeight > tallest) {
			tallest = thisHeight;
		}
	});
	group.height(tallest);
	/*$(".mais").css({
		'position':'absolute',
		'right' : '10px',
		'bottom' : '10px'
				   });*/
}

function onAfter() {
    alert("Current anchor: " + $(this).location);
}


$(function() {
	equalHeight($(".height1"));
	equalHeight($(".height2"));
    
    $('#menuPrincipal li').bind("mouseenter mouseleave", function(){
		$(this).find("ul").fadeToggle("fast");
	});
	
	$(".tooltipsContainer li").not(".tooltipsContainer li li").bind({
		mouseenter:function(){
			$(this).find(".tooltip").fadeToggle("fast");
		},
		mouseleave:function(){
			$(this).find(".tooltip").fadeToggle("fast");
		}
	});
	
	$(".quadroCurso").click(function(){
		$(".quadroIdiomas").slideToggle("slow");
	});
    
    /* FUNCÕES LIGHTBOX*/ 
	$('a.lightbox').lightBox();
	/* FUNCÕES SLIDE*/   
    jQuery('.pics').cycle({
        fx:     'fade',
        speed:  1000,
        timeout: 6000,
        next:  '.next',
		prev: '.prev'
    });
	
	//
	function escondeBusca() {
      jQuery("#palavraBusca").val('');
	}
	
	
	$("#aluno_form, #empresa_form, #secretaria_form").bind("click", function(){
		$("#aluno_form, #empresa_form, #secretaria_form").removeClass("visibleForm");
		$(this).addClass("visibleForm");
		$("#boxFormAluno, #boxFormEmpresa, #boxFromSecretaria").hide();
		// alert($(this).attr("id"));
		if($(this).attr("id") == "aluno_form"){
			$("#boxFormAluno").show();
		}
		else if($(this).attr("id") == "empresa_form"){
			$("#boxFormEmpresa").show();
		}
		else if($(this).attr("id") == "secretaria_form"){
			$("#boxFromSecretaria").show();
		}
	});


});
