function Is() {
    var agent = navigator.userAgent.toLowerCase();
    this.major = parseInt(navigator.appVersion);
    this.minor = parseFloat(navigator.appVersion);
    this.ns  = ((agent.indexOf('mozilla')!=-1) && ((agent.indexOf('spoofer')==-1) && (agent.indexOf('compatible') == -1)));
    this.ns2 = (this.ns && (this.major == 2));
    this.ns3 = (this.ns && (this.major == 3));
    this.ns4b = (this.ns && (this.minor < 4.04));
    this.ns4 = (this.ns && (this.major >= 4));
    this.ie   = (agent.indexOf("msie") != -1);
    this.ie3  = (this.ie && (this.major == 2));
    this.ie4  = (this.ie && (this.major >= 4));
    this.op3 = (agent.indexOf("opera") != -1);
}

var is = new Is();
function Init(){
 if(is.ns4){doc="document"    ;sty="";      htm=".document";xpos="e.contentX";ypos="e.contentY";
  GetHeight=window.innerHeight;
  GetWidth=window.innerWidth;
 }else
  if(is.ie4){doc="document.all";sty=".style";htm=".innerHTML";         xpos="event.x";   ypos="event.y";
  GetHeight=document.body.clientHeight;
  GetWidth=document.body.clientWidth;
 }
 xPos1=0;yPos1=0;xPos2=0;yPos2=0;
 XM=(GetWidth-800)/2;
 YM=GetHeight-150;
 NameChangeCounter=0;
 actname=0;
 angle=0;
 RunTheAnni();
}

function SetSmall(Name){
 var msg = '<TABLE WIDTH=800 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD WIDTH=800 ALIGN=CENTER VALIGN=MIDDLE><FONT ID="kleintxt">'+Name+'</FONT></TD></TABLE>';
 if(is.ns4){
  eval(doc+'["klein"]'+htm+'.open()');
  eval(doc+'["klein"]'+htm+'.writeln(msg)');
  eval(doc+'["klein"]'+htm+'.close()');
 }else{
  eval(doc+'["klein"]'+htm+'=msg');
 }
}

function SetBig(Name){
 var msg = '<TABLE WIDTH=800 CELLPADDING=0 CELLSPACING=0 BORDER=0><TR><TD WIDTH=800 ALIGN=CENTER VALIGN=MIDDLE><FONT ID="grosstxt">'+Name+'</FONT></TD></TABLE>';
 if(is.ns4){
  eval(doc+'["gross"]'+htm+'.open()');
  eval(doc+'["gross"]'+htm+'.writeln(msg)');
  eval(doc+'["gross"]'+htm+'.close()');
 }else{
  eval(doc+'["gross"]'+htm+'=msg');
 }
}




function iteratecoords(){
 xPos1=Math.round(Math.sin(angle*0.017453292)*350)+XM;
 yPos1=Math.round(Math.cos(angle*0.017453292)*30)+YM;
 xPos2=Math.round(Math.sin(angle*0.017453292)*90)+XM;
 yPos2=Math.round(Math.cos(angle*0.017453292)*10)+YM+35;
 angle+=10;if(angle>360){angle-=360;}
 eval(doc+'["klein"]'+sty+'.left='+xPos2);
 eval(doc+'["klein"]'+sty+'.top='+yPos2);
 eval(doc+'["gross"]'+sty+'.left='+xPos1);
 eval(doc+'["gross"]'+sty+'.top='+yPos1);


 NameChangeCounter++;

 if(NameChangeCounter>20){
  NameChangeCounter=0;
  actname++;

  if(actname>NameList.length-1){actname=0}

  if (EffectList[actname] ==1 || EffectList[actname] ==3)  SetBig(NameList[actname]);
  if (EffectList[actname] ==2 || EffectList[actname] ==3) SetSmall(NameList[actname]);
 }
 window.setTimeout("iteratecoords();",50);
}


function RunTheAnni(){
  SetBig(NameList[actname]);
  SetSmall(NameList[actname]);
  eval(doc+'["klein"]'+sty+'.visibility="visible"');
  eval(doc+'["gross"]'+sty+'.visibility="visible"');
  window.setTimeout("iteratecoords();",50);
}
