


op5 = window.opera;
ns6 = document.getElementById;
ie = document.all;
ns4 = document.layers;

function jsztrun() {
  var cx, cy;
  if (ie && !op5) {
	movy = document.body.clientHeight-64;
	movx = document.body.clientWidth-50;
  } else {
	movx = window.innerWidth-50;
	movy = window.innerHeight-64;
  }
  ps+=pixelstep; if (ps>sdto) {
	ps = sdfrom;
	t = Math.round(Math.random()*(maxitems-1));
  }
  cx = Math.round(movx*ox[t]/100);
  cy = Math.round(movy*oy[t]/100);
  if (ns4) {
	document.jszt.document.open();
	document.writeln('<layer id="jsztl">');
	document.write('<div style="font-size:' + ps + 'pt">');
	document.writeln('<font color=#'+pcol+' face="'+fontface+'">'+schar+'</font>');
	document.writeln('</div>');
	document.writeln("</layer>");
	document.jszt.document.close();
	eval("document.jszt").moveTo(cx, cy);
  } else {
	tID.style.left = cx; tID.style.top = cy;
	tID.style.fontSize = ps+'pt';
  }
  setTimeout("jsztrun()",tpause);
}

var maxitems=20;
var sxfrom=30;
var sxto=60;
var syfrom=20;
var syto=80;
var sdfrom=1;
var sdto=20;
var pixelstep=2;
var pcol=Number(255).toString(16);
var tpause=60;
var schar="JSZoomText";

var fontface = 0;
if (fontface==0) fontface = 'Arial, Helvetica, sans-serif';
  else if (fontface==1) fontface = 'Times New Roman, serif';
  else if (fontface==2) fontface = 'Courier New, Courier, mono';
  else if (fontface==3) fontface = 'Georgia, Times New Roman, Times, serif';
  else fontface = 'Verdana, Arial, Helvetica, sans-serif';

var t=0; t = pcol.length;
for (var i=0; i<6-t; i++) pcol = '0'+pcol;

ox = new Array();
oy = new Array();

for (var i=0; i<maxitems; i++) {
  ox[i] = Math.round(Math.random()*(sxto-sxfrom)+sxfrom);
  oy[i] = Math.round(Math.random()*(syto-syfrom)+syfrom);
}

t = Math.round(Math.random()*(maxitems-1));
var ps = sdfrom;

document.writeln('<div id="jszt" style="position:absolute;">');
if (!ns4) document.writeln('<font color=#'+pcol+' face="'+fontface+'">'+schar+'</font>');
document.writeln('</div>');
var tID = (ns4)?0:(ie)?document.all['jszt']:document.getElementById('jszt');

setTimeout("jsztrun()",tpause);



//DO NOT MODIFY
/*
<APPLETINFO>
appletname=jszoomtext
applettype=JAVASCRIPT
created=1051171471330
appletfilename=jszoomtext1.js
</APPLETINFO>
<JAVASCRIPT>
maxitems=20
sxfrom=10
sxto=50
syfrom=20
syto=80
sdfrom=1
sdto=20
pixelstep=2
tpause=20
schar=JSZoomText
fontface=0
pcol=255
</JAVASCRIPT>
<HTMLGENERATOR>
null</HTMLGENERATOR>
*/
