	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 popupvideo(mylink, windowname, hwidth, vheight, myroot)
	{
	    //window.alert(mylink);
	    if (! window.focus)return true;
	    var href;
		if (typeof(mylink) == 'string')
		    href=myroot + 'cgi-bin/PopUp.pl?' + mylink + "&picw=" + hwidth + "&pich=" + vheight + "&";
		else
		    href=myroot + 'cgi-bin/PopUp.pl?' + mylink.href + "&picw=" + hwidth + "&pich=" + vheight + "&";
		//window.alert(href);
		window.open(href, windowname, 'width=' + (hwidth + 100) + ',height=' + (vheight + 100) + ',left=5,top=5,Dependent=yes,resizable=yes,scrollbars=auto');
		return 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()
		{
			if (IE4)
				eval("sticky.style.visibility='hidden'")
			else if (NS6)
				document.getElementById("sticky").style.visibility='hidden'
			else if (NS4)
				eval("document.sticky.visibility='hide'")
			}
	function coordinates()
		{
		if (event.srcElement.id=="backlink")
		    {
		    mouseover=true
		    pleft=document.getElementById('backlink').style.pixelLeft
		    ptop=document.getElementById('backlink').style.pixelTop
		    xcoor=event.clientX
		    ycoor=event.clientY
		    document.onmousemove=moveImage1
		    }
		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
		}
	function coordinates1()
	{
	if (!backlink)
	    {
	    return
	    }
	if (event.srcElement.id=="backlink")
	    {
	    mouseover=true
	    pleft=document.getElementById('backlink').style.pixelLeft
	    ptop=document.getElementById('backlink').style.pixelTop
	    xcoor=event.clientX
	    ycoor=event.clientY
	    document.onmousemove=moveImage1
	    }
	}

	function moveImage1()
	{
	if (mouseover&&event.button==1)
	    {
	    document.getElementById('backlink').style.pixelLeft=pleft+event.clientX-xcoor
	    document.getElementById('backlink').style.pixelTop=ptop+event.clientY-ycoor
	    return false
	    }
	}
	function mouseup1()
	{
	    mouseover=false
	}
	function hidelayer1()
	{
	    if (IE4)
		eval("backlink.style.visibility='hidden'")
	    else if (NS6)
		document.getElementById("backlink").style.visibility='hidden'
	    else if (NS4)
		eval("document.backlink.visibility='hide'");
	}
	document.onmousedown=coordinates
	document.onmouseup=mouseup
