function click(e)
{
    if (document.all)
    {
        if (event.button == 2)
        {
            alert(copyright);
            return false;
        }
    }

    if (document.layers)
    {
        if (e.which == 3)
        {
            alert(copyright);
            return false;
        }
    }
}

function addtofav()
{
    if (document.all)
        window.external.AddFavorite(webaddr, webdesc);
}

function ScrolledMessage(scrollto)
{
    var msg = " ";
    var i = 0;
    var speed = 50;

    scrollto--;

    if (scrollto == -StatusLine.length)
        scrollto = WindowSize;

    if (scrollto > 0) {
        for (i = 0; i < scrollto; i++)
            msg = " " + msg;
        msg = msg + StatusLine;
    } else
        msg = StatusLine.substring(-scrollto, StatusLine.length);

    msg = msg.substring(0, WindowSize);

    window.status = msg;
    window.setTimeout('ScrolledMessage(' + scrollto + ')', speed);
}

function StartMarquee(initial_size)
{
    WindowSize = initial_size;
    ScrolledMessage(WindowSize);
}

function InitImage(name)
{
    if (document.images)
    {
        eval(name + " = new Image()");
        str = "images/" + name + ".jpg";
        eval(name + ".src = str");
        eval(name + "off = new Image()");
        str = "images/" + name + "off.jpg";
        eval(name + "off.src = str");
    }
}

function TurnOn(name)
{
    if (document.images)
    {
        OnImage = eval(name + ".src");
        eval("document." + name + ".src = OnImage");
    }
}
    
function TurnOff(name)
{
    if (document.images)
    {
        OffImage = eval(name + "off.src");
        eval("document." + name + ".src = OffImage");
    }
}

if (document.layers)
    document.captureEvents(Event.MOUSEDOWN);

document.onmousedown=click;
