// ----==== 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!

<!-- Sag Quitsch wenn ich drück
function sound(URL1,F1)
{
parent.frames[F1].location.href=URL1;
}


function launch() {
	if(ie4)
		height=document.body.offsetHeight;
	if(dom)
		height=document.body.offsetHeight;
		hoehe=height-20
	winStats='status=yes,toolbar=no,location=no,directories=no,menubar=no,';winStats+='scrollbars=yes,width=700,height='+hoehe;if (navigator.appName.indexOf("Microsoft")>=0) {winStats+=',left=20,top=10'}else{winStats+=',screenX=20,screenY=10'};window.open("FurnuspaniGER.html","furnuspani",winStats);
	sound('Sound4.html',1);
}

ns4 = (document.layers)? true:false; // Alter Netscape - wird hier nicht mehr unterstützt
ie4 = (document.all)? true:false; // Internet Explorer 4/5
dom = (ns4|ie4)? false:true; // Nix von beidem, hoffentlich DOM (Netscape 6, IE5, Opera5)

function movement() {
	if(ie4)
		width=document.body.offsetWidth;
		height=document.body.offsetHeight;
	if(dom)
		width=document.body.offsetWidth;
		height=document.body.offsetHeight;
		
var startX = width;
startX = startX - 90; //gilt ab dem zweiten Durchgang als Startpunkt X
var startY = -10;     //gilt ab dem zweiten Durchgang als Startpunkt Y

 if(currentY > height*2) {
  currentY = -100;
  } 
 if(currentX <= -1000) {
  currentX = startX;
  currentY = startY;
  } 
 else {
  currentX += deltaX;
  ycoor = .020 * currentX;
  currentY += 5 * Math.sin(ycoor);
  }
 }


function setPosition(x,y) {
	if(ie4){
		document.all.mi.style.left = currentX;
		document.all.mi.style.top = currentY;
		}
	if(dom)
		document.getElementById('mi').style.left = currentX;
		document.getElementById('mi').style.top = currentY;
 }


function zeigdoch() {
	if(ie4)
		document.all.mi.style.visibility = "visible";
	if(dom)
		document.getElementById('mi').style.visibility = "visible";
 }


function moveDiv() {
 movement();
 currentY = currentY+3.5  //damit setze ich den Winkel des Sinkflugs
 setPosition();
 }


function check() {
	if(ie4)
		width=document.body.offsetWidth;
	if(dom)
		width=window.innerWidth;
var startX = width;
startX = startX - 150;
var startY = 100;

 currentX = startX;
 currentY = startY;

 setPosition(currentX, currentY);
 zeigdoch();
 setInterval("moveDiv()",movePeriod);
 
}

  var deltaX = 0 - 5;
  var movePeriod = 20;
sound('Sound3.html',1);


