﻿function windowsize(){var b=0,a=0,c=false;if(typeof window.innerWidth=="number"){b=window.innerWidth;a=window.innerHeight}else if(document.documentElement&&(document.documentElement.clientWidth||document.documentElement.clientHeight)){b=document.documentElement.clientWidth;a=document.documentElement.clientHeight;c=true}else if(document.body&&(document.body.clientWidth||document.body.clientHeight)){b=document.body.clientWidth;a=document.body.clientHeight;c=true}return [b,a,c]}window.onresize=sizer;function sizer(){wSize=windowsize();cRight=findDOM("copy",true);if(wSize[1]<700){cRight.marginLeft="";cRight.marginRight="";cRight.position=""}else{cRight.position="absolute";cRight.top=.95*wSize[1]+"px";if(wSize[2]){var a=findDOM("copy",false).offsetWidth;cRight.left=.5*(wSize[0]-a)+"px"}else{cRight.left=0;cRight.right=0;cRight.marginLeft="auto";cRight.marginRight="auto"}}cRight.visibility="visible"}function init(){sizer();toggleField("showgeneral",mainLinks)}var mainLinks=["showgeneral","showservices","showbackground","showlinks","showcontact"],backLinks=["professional","educational"],linkLinks=["publications","articles","video"];function refreshToggler(a){for(var b in a)findDOM(a[b],true).display="none"}function toggleField(c,a){var b=findDOM(c,true);if(b.display=="none"){refreshToggler(a);b.display="block"}else if(a!=mainLinks)refreshToggler(a)}var backAnchors=["proLink","eduLink"],linkAnchors=["pubLink","artLink","vidLink"];function refreshOpac(a){for(var b in a)findDOM(a[b],true).opacity=1}function toggleOpac(c,a,e){var b=findDOM(c,true);if(b.opacity==.99)refreshOpac(a);else for(var d in a)if(a[d]==c)b.opacity=.99;else findDOM(a[d],true).opacity=e}var WindowObjectReference=null;function cover_pop(c,a,d,b){if(WindowObjectReference==null||WindowObjectReference.closed){var e="copyhistory=no,toolbar=no,location=no,menubar=no,width="+d+",height="+b;WindowObjectReference=window.open(c,a,e)}else WindowObjectReference.focus()}
