﻿//displays menu sectionfunction displaySubmenu(){pageID = new Array ("index", "home", "people", "portfolio", "process", "philosophy", "affiliates", "contact");newstyle = new Array();var currentpagetemp = window.location.toString();var currentpage = currentpagetemp.toLowerCase();for (i=0; i<pageID.length; i++) {if (currentpage.indexOf(pageID[i])>-1){	var newstyle = document.getElementById(pageID[i]).style;	newstyle.display = "block";}}}function swapImage(img, url) {    img.src = url;}function toggleLayer(whichLayer){if (document.getElementById){// this is the way the standards workvar style2 = document.getElementById(whichLayer).style;style2.display = style2.display? "":"block";}else if (document.all){// this is the way old msie versions workvar style2 = document.all[whichLayer].style;style2.display = style2.display? "":"block";}else if (document.layers){// this is the way nn4 worksvar style2 = document.layers[whichLayer].style;style2.display = style2.display? "":"block";}}function doStuff(){alert("doStuff called")}function detectBrowser(){var detect = navigator.userAgent.toLowerCase();var OS,browser,version,total,thestring;if (checkIt('konqueror')){	browser = "Konqueror";	OS = "Linux";}else if (checkIt('safari')) browser = "Safari"else if (checkIt('omniweb')) browser = "OmniWeb"else if (checkIt('opera')) browser = "Opera"else if (checkIt('webtv')) browser = "WebTV";else if (checkIt('icab')) browser = "iCab"else if (checkIt('msie')) browser = "Internet Explorer"else if (!checkIt('compatible')){	browser = "Netscape Navigator"	version = detect.charAt(8);}else browser = "An unknown browser";if (!version) version = detect.charAt(place + thestring.length);if (!OS){	if (checkIt('linux')) OS = "Linux";	else if (checkIt('x11')) OS = "Unix";	else if (checkIt('mac')) OS = "Mac"	else if (checkIt('win')) OS = "Windows"	else OS = "an unknown operating system";}function checkIt(string){	place = detect.indexOf(string) + 1;	thestring = string;	return place;}if (browser == "Netscape Navigator") {var cssLink="CSS/AA_firefoxhack.css";}if (browser == "Safari") {var cssLink="CSS/AA_safarihack.css";}var str_link = "<link href=\"" + cssLink + "\" rel=\"stylesheet\" type=\"text/css\" media=\"all\" />"document.write(str_link)}function confirmDelete() {myBox = confirm("Are you sure you want to delete this record?)")// if (myBox) {//do stuff//}}