var jsCharInfo= null;
var IE = document.all?true:false

function Show(event, charID)
{
    var target = (event.target || event.srcElement).href;
    //var charID = target.substr (target.indexOf ("&ocharid=") + 9, 9);
    
    var Desc = jsCharInfo [charID];
    if (Desc == null || Desc.desc == "")
      return;
    
    document.getElementById("charPopupName").innerHTML = '<img src="graphics/cantr/pictures/'+(Desc.sex == 2 ? 'fe' : '')+'male.gif"> '+Desc.name;
    document.getElementById("charPopupDesc").innerHTML = Desc.desc;
    
    var objDiv = document.getElementById("charPopup");

    if (IE) {
      x = event.clientX + document.body.scrollLeft;
      y = event.clientY + document.body.scrollTop + 25;
    } else {
      x = event.pageX;
      y = event.pageY + 25;
    }

    objDiv.style.display = "block";
    objDiv.style.left = x + "px";
    objDiv.style.top = y + "px";
}
/* this function hides the pop-up when
 user moves the mouse out of the link */
function Hide()
{
    /* hide the pop-up */
    var objDiv = document.getElementById("charPopup");

    objDiv.style.display="none";
}

