limit=20;
popup=null;
document.write('<div id="popup"></div>');
resIdTable=null;
resRefTable=null;
FF=-1!=navigator.userAgent.indexOf("Firefox");
if(FF)window.onscroll=function(){
	if(popup)popup.style.top=window.pageYOffset+"px"
};
	
else if(window.opera)document.body.onscroll=function(){
	popup.style.top=window.pageYOffset+"px"
};
document.onmouseover=function(e){
if(!popup){
	popup=document.getElementById("popup");
	if(!popup)return
	}
	
sourceObj=e?e.target:event.srcElement;

if(popup.hasChildNodes()){
	var checkingElement=sourceObj;
	var hoverPopup=null;
	while(checkingElement.nodeType!=9&&checkingElement.id!="popup"){
		hoverPopup=checkingElement;
		checkingElement=checkingElement.parentNode
	}
	for(var i=0;i<popup.childNodes.length;i++)
		if(sourceObj==popup.childNodes[i].origin)break;
		if(checkingElement.nodeType!=9){
			if(i!=popup.childNodes.length)hoverPopup=hoverPopup.nextSibling;
			while(hoverPopup.nextSibling)popup.removeChild(hoverPopup.nextSibling)
		}else{
			if(i==popup.childNodes.length)popup.innerHTML="";
			else while(popup.childNodes.length>1)popup.removeChild(popup.lastChild)
		}
	}
	if(sourceObj.tagName=="A"){
		if(sourceObj.innerHTML.match(/^&gt;&gt;\d+(-\d+)?/)){
			if(!popup.childNodes.length||sourceObj!=popup.lastChild.origin){
				respopup(e,sourceObj.innerHTML)
			}
		}
	}
};

function getResElements(num){
var resTitleObj=document.getElementById("res"+num);
if(!resTitleObj)return null;
var resBodyObj=resTitleObj.nextSibling;
if(resBodyObj.nodeType==3)resBodyObj=resBodyObj.nextSibling;resTitleObj=resTitleObj.cloneNode(true);
resTitleObj.removeAttribute("id");
return[resTitleObj,resBodyObj.cloneNode(true)]
}
function respopup(e,res){
var popupContents=new Array();
if(res instanceof Array){
for(var i=0;i<res.length;i++){
var resElements=getResElements(res[i]);
popupContents.push(resElements[0]);
popupContents.push(resElements[1])
}
}else if(res.match(/^&gt;&gt;(\d+(-\d+)?)/)){
if(RegExp.$2){
var n=Number(RegExp.$1.split("-")[0]);
var m=Number(RegExp.$1.split("-")[1]);
if(m-n<limit){
for(var i=n;i<=m;i++){
var resElements=getResElements(i);
if(resElements){popupContents.push(resElements[0]);
popupContents.push(resElements[1])
}
}
}
}else{
var resElements=getResElements(RegExp.$1);
if(resElements){popupContents.push(resElements[0]);
popupContents.push(resElements[1])
}
}
}
if(popupContents.length){
var myPopup=document.createElement("DL");
myPopup.ondblclick=function(){
this.parentNode.removeChild(this)
};
myPopup.origin=sourceObj;
for(var i=0;i<popupContents.length;i++){
myPopup.appendChild(popupContents[i])}myPopup=popup.appendChild(myPopup);
var ww=document.all?document.body.clientWidth:window.innerWidth;
myPopup.style.whiteSpace="nowrap";
var pw=myPopup.offsetWidth;myPopup.style.whiteSpace="normal";
var x=e?e.clientX:event.x;
if(ww<x+pw)x-=pw;
if(x<0)x=0;
var wh=document.all?document.body.clientHeight:window.innerHeight;
var ph=myPopup.offsetHeight;
var y=e?e.clientY:event.y;
y-=ph;
if(y<0)y+=ph;
if(wh<y+ph)y-=y+ph-wh;
if(y<0){
y=0;
myPopup.style.height=wh+"px"
}
myPopup.style.left=x+"px";
myPopup.style.top=y+"px";
if(window.opera)myPopup.style.width=myPopup.offsetWidth+24+"px"
}
}