


function lib2bwcheck(){
	this.ver=navigator.appVersion;
	this.agent=navigator.userAgent;
	this.dom=document.getElementById?1:0;
	this.opera5=this.agent.indexOf("Opera 5")>-1;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0; 
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6;
	this.mac=this.agent.indexOf("Mac")>-1;
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5);
	return this;
}
var bw=new lib2bwcheck()
var px = bw.ns4||window.opera?"":"px";

function run() {
 var cx, cy, a;
 var css, obj, nest, ooo;
 if ((document.all) && (!bw.opera5)) {
  movy = document.body.clientHeight-64;
  movx = document.body.clientWidth-50;
 } else {
  movx = window.innerWidth-50;
  movy = window.innerHeight-64;
 }
 for (var i=0; i<maxitems; i++) {
  cx = Math.round( (sxfrom + Math.cos(i*Math.PI*oy/(50*maxitems)+ox)*sxto)*movx/100 );
  cy = Math.round( (syfrom + Math.sin(i*Math.PI*oy/(50*maxitems)+ox)*syto)*movy/100 );
  if (bw.ns4) {
	ooo = eval("document.s"+i);
	ooo.moveTo(cx, cy);
  } else {
	obj = "s"+i; nest="";
   	css= bw.dom?document.getElementById(obj).style:bw.ie4?document.all[obj].style:bw.ns4?eval(nest+"document.layers." +obj):0;
	css.left = cx; css.top = cy;
  }
 }
 oy+=yspeed; if (oy>sdto || oy<sdfrom) { yspeed=-yspeed; oy+=yspeed; }
 ox+=xspeed;
 setTimeout("run()",tpause,"JavaScript");
}

var sxfrom=50;
var sxto=40;
var syfrom=5;
var syto=5;
var sdfrom=50;
var sdto=25;
var yspeed=5;
var xspeed=1.5;
var pcol=Number(0).toString(16);
var tpause=20;
var schar="RSTMarine";

var fontface = 0;
var fontsize = "10";
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 maxitems = schar.length;
var t=0;
t = pcol.length;
for (var i=0; i<6-t; i++) pcol = '0'+pcol;

if ((document.all) && (!bw.opera5)) {
  movy = document.body.clientHeight-64;
  movx = document.body.clientWidth-50;
} else {
  movx = window.innerWidth-50;
  movy = window.innerHeight-64;
}

var ox, oy;
ox=Math.PI; oy=sdfrom;
xspeed = xspeed*Math.PI/180;
pa = new Array();

for (var i=0; i<maxitems; i++) {
  if (bw.ns4) document.writeln("<layer id='s"+i+"'>");
    else document.writeln("<div id='s"+i+"' style='position:absolute; z-index:3;'>");
  document.writeln('<font color=#'+pcol+' face="'+fontface+'" size="'+fontsize+'">'+schar.substr(i,1)+'</font>');
  if (bw.ns4) document.writeln("</layer>");
    else { document.writeln("</div>");	}
}

setTimeout("run()",tpause,"JavaScript");



//DO NOT MODIFY
/*
<APPLETINFO>
appletname=jshalotext
applettype=JAVASCRIPT
created=1123171506062
appletfilename=marinehalotext.js
</APPLETINFO>
<JAVASCRIPT>
fontsize=10
sxfrom=50
syfrom=5
sxto=40
syto=5
sdfrom=50
sdto=25
yspeed=5
xspeed=1.5
tpause=20
schar=RSTMarine
fontface=0
pcol=0
</JAVASCRIPT>
<HTMLGENERATOR>
null</HTMLGENERATOR>
*/