

$(document).ready(function(){
    
    $(".albumClickJs").each(function(){
        $(this).click( function(){
            $("#imgM").attr('src',$(this).attr("href"));
            return false;
        });
    });
    
    //Efeitos do Sub-Menu do Album:
    $("#albumDescricao").animate({
        className: 'efeitoDescricaoOut'
    }, 1);
    $("#album>a").each(function(){
        $(this)
            .animate({
                className: 'imagemOut'
            }, 900)
            .mouseover( function(){
                $(this)
                    .stop()
                    .animate({
                        className: 'imagemOver'
                    }, 300)
                ;
                $("#albumDescricao")
                    .stop()
                    .animate({
                        className: 'efeitoDescricaoOver'
                    }, 2000)
                    .breakString(
                        $(this).find("span").html(),
                        70
                    )
                ;
            })
            .mouseout( function(){
                $(this)
                    .stop()
                    .animate({
                        className: 'imagemOut'
                    }, 500)
                ;
                $("#albumDescricao")
                    .stop()
                    .animate({
                        className: 'efeitoDescricaoOut'
                    }, 1)
                    .stopBreakString()
                    .text("")
                ;
            })
        ;
    });
});
