// Karussel Script, by webmaster@quadrat-bottrop.de
// based on : Moving Objects Script By Virtual_Max (movobj.js)
// Permission to use, copy, modify, and distribute this software and its documentation
// for NON-COMMERCIAL purposes and  without fee is hereby granted provided that this
// notice appears in all copies.
//
// VIRTUAL MAX MAKES NO REPRESENTATIONS OR WARRANTIES ABOUT THE SUITABILITY OF THE
// SOFTWARE, EITHER EXPRESS OR IMPLIED
var brOK=false;
var mie=false;
var aver=parseInt(navigator.appVersion.substring(0,1));
var aname=navigator.appName;
function checkbrOK()
{if(aname.indexOf("Internet Explorer")!=-1)
   {if(aver>=4) brOK=navigator.javaEnabled();
    mie=true;
   }
 if(aname.indexOf("Netscape")!=-1)
   {if(aver>=4) brOK=navigator.javaEnabled();}
}
var vzwopi=Math.PI*2;
var teiler=vzwopi/180;
var timer1;
function Gondel(gondelname,x)
{this.named=gondelname;
 this.t=x*teiler;
 this.r=180;
 this.xm=280;
 this.ym=190;
 this.xx=this.xm + this.r*(Math.cos(this.t));
 this.yy=this.ym + this.r*(Math.sin(this.t));
 this.timer1=null;
}
function movegondel(gondelname)
{
 if(brOK)
  {eval("gondel="+gondelname);
  if (gondel.t >= 0 && gondel.t < vzwopi) gondel.t=gondel.t + teiler;
  if (gondel.t>=vzwopi)gondel.t=0;
   gondel.xx=gondel.xm + gondel.r*(Math.cos(gondel.t));
   gondel.yy=gondel.ym + gondel.r*(Math.sin(gondel.t));
   if(document.layers)
      {eval('document.'+gondel.named+'.top ='+gondel.yy);
       eval('document.'+gondel.named+'.left='+gondel.xx);
      }
   else if (document.all)
      {eval('document.all.'+gondel.named+'.style.pixelLeft='+gondel.xx);
       eval('document.all.'+gondel.named+'.style.pixelTop ='+gondel.yy);
      }
   else if (document.getElementById)
      {document.getElementById(gondel.named).style.left=gondel.xx;
       document.getElementById(gondel.named).style.top =gondel.yy;
      }
   gondel.timer1=setTimeout("movegondel('"+gondel.named+"')",200);
  }
}
function stopme(gondelname)
{if(brOK)
  {
   eval("gondel="+gondelname);
   if(gondel.timer1!=null)
    {clearTimeout(gondel.timer1)}
  }
}
