/* start preload images */navbioresumedown = new Image();navbioresumedown.src="/imgs/navbioresumein.gif";navbioresumeover = new Image();navbioresumeover.src="/imgs/navbioresumeover.gif";navcontactdown = new Image();navcontactdown.src="/imgs/navcontactin.gif";navcontactover = new Image();navcontactover.src="/imgs/navcontactover.gif";navdesigndown = new Image();navdesigndown.src="/imgs/navdesignin.gif";navdesignover = new Image();navdesignover.src="/imgs/navdesignover.gif";navhomedown = new Image();navhomedown.src="/imgs/navhomein.gif";navhomeover = new Image();navhomeover.src="/imgs/navhomeover.gif";navotherdown = new Image();navotherdown.src="/imgs/navotherin.gif";navotherover = new Image();navotherover.src="/imgs/navotherover.gif";navpromodown = new Image();navpromodown.src="/imgs/navpromoin.gif";navpromoover = new Image();navpromoover.src="/imgs/navpromoover.gif";navpubsdown = new Image();navpubsdown.src="/imgs/navpubsin.gif";navpubsover = new Image();navpubsover.src="/imgs/navpubsover.gif";navtestimonialsdown = new Image();navtestimonialsdown.src="/imgs/navtestimonialsin.gif";navtestimonialsover = new Image();navtestimonialsover.src="/imgs/navtestimonialsover.gif";/* end preload images *//* start setting the "in" states dynamically */function checkAllImages() {	if (section == 'bioresume') document.images.navbioresume.src=navbioresumedown.src;	if (section == 'contact')  document.images.navcontact.src=navcontactdown.src; 		if (section == 'design')  document.images.navdesign.src=navdesigndown.src; 		if (section == 'home')  document.images.navhome.src=navhomedown.src; 		if (section == 'other')  document.images.navother.src=navotherdown.src; 		if (section == 'promo')  document.images.navpromo.src=navpromodown.src; 		if (section == 'pubs')  document.images.navpubs.src=navpubsdown.src; 		if (section == 'testimonials')  document.images.navtestimonials.src=navtestimonialsdown.src; 		if (section != 'bioresume') document.images.navbioresume.src='/imgs/navbioresumeoff.gif';	if (section != 'contact')  document.images.navcontact.src='/imgs/navcontactoff.gif'; 		if (section != 'design')  document.images.navdesign.src='/imgs/navdesignoff.gif'; 		if (section != 'home')  document.images.navhome.src='/imgs/navhomeoff.gif'; 		if (section != 'other')  document.images.navother.src='/imgs/navotheroff.gif'; 		if (section != 'promo')  document.images.navpromo.src='/imgs/navpromooff.gif'; 		if (section != 'pubs')  document.images.navpubs.src='/imgs/navpubsoff.gif'; 		if (section != 'testimonials')  document.images.navtestimonials.src='/imgs/navtestimonialsoff.gif'; 	}/* start rollover script */function rollover(imgname,state) {	document.images[imgname].src = '/imgs/' +imgname + state + '.gif';	var navplussection = 'nav' + section;	if (navplussection == imgname) document.images[imgname].src = '/imgs/' +imgname + 'in.gif';}/* end rollover script *//* 	we keep forgetting it, so here's how to access the visibility attribute:	document.getElementById('subsubClaims').style.display='none';*/function checksubnav() {	/*	let's build an array of links,	and if a link's href == the document's	location, we change its appearance.		*/		for (var i=0; i<document.links.length; i++) {		if (document.links[i].className == "subnav") {				if (document.links[i].href == document.location) {				document.links[i].style.color = "#00267f";				document.links[i].style.fontWeight = "bold";			}			if (document.links[i].href != document.location) {				if (document.links[i].parentElement) document.links[i].parentElement.style.backgroundColor = "#f5f5f5";				if (document.links[i].parentNode) document.links[i].parentNode.style.backgroundColor = "#f5f5f5";			}		}		if (document.links[i].className == "subsubnav") {				if (document.links[i].href == document.location) {				document.links[i].style.color = "#00267f";				document.links[i].style.fontWeight = "bold";			}			if (document.links[i].href != document.location) {				if (document.links[i].parentElement) document.links[i].parentElement.parentElement.style.backgroundColor = "#fff";				if (document.links[i].parentNode) document.links[i].parentNode.parentNode.style.backgroundColor = "#fff";			}		}	}/*	sweet									*/}/*	end setting the "in" state dynamically	*/function popup(bigimage, origwidth, origheight) {	popwidth = origwidth + 50;	popheight = origheight + 20;	popurl = 'popupwindow.php?showmevar=' + bigimage;	/*window.alert(bigimage + ' ' + popwidth + ' ' + popheight);*/	window.open(popurl,'popupwindow','width=' + popwidth + ', height=' + popheight + ', status, scrollbars, resizable');}