<!-- Original:  Russ Wong, russ@scatterthought.com -->
<!-- Please keep this text with the following code -->
<!-- Last modified on February 18, 2004            -->

<!-- Frame Content Protector -->
<!-- REMOVE COMMENT FRAME FROM FOLLOWING LINE BEFORE UPLOADING -->
if( self==top ) top.location.href="http://archive.scatterthought.com/frame.htm?"+window.location.href;

<!-- E-mail Protector -->
var to, site="scatterthought.com", subject="Scatterthought.com feedback";
function email(to) {window.location="mailto:"+to+'@'+site+"?subject="+subject;}
function emailyes(to) {window.location="mailto:"+to+'@'+site+"?subject=Yes, you've been fair";}
function emailno(to) {window.location="mailto:"+to+'@'+site+"?subject=No, you haven't been fair";}

<!-- Resume Popup -->
function Resume() {
window.open('http://archive.scatterthought.com/resume','windowResume','top=80,left=60,width=730,height=580'); }

<!-- Photo Gallery Popup 2004 (loosely based on code from CNET's Builder.com) -->
var wt, ht, pos, scrllbr, pic=new Image();
function ScatterPop(pic,wt,ht) {
  scrllbr="false";
  wt=wt+6; //accounts for the Netscape title and window borders
  ht=ht+27;
  if (navigator.appName.indexOf("Microsoft")!=-1) {
    wt=wt+4; //accounts for the IE title and window borders
    ht=ht+3;
    }
  if (wt>screen.width) {
    wt=screen.width;
    ht=ht+16; //accounts for the horizontal scrollbar
    scrllbr="auto"; //adds the horizontal scrollbar
    }
  pos=screen.width-wt;
  top.faux=window.open('','Popped','resizable=no,left='+pos+',top=0,width=1,height=1');
  top.faux.moveTo(pos,0);
  top.faux.resizeTo(wt,ht);
  top.faux.moveTo(pos,0); //move the window both before and after the resize to account for changes to the popup height and width
  top.faux.focus();
  var fd=top.faux.document;
  fd.open();
  fd.write('<html><head><title>Russ\'s Photo Gallery</title><style>body{margin:0;}</style></head>');
  fd.write('<body bgcolor="#003366" scroll="'+scrllbr+'">');
  fd.write('<img src="images/'+pic+'.jpg"></body></html>');
  fd.close();
}

<!-- Photo Gallery Popup (loosely based on code from CNET's Builder.com) -->
var wt, ht, pos, scrllbr, pic=new Image();
function Popper(pic,wt,ht) {
  scrllbr="false";
  wt=wt+6; //accounts for the Netscape title and window borders
  ht=ht+27;
  if (navigator.appName.indexOf("Microsoft")!=-1) {
    wt=wt+4; //accounts for the IE title and window borders
    ht=ht+3;
    }
  if (wt>screen.width) {
    wt=screen.width;
    ht=ht+16; //accounts for the horizontal scrollbar
    scrllbr="auto"; //adds the horizontal scrollbar
    }
  pos=screen.width-wt;
  top.faux=window.open('','Popped','resizable=no,left='+pos+',top=0,width=1,height=1');
  top.faux.moveTo(pos,0);
  top.faux.resizeTo(wt,ht);
  top.faux.moveTo(pos,0); //move the window both before and after the resize to account for changes to the popup height and width
  top.faux.focus();
  var fd=top.faux.document;
  fd.open();
  fd.write('<html><head><title>Russ\'s Photo Gallery</title><style>body{margin:0;}</style></head>');
  fd.write('<body bgcolor="#003366" scroll="'+scrllbr+'">');
  fd.write('<img src="http://www.rpwong.com/images/'+pic+'.jpg"></body></html>');
  fd.close();
}
