// start agawebs fade + buzz functions

var agw_timeouts = new Array();
function agw_fade(x, rv_opc) {
    document.getElementById(x).style.opacity = rv_opc / 100;
    document.getElementById(x).style.filter = "alpha(opacity=" + rv_opc + ")";
}
function agawebs_fade_out(obj_id, step, pi, pf, flow) {
    if (agw_timeouts[obj_id] == null) agw_timeouts[obj_id] = new Array();
    else for (i in agw_timeouts[obj_id]) clearTimeout(agw_timeouts[obj_id][i]);
    if (!step) step = 5;
    if (!pi) pi = 100;
    if (!pf) pf = 0;
    var agw_time = 0;
    var index = 0;
    for (i = pi; i >= pf; i -= step) {
        agw_timeouts[obj_id][index] = setTimeout("agw_fade ('" + obj_id + "', " + i + ")", agw_time);
        agw_time += 20;
        index++;
    }
    if (flow == 1) setTimeout("document.getElementById('" + obj_id + "').style.display = 'none'", (agw_time + 20));
}
function agawebs_fade_in(obj_id, step, pi, pf, flow) {
    if (agw_timeouts[obj_id] == null) agw_timeouts[obj_id] = new Array();
    else for (i in agw_timeouts[obj_id]) clearTimeout(agw_timeouts[obj_id][i]);
    var agw_time = 0;
    if (flow == 1) {
        document.getElementById(obj_id).style.display = 'inline';
        agw_time += 20;
    }
    if (!step) step = 5;
    if (!pi) pi = 0;
    if (!pf) pf = 100;
    var index = 0;
    for (i = pi; i <= pf; i += step) {
        agw_timeouts[obj_id][index] = setTimeout("agw_fade ('" + obj_id + "', " + i + ")", agw_time);
        agw_time += 20;
        index++;
    }
}
function agawebs_buzz(obj_id) {
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '5px 15px 15px 5px'", 20);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '10px'", 40);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '15px 3px 5px 17px'", 60);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '10px'", 80);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '7px 0 13px 20px'", 100);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '10px'", 120);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '5px 10px 15px 10px'", 140);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '10px'", 160);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '12px 12px 8px 8px'", 180);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '10px'", 200);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '19px 0 1px 20px'", 220);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '10px'", 240);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '5px 3px 15px 17px'", 260);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '10px'", 280);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '17px 19px 3px 1px'", 300);
    setTimeout("document.getElementById('" + obj_id + "').style.margin = '10px'", 320);
}

// end agawebs fade + buzz functions


// Define which elements use the fade effect




