$(window).load(function() {
    if(readCookie('style') == "dolares") {
        $("canvas").remove();
        $('#content .post').liquidCanvas("[shadow{color:#2e2e2e} border{color:#ff7200} fill{color:#f2ffec}] => roundedRect{radius:30}");
    } else {
        $("canvas").remove();
        $('#content .post').liquidCanvas("[shadow{color:#2e2e2e} border{color:#889bd9} fill{color:#fff8fa}] => roundedRect{radius:30}");
    }
});


$(document).ready(function(){

    //var reflections = new ARA.effects.Reflection();
    //reflections.addImage("logo-img");
    //reflections.reflect();

    $('link[rel*=style]').each(function(i)
    {
        if (!this.getAttribute('title')) this.disabled = true;
    });

    if(readCookie('style') == "dolares") {
        $("canvas").remove();
        $('#content .post').liquidCanvas("[shadow{color:#2e2e2e} border{color:#ff7200} fill{color:#f2ffec}] => roundedRect{radius:30}");
    } else {
        $("canvas").remove();
        $('#content .post').liquidCanvas("[shadow{color:#2e2e2e} border{color:#889bd9} fill{color:#fff8fa}] => roundedRect{radius:30}");
    }

    $('.styleswitch').click(function()
    {
        switchStylestyle(this.getAttribute("rel"));
        return false;
    });

    var c = readCookie('style');
    if (c) switchStylestyle(c);

    Cargo('content');

    $('#menu').fadeIn(1000);

    $('.sidebartop').click(function() {
        if($(this).next().is(":hidden")) {
            $(this).next().slideDown("fast");
        } else {
            $(this).next().slideUp("fast");
        }
    });

    $('#sidebar .sidebarcontent').corner('bottom');

});
