document.writeln(''); var ims = 'pupils.gif'; document.write('');



var theta=0;
var am = 40;
var ox = 140;
var oy = 80;
var irad = 80;
var imw = 15;
var imh = 16;
var tpause = 10;

function getRef(etcn) {
  if (document.layers) return document.layers[etcn];
    else if (document.all) return document.all[etcn];
    else return document.getElementById(etcn);
}

function mymove(cx,cy,rad,deg,off){
 theta+=deg; tdif=0;
 for (var i = 0; i <am; i++){
  var si=getRef("bob"+i);
  m1=theta*tdif; m2=theta+(tdif/deg);
  j1=(parseInt(rad*Math.cos(m1))+cx)*1.5;
  j2=parseInt(rad*Math.sin(m2))+cy;
  if (document.layers) si.moveTo(j1,j2); else { si.style.left=j1; si.style.top=j2; }
  tdif-=off;
  }
  x=cx;y=cy;r=rad;d=deg;o=off;
  t=setTimeout('mymove(x,y,r,d,o)',tpause);
}

for (var i=0; i<am; i++){
 document.write('<div id="bob'+i+'" style="position:absolute;top:0px;left:0px; width:'+imw+'px; height:'+imh+'px;">');
 document.write('<img src="'+ims+'" width='+imw+' height='+imh+'>');
 document.write('</div>');
}
ox = ox + irad*1.5;
oy = oy + irad;
mymove(ox,oy,irad,0.01,-0.06);



//DO NOT MODIFY
/*
<APPLETINFO>
appletname=jsthetaimage
applettype=JAVASCRIPT
created=1083849694512
appletfilename=jsthetaimage1.js
</APPLETINFO>
<JAVASCRIPT>
imw=15
imh=16
am=40
irad=80
ox=10
oy=10
tpause=10
</JAVASCRIPT>
<HTMLGENERATOR>
mystarttag=-
mystarttag_GS=1;img1
img1=pupils.gif
img1_GS=4;
</HTMLGENERATOR>
*/
