/* FILE ARCHIVED ON 12:05:19 Jan 16, 2009 AND RETRIEVED FROM THE AN OPENWAYBACK INSTANCE ON 19:07:26 Jun 25, 2024. JAVASCRIPT APPENDED BY OPENWAYBACK, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). */ // JavaScript Document function findPosX(obj){ var curleft = 0; if (obj.offsetParent){ while (obj.offsetParent){ curleft += obj.offsetLeft; obj = obj.offsetParent; } } else if (obj.x) curleft += obj.x; return curleft; } function findPosY(obj){ var curtop = 0; if (obj.offsetParent){ while (obj.offsetParent){ curtop += obj.offsetTop obj = obj.offsetParent; } } else if (obj.y) curtop += obj.y; return curtop; } function toggle(id){ section = document.getElementById(id); sectionImage = document.getElementById("img_"+id); main = document.getElementById("main_"+id); if (section.style.display == 'none'){ section.style.display = "block"; sectionImage.src = "/images/minus.gif"; main_Ypos = findPosY(main); // If expanding the bio will result in it spilling off the page, reset the page scroll // so the bottom of the bio lands on the bottom of the page. Like so... // If the (Y position of the bio + bio height) > (Y position of the window + window height) // then, set Y scroll = bottom of the bio - window height. if(document.all){ if(ie7) { scrollTop = document.documentElement.scrollTop; offsetHeight = document.documentElement.offsetHeight; } else { scrollTop = document.body.scrollTop; offsetHeight = document.body.offsetHeight; } if((main_Ypos+main.offsetHeight)>=(scrollTop+offsetHeight)){ window.scrollTo(0,main_Ypos+main.offsetHeight-offsetHeight+20); } }else { if((main_Ypos+main.offsetHeight)>=(window.pageYOffset+window.innerHeight)){ window.scrollTo(0,main_Ypos+main.offsetHeight-window.innerHeight+20); } } // or... if you want to just point to the top of the bio, add a named anchor above each // bio, and uncomment the assignment below to set the browser position to the hash. //location.hash = 'a_'+id; }else{ section.style.display = "none"; sectionImage.src = "/images/plus.gif"; } }