<!-- Beginning of JavaScript Pop-up window Open multple windows with
//   one piece of code, BITCHIN'....
/*
   ANIMATED WINDOW OPENING.
   Copyright © by Rich Parker 1999

   By checking the version, an attempt is made NOT to start JAVA.
   Because it takes time to load Java.

   Parameters to be passed to this program:
      p1 is the url or location of page to be loaded
      p2 is the width of the page
      p3 if the heigth of the page

   I originally saw this on www.dynamicdrive.com, but I have made so many
   changes that this looks nothing like their code. Now this is truly
   Dynamic Code.

   It can get OLD looking if this script is used a lot on one page, it can
   even 'Feel' slow, so I have set a MAX number of times script will open
   an animated window, after that number, it just opens the window normally.

*/
version  = parseInt(navigator.appVersion);
browserName = navigator.appName;
var ani_repeat = 0;  // Number of time script has been used on same page.
var ani_max = 4;     // Max number of times to use Add +1 as needed.
var w=10;
var h=10;
var wd2=100;
var ht2=100;
var num=0;           // Window number.
function wlink1(p1,p2,p3)
 {
  num = num + 1;
  ani_repeat = ani_repeat + 1;  // Add 1 to number of times used.
  winName=p1;
  wd1=p2;
  ht1=p3;
  if (version > 3 && ani_repeat < ani_max && browserName == "Netscape")
   {
    neww=window.open("",num,"width="+wd2+",height="+ht2+",scrollbars,status,resizable=yes");
    neww.moveTo(0,0);
    wlink2();
   }
  else
   {
    neww=window.open(winName,num,"width="+wd1+",height="+ht1+",top=0,left=0,scrollbars,status,resizable=yes");
   }
 }

function wlink2()
 {
  ht2 = ht2 + h;
  wd2 = wd2 + w;
  neww.resizeBy(w,h);
  if (ht2 >= ht1)
    {
      h=0;
    }
  if (wd2 >= wd1)
    {
      w=0;
    }
  if ((h==0) && (w==0))
    {
     wlink3();
     return;
    }
/*
   Choose one of the following options for window opening speed.
   The timeout will set the speed, but without timeout is full speed.
*/
//  setTimeout("wlink2()",1);
  wlink2();
 }

function wlink3()
  {
     neww.location = winName;
     w=10;
     h=10;
     wd2=100;
     ht2=100;
  }
// -- End of JavaScript code -------------- -->

