/* ==================================================================== */
/*  MapTipClear(szLayer, szText)                                        */
/*  Clears the contents of the MapTip DIV (szText can be default text)  */
/* ==================================================================== */
function MapTipClear(szLayer, szText)
{
    if(!szText)
        var szText = '&nbsp;';
        
    MapTipContent( szLayer, szText );
}

/* ==================================================================== */
/*  MapTipContent( szLayer, szText )                                    */
/*  Writes the content to the MapTip DIV                                */
/* ==================================================================== */
function MapTipContent( szLayer, szText )
{
    //window.status = szLayer;
    if(!szLayer)
    {
        alert('no layer specified .. exiting');
        return false;
    }

    // should work for all browsers
    if (document.layers)
    {
        var oLayer;
        if(parentID)
        {
            oLayer = eval('document.' + parentID + '.document.' + szLayer + '.document');
        }
        else
        {
            oLayer = document.layers[szLayer].document;
        }

        oLayer.open();
        oLayer.write(szText);
        oLayer.close();
    }
    else if (parseInt(navigator.appVersion)>=5&&navigator.appName=="Netscape")
    {
        document.getElementById(szLayer).innerHTML = szText;
    }
    else if (document.all)
    {
        document.all[szLayer].innerHTML = szText;
    }
    
    return true;

}
