    var NS4 = (navigator.appName.indexOf("Netscape")>=0 && parseFloat(navigator.appVersion) >= 4 && parseFloat(navigator.appVersion) < 5)? true : false;
    var IE4 = (document.all)? true : false;
    var NS6 = (parseFloat(navigator.appVersion) >= 5 && navigator.appName.indexOf("Netscape")>=0 )? true: false;
    function popupfile(mylink, windowname, hwidth, vheight, myroot)
        {
            //window.alert(mylink);
            if (! window.focus)return true;
            var href;
                if (typeof(mylink) == 'string')
                    href='cgi-bin/PopUp.pl?' + mylink + "&picw=" + hwidth + "&pich=" + vheight + "&";
                else
                    href='cgi-bin/PopUp.pl?' + mylink.href + "&picw=" + hwidth + "&pich=" + vheight + "&";
                //window.alert(href);
                window.open(href, windowname, 'width=' + (hwidth + 100) + ',height=' + (vheight + 150) + ',left=5,top=5,Dependent=yes,resizable=yes,scrollbars=auto');
                return false;
        }
    function popupnew(mylink, windowname, hwidth, vheight)
        {
            //window.alert(mylink);
            if (! window.focus)return true;
            var href;
                if (typeof(mylink) == 'string')
                    href='cgi-bin/circ.pl?' + mylink + "&picw=" + hwidth + "&pich=" + vheight + "&";
                else
                    href='cgi-bin/circ.pl?' + mylink.href + "&picw=" + hwidth + "&pich=" + vheight + "&";
                window.open(href, windowname, 'width=' + (hwidth + 100) + ',height=' + (vheight + 200) + ',left=5,top=5,Dependent=yes,resizable=yes,scrollbars=auto');
                return false;
        }
    function popuppage(mylink, windowname, hwidth, vheight)
        {
            window.alert(mylink);
            if (! window.focus)return true;
            var href;
                if (typeof(mylink) == 'string')
                    href='cgi-bin/PopUp.pl?' + mylink + "&picw=" + hwidth + "&pich=" + vheight + "&";
                else
                    href='cgi-bin/PopUp.pl?' + mylink.href + "&picw=" + hwidth + "&pich=" + vheight + "&";
                window.open(href, windowname, 'width=' + (hwidth + 100) + ',height=' + (vheight + 200) + ',left=5,top=5,Dependent=yes,resizable=yes,scrollbars=auto');
                return false;
        }
    function popup(mylink, windowname, hwidth, vheight)
    {
          if (! window.focus)return true;
          var href;
          if (typeof(mylink) == 'string')
             href=mylink;
          else
             href=mylink.href;
          window.open(href, windowname, 'width=' + hwidth + ',height=' + vheight + ',left=10,top=10,Dependent=yes,resizable=yes,scrollbars=auto');
          return false;
    }
    function hidelayer(HideWho)
        {
	    if (IE4)
		eval(HideWho + ".style.visibility='hidden'")
	    else if (NS6)
		document.getElementById(HideWho).style.visibility='hidden'
	    else if (NS4)
		eval("document." + HideWho + ".visibility='hide'");
	}

    function coordinates()
        {
        if (event.srcElement.id=="backlink")
            {
            crossobj=document.getElementById? document.getElementById("backlink") : document.all.backlink
            mouseover=true
            pleft=document.getElementById('backlink').style.pixelLeft
            ptop=document.getElementById('backlink').style.pixelTop
            xcoor=event.clientX
            ycoor=event.clientY
            document.onmousemove=moveImage
            }
        if (event.srcElement.id=="sticky")
            {
            crossobj=document.getElementById? document.getElementById("sticky") : document.all.sticky
            mouseover=true
            pleft=crossobj.style.pixelLeft
            ptop=crossobj.style.pixelTop
            xcoor=event.clientX
            ycoor=event.clientY
            document.onmousemove=moveImage
            }
        }
    function moveImage()
        {
        if (mouseover&&event.button==1)
            {
            crossobj.style.pixelLeft=pleft+event.clientX-xcoor
            crossobj.style.pixelTop=ptop+event.clientY-ycoor
            return false
            }
        }
    function mouseup()
        {
            mouseover=false
        }
    document.onmousedown=coordinates
    document.onmouseup=mouseup

