<!--
// script bundle - present on all pages (except frameset)

// 1 --------------------------------------------------------------
// change master frameset page title for non-frameset user-friendliness
onerror = null // netscape 3's version of javascript can't handle this function so hide any errors

function fs_title(page_title) {
	top.document.title = page_title
}

// 2 --------------------------------------------------------------
// if this page has been orphaned, sent user to nearest frameset

	var orphan

    if (top.location.href == self.location) { // if page is not in its frameset
		orphan = true
	}
	
	else { 
		orphan = false
	}

	var siteSection 
	// which sectio of the site are we in? (about, methodology, portfolio, case, contact, home)

	if (top.location.href.indexOf("../../about/index.html") != -1) {
		siteSection = "about"
	}
	else if (top.location.href.indexOf("../../methodology/index.html") != -1) {
		siteSection = "methodology"
	}
	else if (top.location.href.indexOf("../../portfolio/index.html") != -1) {
		siteSection = "portfolio"
	}
	else if (top.location.href.indexOf("../../casestudies/index.html") != -1) {
		siteSection = "case"
	}
	else if (top.location.href.indexOf("../../contact/index.html") != -1) {
		siteSection = "contact"
	}
	else if (top.location.href.indexOf("../index.html") != -1) {
		siteSection = "home"
	}
	else {
		siteSection = "home"
	}

	var baseURL
		baseURL = "../../index.html"

	if (orphan == true) {	
		top.location.href = (baseURL + siteSection + '/index.htm')
	}
//-->