<!-- Copyright 2006 Bontrager Connection, LLC
/*var cX = 0; var cY = 0;

function UpdateCursorPosition(e) {
    cX = e.pageX; cY = e.pageY;
}

function UpdateCursorPositionDocAll(e) {
    cX = event.clientX; cY = event.clientY;
}

if(document.all) {
    document.onmousemove = UpdateCursorPositionDocAll;
}
else {
    document.onmousemove = UpdateCursorPosition;
}*/

function AssignPosition(d, url) {
    /*fiz alteracoes para o calculo da posicao do div,
     o calculo agora e feito com base no offset da url em vez da posicao do cursor*/
    cX = getElement(url).offsetLeft;
    d.style.left = (cX+20) + "px";
    if (document.all){
        cY = getElement(url).parentNode.offsetTop;
        d.style.top = (cY-80) + "px";
    }else{
        cY = getElement(url).offsetTop;
        d.style.top = (cY-170) + "px";
    }
}

function HideContent(d) {
    if(d.length < 1) {
        return;
    }

    document.getElementById(d).style.display = "none";
}

function ShowContent(d, qt_indice, url_indice) {
    if(d.length < 1) {
        return;
    }
    url_text = url_indice.substring(7);
    tam_max_url = 20;
    if (url_text.length>tam_max_url){
        url_text = url_text.substring(0,tam_max_url) + '...';
    }
    document.getElementById('qt_indice').innerHTML = qt_indice;
    document.getElementById('url_indice').href = url_indice;
    document.getElementById('url_indice').innerHTML = url_text;

    var dd = document.getElementById(d);
    AssignPosition(dd, url_indice);
    dd.style.display = "";
}

function ReverseContentDisplay(d) {
    if(d.length < 1) {
        return;
    }

    var dd = document.getElementById(d);
    AssignPosition(dd);

    if(dd.style.display == "none") {
        dd.style.display = "";
    }
    else {
        dd.style.display = "none";
    }
}

function temporizadorOn() {
    temporizador = setTimeout("HideContent('floater_ir')" , 1000);
}

function temporizadorOff() {
     clearTimeout(temporizador);
}
//-->