var lastpop="";
function ShowPopup(t,countrycode,left,top)
{
    // retrieve the Map. to determince the Top position
    var mapitem=document.getElementById("themap");
    //Make sure that there is information to display
    if (document.getElementById(countrycode)== null)
    {
        // if there are no companies released at this point in time
        // we can still allow them to click through, but there is nothing to display in the popup
        lastpop="";
    }
    else
    {
        // get the popup that we want to display
        hp = document.getElementById(countrycode);
        lastpop=hp;
        // Set position of hover-over popup 
        var newleft=left;
        if(left>300)
        { 
            newleft=left-278;
        }
        hp.style.left =7+ newleft +'px';
        hp.style.top=mapitem.offsetTop+top+'px';
        // Set popup to visible
        hp.style.visibility = "Visible";
    }
}
//make the popup go away
function HidePopup()
{
    if (lastpop!="")
    {
        lastpop.style.visibility = "Hidden";
    }
}