

logo1=new Image()
logo2=new Image()
logo3=new Image()

logo1.src="./img/flying.gif"  
logo2.src="./img/wheely02.gif"
logo3.src="./img/wheely03.gif"


function questto(form) {
var formindex=form.question.selectedIndex
var formsize=(form.question.options[formindex].value)
top.frames[1].location.href=("warenkorb.php4?param=status&willy=yes&frage=" + form.question.value + "");

}


var speed = 14; 
var flywheely = '<IMG SRC="../img/flying.gif">';
var standwheely = '<IMG SRC="../img/wheely03.gif">'; 
var standwheely2 ='<IMG SRC="../img/wheely02.gif">';

var ns4up = (document.layers) ? 1 : 0; 
var ie4up = (document.all) ? 1 : 0;
var dx, xp=400, yp=-200;    
var am, stx, sty;  
var i, doc_width = 400, olddoc_height = 250;
var show='<IMG SRC="./img/flying.gif">'


function scrollItems(iw, doc_height){


if(ns4up){
  document.wheely.document.close
  yp=document.wheely.top;
}

if(ie4up){
  yp=wheely.style.pixelTop;
}


xp=iw;
dx = 0; 
am = Math.random()*20;         
stx = 0.02 + Math.random()/10; 
sty = 0.7 + Math.random();     
yp += sty;

if (yp < doc_height) {
  stx = 0.02 + Math.random()/10;
  sty = 0.7 + Math.random();

dx += stx;


if(ns4up){
  document.wheely.document.close
  document.wheely.top=yp;
  document.wheely.left=xp + am*Math.sin(dx);
}

if(ie4up){
  wheely.style.pixelTop = yp;
  wheely.style.pixelLeft = xp + am*Math.sin(dx);
}

setTimeout("scrollItems("+iw+","+doc_height+")", speed);


}else{

if(ns4up){

          document.wheely.document.write(standwheely)
          document.wheely.document.close()
           setTimeout("document.answere.left="+xp+"-220",1200)
} 
if(ie4up){
  wheely.innerHTML=(standwheely)
  setTimeout("answere.style.pixelLeft="+xp+"-220",1200)
  setTimeout("wheely.innerHTML=(standwheely2)",1200)

}

}

}

function removeIt(iw){


if(ns4up){

  document.answere.left=-1500
setTimeout("flyOut()",1200)
setTimeout("document.wheely.document.write(flywheely)",1200)
setTimeout("document.wheely.document.close()",1300)


}

if(ie4up){
  answere.style.pixelLeft=-1500
setTimeout("flyOut()",1200) 
setTimeout("wheely.innerHTML=(flywheely)",1200)

}
}


function flyOut(){

if(ns4up){

  document.wheely.top = document.wheely.top - 5
if (document.wheely.top > -220){
setTimeout("flyOut()",20)
}}

if(ie4up){
  wheely.style.pixelTop=wheely.style.pixelTop-5
if (wheely.style.pixelTop > -220){
setTimeout("flyOut()",20)
}}

}



