// ----==== DHTML - FLIEGENDE BILDSCHIRM-OBJEKTE ====----
//
// (c) Copyright 2001 by Wolfgang Dick, www.drachenstein.ch
// ********************************************************
// I'm happy if this script is of help for you, but I would
// be happy to know where it's used. So please drop me a line
// to wolfgang.dick@drachenstein.ch
// Please don't remove this copyright remark, thank you.
// Enjoy!

function movement2() {
	if(ie4)
		width2=document.body.offsetWidth;
		height2=document.body.offsetHeight;
	if(dom)
		width2=document.body.offsetWidth;
		height2=document.body.offsetHeight;
		
var start2X = width2;
start2X = start2X - 90; //gilt ab dem zweiten Durchgang als Startpunkt X
var start2Y = 2800;     //gilt ab dem zweiten Durchgang als Startpunkt Y

 if(current2Y > 4000) {
  current2Y = -100;
  } 
 if(current2X <= -900) {
  current2X = start2X;
  current2Y = start2Y;
  } 
 else {
  current2X += delta2X;
  ycoor2 = .050 * current2X;
  current2Y += 3 * Math.sin(ycoor2);
  }
 }


function setPosition2(x,y) {
//alert("pos1");
	if(ie4){
		document.all.mj.style.left = current2X;
		document.all.mj.style.top = current2Y;
		}
	if(dom)
		document.getElementById('mj').style.left = current2X;
		document.getElementById('mj').style.top = current2Y;
 }


function zeigdoch2() {
//alert("zeigdoch");
	if(ie4)
		document.all.mj.style.visibility = "visible";
	if(dom)
		document.getElementById('mj').style.visibility = "visible";
 }


function moveDiv2() {
 movement2();
 current2Y = current2Y+4  //damit setze ich den Winkel des Sinkflugs
 setPosition2();
 }


function check2() {
	if(ie4)
		width2=document.body.offsetWidth;
	if(dom)
		width2=window.innerWidth;
var start2X = width2;
start2X = start2X - 50;
var start2Y = 2500;

 current2X = start2X;
 current2Y = start2Y;

 setPosition2(current2X, current2Y);
 zeigdoch2();
 setInterval("moveDiv2()",movePeriod2);
 
}

  var delta2X = 0 - 7;
  var movePeriod2 = 30;
