

var navURLs  = new Array('index.html', 'TheodoraHarvey.html','structure.html', 'cost.html', 'faq.html', 'resources.html','contact.html');

var linkText = new Array('home', 'TheodoraHarvey.html','structure', 'cost', 'questions', 'resources', 'contact');

function navbar() {
	var navStr= '';
	for (var i = 0; i < navURLs.length; i++) {
			    	  	//if (location.href != navURLs[i]) {		    	 
		//if (location.href.indexOf(navURLs[i]) == -1) {
			navStr += '<div class="menu_item"><a href="' + navURLs[i] + '">' + linkText[i] + '</a></div><b> '; 
			}
		}
	document.writeln('<br><br>' + navStr);



function setActiveStylesheet(title) {
	linksFound = document.getElementsByTagName("link")
	for (i=0; i<linksFound.length; i++) {
		thisLink = linksFound[i]
    	if (thisLink.getAttribute("rel").indexOf("style") > -1 && thisLink.getAttribute("title")) {
			thisLink.disabled = true
			if (thisLink.getAttribute("title") == title) {
				thisLink.disabled = false
			}
		}
	}
};



var popwindow;

function popup(org)

{
 popwindow = window.open( org, "","toolbar=yes, resizable=yes, scollbar=yes, location=yes, top=300,left=700,width=500,height=500")

}

 

function closepopup()
{
if (popwindow != null ) popwindow.close();
};


window.onunload = close_popup;




 function showDIV(subBG)
        {
            if (document.getElementById) // Netscape 6 and IE 5+
            {
                var targetElement = document.getElementById(subBG);
                targetElement.style.visibility = 'visible';
            }
        }


function hideDIV(subBG)
        {
            if (document.getElementById) 
            {
                var targetElement = document.getElementById(subBG);
                targetElement.style.visibility = 'hidden';
            }
        }


