﻿var timeout = 1250;
var closetimer = 0;

function shareboxclosetime() {
    closetimer = window.setTimeout(shareboxhide, timeout);
}

function shareboxcancelclosetime() {
    if (closetimer) {
        window.clearTimeout(closetimer);
        closetimer = null;
    }
}

function shareboxreveal() { // Show, hide or add to territory selector box
    shareboxcancelclosetime();
    document.getElementById('sharebox').style.visibility = 'visible';
}

function shareboxhide() { 	// Clear the contents of the box and hide the div
    document.getElementById('sharebox').style.visibility = 'hidden';
}


function shareboxreveal2() { // Show, hide or add to territory selector box
    document.getElementById('sharebox2').style.display = 'block';
}

function shareboxhide2() { 	// Clear the contents of the box and hide the div
    document.getElementById('sharebox2').style.display = 'none';
}


function shareboxreveal3() { // Show, hide or add to territory selector box
    document.getElementById('sharebox3').style.display = 'block';
}

function shareboxhide3() { 	// Clear the contents of the box and hide the div
    document.getElementById('sharebox3').style.display = 'none';
}
