import java.awt.*;
import java.applet.*;

public class Logo extends Applet implements Runnable 
{
 Image img;
 Thread thd = null;
 int i;
 int imgWidth = 180;
 int imgHeight = 135;

 public void run() 
  {
   setSize (180, 135);
   setBackground (Color.white);
   img = getImage(getCodeBase(),
        "pegasusright.jpg");
   if (img != null) 
       {
     i=imgHeight;
     repaint();
     while (true) 
         {
             try {Thread.sleep(1000);}
             catch (InterruptedException e){}
       i=0;
       while (i < imgHeight)
           {
         repaint();
         try {Thread.sleep(50);}
         catch (InterruptedException e){}
         i+=4;
           }
         }
       }
    }
 public void update(Graphics g) 
    {
   if (img != null) 
       {
     g.clipRect(0, 0, imgWidth, i);
     g.drawImage(img, 0, i-imgHeight, null);
       }
    }

 public void start() 
    {
   if (thd == null) 
       {
     thd = new Thread(this);
     thd.start();
       }
    }
 public void stop() 
    {
   thd = null;
    }
}
