// Exibição da janela de acessibilidade

var n, f, e, v;

window.onload = function () {
    var a = navigator.userAgent.toLowerCase();
    e = /msie/.test(a) && !/opera/.test(a);
    v = (a.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/) || [])[1];
    n = document.getElementById('acessibilidade');
    var l = document.links;
    var t = document.getElementById('topo');
    if (e && v == 6) {
        f = document.createElement('iframe');
        f.frameBorder = 0;
        f.marginHeight = 0;
        f.marginWidth = 0;
        f.style.position = 'absolute';
        f.style.top = '-999em';
        f.style.left = (n.offsetLeft + 23) + 'px';
        f.style.width = '977px';
        f.style.height = '495px';
        //t.appendChild(f);
    }
    for (var i = 0, s = l.length; i < s; i++) {
        if (l[i].className.indexOf('acessibilidade') != -1) {
            l[i].onfocus = l[i].onmouseover = n.onmouseover = function () {
                s_();
            };
            l[i].onblur = l[i].onmouseout = n.onmouseout = function () {
                h_();
            };
        }
    }
};

function s_() {
    n.style.top = '80px';
    if (f) {
        f.style.top = '80px';
    }
}

function h_() {
    n.style.top = '-999em';
    if (f) {
        f.style.top = '-999em';
    }
}
