// JavaScript Document
var activeNavbar2 = false;
var menu2Timer;
function hideMenu(currMenu)
{
	if (activeNavbar2 == false)
	{
		thisMenu = document.getElementById(currMenu).style;
		thisMenu.display = "none";
	}			
}

function showMenu(currMenu)
{
	thisMenu = document.getElementById(currMenu).style;
	thisMenu.display = "block";
	activeMenu(currMenu);
}

function beginTimeout(currMenu)
{
	menu2Timer = window.setTimeout("hideMenu('navigationBar2')",1000);
}

function activeMenu(currMenu)
{
	activeNavbar2 = true;
	window.clearTimeout(menu2Timer);
}

function deactiveMenu(currMenu)
{
	activeNavbar2 = false;
	beginTimeout(currMenu);
}

function closeWindow()
{
	window.close();
}

function openWindow(href)
{
	window.open(href,"inspiration","toolbar=no,location=no,scrollbars=no,width=750,height=500");
}

