function MoveBalloon(){
   for (i=0; i<3; i++){

      BlnYLoc[i]=BlnYLoc[i]-BlnYStep[i];
      BlnXLoc[i]=BlnXLoc[i]-BlnXStep[i];
      if (BlnYLoc[i] <= 1) {BlnYStep[i]=(BlnYStep[i] * -1);}
      if (BlnYLoc[i] >= YMax-100) {BlnYStep[i]=(BlnYStep[i] * -1);}
      if (BlnXLoc[i] <= 0) {BlnXStep[i]=(BlnXStep[i] * -1);}
      if (BlnXLoc[i] >= XMax-100) {BlnXStep[i]=(BlnXStep[i] * -1);}
         if (ie4 || ns5up) {StaticX=document.body.scrollLeft;StaticY=document.body.scrollTop;         }
         if (ns4) {StaticX=window.pageXOffset;StaticY=window.pageYOffset;}
      if (ns4 || ie4){
         eval(StaticRef + styleRef + '.top = StaticY');
         eval(StaticRef + styleRef + '.left = StaticX');
         eval(BalloonRef + '.' + Balloon[i] + styleRef + '.top = BlnYLoc[i]');
         eval(BalloonRef + '.' + Balloon[i] + styleRef + '.left = BlnXLoc[i]');
      }
      if (ns5up){
         ControlDiv=document.getElementById("control");
         ControlDiv.style.top=window.scrollY;
         BalloonDiv=document.getElementById(Balloon[i]);
         BalloonLeft=BlnXLoc[i];
         BalloonTop = BlnYLoc[i];
         BalloonDiv.style.left=BalloonLeft;
         BalloonDiv.style.top=BalloonTop;
      }

   }
}

function StartBalloons(){
   if (ie4 || ns4 || ns5up || ie5up){
      if (ie4){
         BalloonRef="document.all"; styleRef=".style";
         XMax = (document.body.offsetWidth);
         YMax = (document.body.offsetHeight);
      }
   
      if (ns4) {
         BalloonRef="document.control.document";  styleRef="";
         YMax = (innerHeight);
         XMax = (innerWidth);
      }

      if (ns5up){XMax = (window.innerWidth);YMax = (window.innerHeight);}
      document.focus();
      moveBals = setInterval("MoveBalloon(Balloon[i],"+BlnXLoc[i]+","+BlnYLoc[i]+",0,2)",66,"JavaScript");
   }
}

function DateSelect(WhichDay){

   var Month1 = document.flight.Month1.options[document.flight.Month1.selectedIndex].value;
   var Day1   = document.flight.Day1.options[document.flight.Day1.selectedIndex].value;

   var Month2 = document.flight.Month2.options[document.flight.Month2.selectedIndex].value;
   var Day2   = document.flight.Day2.options[document.flight.Day2.selectedIndex].value;

   var Month3 = document.flight.Month3.options[document.flight.Month3.selectedIndex].value;
   var Day3   = document.flight.Day3.options[document.flight.Day3.selectedIndex].value;

   if (WhichDay == 1){document.request.FirstChoice.value = Month1 + " " + Day1;}
   if (WhichDay == 2){document.request.SecondChoice.value = Month2 + " " + Day2;}
   if (WhichDay == 3){document.request.ThirdChoice.value = Month3 + " " + Day3;}
}

function viewcal(){
   if (navigator.appName == "Microsoft Internet Explorer" && navigator.appVersion.substring(0,1) >3)
      {var WinPop=1}
   if (navigator.appName == "Netscape" && navigator.appVersion.substring(0,1) >3)
      {var WinPop=1}
   if (WinPop > 0)
      {calwindow=window.open('calendar.htm','newWin','scrollbars=no,status=no,width=400,height=400')}
   else
      {alert("Microsoft Internet Explorer 3.0\nNetscape 3.0\nor greater to view Calendar")}
   }

