    $(document).ready(function(){

	    $('.hp-profile-close').click(function(){
	        $('.hp-profile-dock').slideUp(500);
	        $('.active').removeClass('active');
	    });

	    $('.hp-btn-profile').mouseover(function(){
	        $(this).addClass('hover');
	    });

	    $('.hp-btn-profile').mouseout(function(){
	        $(this).removeClass('hover');
	    });


        // Loop over each click
        //  var zindex = 100;
        //      $( ".hp-profile-control li" ).each(function(){
        //      $( this ).bind ("click", function(){
        //          zindex++;
        //          $(this).css("z-index", zindex);
        //      });
        //  });






        var zindex = 100;
        $("#hp-btn-profile-investidores").bind("click", function(){
            $('.hp-btn-profile').removeClass('active');
            $(this).addClass('active');


            zindex++;

            if($('#hp-profile-investidores').hasClass('active')){
                $('#hp-profile-investidores').show();
            } else {
                $('.hp-profile-dock').removeClass('active');
                $('#hp-profile-investidores').css("z-index", zindex).addClass('active').hide().slideDown('slow');
            }
        });

        $("#hp-btn-profile-empreendedores").bind("click", function(){
            $('.hp-btn-profile').removeClass('active');
            $(this).addClass('active');


            zindex++;
            if($('#hp-profile-empreendedores').hasClass('active')){
                $('#hp-profile-empreendedores').show();
            } else {
                $('.hp-profile-dock').removeClass('active');
                $('#hp-profile-empreendedores').css("z-index", zindex).addClass('active').hide().slideDown('slow');
            }

        });

        $("#hp-btn-profile-poupadores").bind("click", function(){
            $('.hp-btn-profile').removeClass('active');
            $(this).addClass('active');


            zindex++;
            if($('#hp-profile-poupadores').hasClass('active')){
                $('#hp-profile-poupadores').show();
            } else {
                $('.hp-profile-dock').removeClass('active');
                $('#hp-profile-poupadores').css("z-index", zindex).addClass('active').hide().slideDown('slow');
            }
        });

        $("#hp-btn-profile-familia").bind("click", function(){
            $('.hp-btn-profile').removeClass('active');


            zindex++;
            if($('#hp-profile-familia').hasClass('active')){
                $('#hp-profile-familia').show();
            } else {
                $('.hp-profile-dock').removeClass('active');
                $('#hp-profile-familia').css("z-index", zindex).addClass('active').hide().slideDown('slow');
            }
        });



     });
