function locateObject(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=locateObject(n,d.layers[i].document); return x;
}

function adjustLayer(object,e,displaytime)
{
    var tipTimer;
    window.clearTimeout(tipTimer)
    
    if (document.all)
    {
            locateObject(object).style.top=document.body.scrollTop+event.clientY+20
            
            if ((e.x + locateObject(object).clientWidth) > (document.body.clientWidth + document.body.scrollLeft))
            {    
                    locateObject(object).style.left = (document.body.clientWidth + document.body.scrollLeft) - locateObject(object).clientWidth-10;
            }
            else
            {
                locateObject(object).style.left=document.body.scrollLeft+event.clientX
            }
        locateObject(object).style.visibility="visible"
        tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
        return true;
    }
    else if (document.layers)
    {
        locateObject(object).document.close()
        locateObject(object).top=e.y+20

        if ((e.x + locateObject(object).clip.width) > (window.pageXOffset + window.innerWidth))
        {
                locateObject(object).left = window.innerWidth - locateObject(object).clip.width-10;
        }
        else
        {
            locateObject(object).left=e.x;
        }
        locateObject(object).visibility="show"
        tipTimer=window.setTimeout("hideTooltip('"+object+"')", displaytime);
        return true;
    }
    else
    {
        return true;
    }
}

function hideTooltip(object)
{
    if (document.all)
    {
        locateObject(object).style.visibility="hidden"
        locateObject(object).style.left = 1;
        locateObject(object).style.top = 1;
    return false
    }
    else if (document.layers)
    {
        locateObject(object).visibility="hide"
        locateObject(object).left = 1;
        locateObject(object).top = 1;
        return false
    }
    else
    {
        return true
    }
}


    //Create a boolean variable to check for a valid Internet Explorer instance.
    var xmlhttp = false;
    
    //Check if we are using IE.
    try {
        //If the Javascript version is greater than 5.
        xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
    } catch (e) {
        //If not, then use the older active x object.
        try {
            //If we are using Internet Explorer.
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
        } catch (E) {
            //Else we must be using a non-IE browser.
            xmlhttp = false;
        }
    }
    
    //If we are using a non-IE browser, create a javascript instance of the object.
    if (!xmlhttp && typeof XMLHttpRequest != 'undefined') {
        xmlhttp = new XMLHttpRequest();
    }
    
    function makerequest(serverPage, objID) {
        
        var obj = document.getElementById(objID);
        xmlhttp.open("GET", serverPage);
        xmlhttp.onreadystatechange = function() {
            if (xmlhttp.readyState == 4 && xmlhttp.status == 200) {
                obj.innerHTML = xmlhttp.responseText;
            }
        }
        xmlhttp.send(null);
    }
    
    function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}