/*function browserBackground() {

    var widthTop = 938

    if($('#top-index')[0]) {
        widthTop = 951;
    }

    var width = (document.getElementById("display").clientWidth - widthTop) / 2;

    if(width < 0){
        $("#complemento-top").css("width","0px");
        $("#complemento-top").css("display","none");

    } else {
        $("#complemento-top").css("display","block");
        $("#complemento-top").css("width",width);
    }
}
*/

/*Problema de atualizações dinamicas.*/
function defaultCall() {
     $('div').pngFix( );
     $("#fecha-content").corner("round bottom");
     $(".corner-bottom").corner("round bottom");
}

$(document).ready(function() {
    /*arrendondar bordas*/
    $("#fecha-content").corner("round bottom");
    $(".corner-bottom").corner("round bottom");

    setInterval(defaultCall, 1000);

    /*Transforma png em imagem transparente no ie-6*/
    $('div').pngFix( );

    /*eventos para rollover imagem com span dentro*/
    $("div#coluna-menu-consultoria ul li a").bind("mouseenter",function(){
        $("div#coluna-menu-consultoria ul li a").css('background-position','0px -12px');
    }).bind("mouseleave",function(){
        $("div#coluna-menu-consultoria ul li a").css('background-position','0px 0px');
    });

    $("div#menu-top ul li a").bind("mouseenter",function(){
        $("div#menu-top ul li a").css('background-position','0px -10px');
    }).bind("mouseleave",function(){
        $("div#menu-top ul li a").css('background-position','0px 0px');
    });
});
