var communityTimeout;

function ShowCommunityPopup(source){
    hp = document.getElementById("nsCommunityBox");
    
    if (communityTimeout) {
        clearInterval(communityTimeout);
    }
    if (source) {
        hp.style.top = source.offsetTop + 20 + "px";
        hp.style.left = source.offsetLeft + "px";
				hp.style.visibility = "visible";
    }
}

function HideCommunityPopup(){
    communityTimeout = setTimeout("HideCommunityPopupRunner();", 1000);
}

function HideCommunityPopupRunner(){
    $('nsCommunityBox').style.visibility = "hidden";
}

function ShowMoreCommunities(source, next){
    source.style.visibility = "hidden";
    next.style.visibility = "inherit";
}
