NS6 			= (document.getElementById&&!document.all);
IE 			= (document.all);
AcceptableBrowser 	= (NS6 || IE);



function PopUpAnnouncement()
{ 
	PopUpAnnounce2()
	AnnounceWindow = window.open('announce.htm','AnnounceWindow','resizable,scrollbars,width=300,height=320,left=' + (screen.width - 370) + ',top=110');
	AnnounceWindow.focus();
}



function PopUpAnnounce2()
{ 
	Announce2Window = window.open('announce2.htm','Announce2Window','resizable,scrollbars,width=300,height=220,left=' + (screen.width - 370) + ',top=460');
	Announce2Window.focus();
}



function PopUpReading()
{ 
	ReadingWindow = window.open('reading.htm','ReadingWindow','resizable,scrollbars,width=300,height=220,left=' + (screen.width - 370) + ',top=460');
	ReadingWindow.focus();
}



function SpareWindow(htmlDoc) 
{ 
	NavWindow = window.open(htmlDoc,'SpareWindow','resizable,scrollbars,width=530,height=300,left=' + (screen.width - 580) + ',top=' + (screen.height - 380));
	timerx = setTimeout("NavWindowfocus()",250);
}



function NavWindowfocus()
{
	NavWindow.focus();
}


function ChangeWebColors()
{	
	strHref = location.href;
	currentLocation = strHref.substr(strHref.lastIndexOf("/",strHref.length) + 1);
	if (strHref.indexOf("djp") == -1)
		window.location = "../../djp/html/" + currentLocation
	else
		window.location = "../../SafeColors/html/" + currentLocation;
}






function hideAll()
{

	if (AcceptableBrowser)
	{
		if (NS6)
		{
			historyCaption=document.getElementById("historyCaption").style
			historyCaption.visibility="hidden"

			projectsCaption=document.getElementById("projectsCaption").style
			projectsCaption.visibility="hidden"

			publicationsCaption=document.getElementById("publicationsCaption").style
			publicationsCaption.visibility="hidden"

			booksCaption=document.getElementById("booksCaption").style
			booksCaption.visibility="hidden"

			exhibitsCaption=document.getElementById("exhibitsCaption").style
			exhibitsCaption.visibility="hidden"

			readingsCaption=document.getElementById("readingsCaption").style
			readingsCaption.visibility="hidden"

			interviewsCaption=document.getElementById("interviewsCaption").style
			interviewsCaption.visibility="hidden"
		}
		else if (IE) 
		{
			historyCaption.style.visibility = "hidden"
			projectsCaption.style.visibility = "hidden"
			publicationsCaption.style.visibility = "hidden"
			booksCaption.style.visibility = "hidden"
			exhibitsCaption.style.visibility = "hidden"
			readingsCaption.style.visibility = "hidden"
			interviewsCaption.style.visibility = "hidden"

		}


	}
}



function showCategory(whichElement)
{

	if (AcceptableBrowser)
	{	hideAll()
		if (NS6)
		{
			strTHIS=document.getElementById(whichElement).style
			strTHIS.visibility = "visible"
		}
		else if (IE) 
		{
			whichElement.style.visibility = "visible"
		}
	}
}