/* popup.js
   --------
   Provides functionality to pop-up new windows.

   Copyright Nexus Modern Art
 */

function openPopup(page, name, options)
{
   Window = window.open(page, name, options);
}

function toggleDirections()
{
    var map = document.getElementById('map');
    
    if (map.style.display != 'block')
    {
        showDirections();
    }
    else
    {
        hideDirections();
    }
}

function showDirections()
{   
    var map = document.getElementById('map');
    map.style.display = 'block';
}

function hideDirections(e)
{
    var map = document.getElementById('map');
    map.style.display = 'none';
}