// JScript source code
var alphaRaiseLowerCtlId = "";
var alphaRaiseLowerDir = 0;
var maxOpacity = 70;

function alphaChangeStart(ctlId, dir)
{
    alphaRaiseLowerCtlId = ctlId;
    alphaRaiseLowerDir = dir;
    window.setTimeout("alphaChange('"+ctlId+"',"+dir+")", 10);
}

function alphaChange(ctlId, dir)
{
    var ctl = document.getElementById(ctlId);
    if(alphaRaiseLowerCtlId!="")
    { 
        if(ctlId!=alphaRaiseLowerCtlId || dir!=alphaRaiseLowerDir)
        {
            if(ctlId!=alphaRaiseLowerCtlId)
            {
                if(navigator.appName == "Microsoft Internet Explorer")
                    ctl.filters.alpha.opacity = 0;
                else
                    ctl.style.opacity = 0;
            }
            return;
        }
    }
    alphaRaiseLowerCtlId = ctlId;
    alphaRaiseLowerDir = dir;
    if(navigator.appName != "Microsoft Internet Explorer")
    {
        if((dir==1 && ctl.style.opacity<maxOpacity/100) || (dir==-1 && ctl.style.opacity>0))
        {
            var opac=ctl.style.opacity * 1;
            opac += 0.05*dir;
            ctl.style.opacity = opac;
            window.setTimeout("alphaChange('"+ctlId+"',"+dir+")", 10);
        }
        else
        {
            alphaRaiseLowerCtlId = "";
            alphaRaiseLowerDir = 0;
        }
    }
    else
    {
        if ((dir==1 && ctl.filters.alpha.opacity<maxOpacity) || (dir==-1 && ctl.filters.alpha.opacity>0))
        {
            ctl.filters.alpha.opacity+=5*dir;
            window.setTimeout("alphaChange('"+ctlId+"',"+dir+")", 10);
        }
        else
        {
            alphaRaiseLowerCtlId = "";
            alphaRaiseLowerDir = 0;
        }
    }
}

function alphaLow(ctlId)
{
    var ctl = document.getElementById(ctlId);
    if(!document.all)
        ctl.style.opacity=0.2;
    else 
        ctl.filters.alpha.opacity=20
}

