


function showInstruct (txt)
{
    if (!is_crappyNetscape && (is_nav6up || (is_ie5up && !is_mac) || is_opera))
    {
        setupInstruct (txt);
        // navigator 6+ / mozilla on mac and windows
        // ie5.0+ on windows
        E = getRef("divInstruct");
        if (!lastMouseX)	lastMouseX = event.x;
        if (!lastMouseY)	lastMouseY = event.y;
        E.style.left = (lastMouseX+9)+"px";
        E.style.top = (lastMouseY+5)+"px";
				E.style.height = ((txt.length<50) ? 30 : txt.length/1.65) + "px";
        E.style.visibility = "visible";
    }
}



function setupInstruct (txt)
{
    // bug in netscape 6.0, onload doesn't always fire.
    is_crappyNetscape = (agt.indexOf("netscape6/6.0") != -1)
    if (is_mac && is_ie)
    {
        // forget about them.. the a%#!holes will never learn.
        return;
    }
    if ( (is_nav6up && !is_crappyNetscape) || is_ie5up || is_opera)
    {
        // this crap *should* work on IE5.5-IE6, but IE6 can't
        // handle the onload event correctly when image is cached
        // in memory.
        // Mozilla aussi
        imgDiv = $("divInstruct");
        if (imgDiv == null) return;
				H = txt;
        imgDiv.innerHTML = H;
    }
}


function hideInstruct()
{
    E = getRef("divInstruct");
    if (E != null)
    {
        E.style.visibility = "hidden";
    }
}


