// FrontEnd Plus GUI for JAD
// DeCompiled : dissolvemenu.class
import java.applet.Applet;
import java.applet.AppletContext;
import java.awt.*;
import java.awt.image.MemoryImageSource;
import java.awt.image.PixelGrabber;
import java.io.PrintStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Hashtable;
import java.util.Vector;
public class liu extends Applet
implements Runnable
{
private Thread A;
private Font B;
private Image C;
private Image D;
private int E;
private int F;
private int G;
private int H;
private int I;
private int J;
private int K;
private int L;
private int M;
private int N;
private int O;
private String P;
private String Q;
private long R;
private boolean S;
private boolean U;
private Graphics V;
private Graphics W;
private String X[];
private String Y[][];
private String Z[][];
private Image a[];
private Image b[];
private Image c[][];
private int d;
private int e[];
private int f[];
private Hashtable g;
private Hashtable h;
private Vector i;
private Vector j;
private boolean T;
private boolean k;
public void init()
{
super.init();
setLayout(null);
addNotify();
E = size().width;
F = size().height;
E(83);
boolean flag;
if(G("bgimage") != null)
{
D = getImage(getCodeBase(), G("bgimage"));
flag = D(D);
} else
{
flag = false;
}
if(flag)
{
D = B(D, E, F);
} else
{
D = createImage(E, F);
Graphics g1 = D.getGraphics();
g1.setColor(new Color(L("background", 16)));
g1.fillRect(0, 0, E, F);
}
N();
C = createImage(E, F);
W = C.getGraphics();
V = getGraphics();
int ai[] = new int[E * F];
PixelGrabber pixelgrabber = new PixelGrabber(D, 0, 0, E, F, ai, 0, E);
try
{
pixelgrabber.grabPixels();
}
catch(InterruptedException _ex) { }
b = new Image[8];
b[0] = D;
for(int l = 7; l > 0; l--)
{
int ai1[] = new int[E * F];
for(int i1 = 0; i1 < E * F; i1++)
ai1[i1] = (ai[i1] & 0xffffff) + (l * 32 << 24);
b[8 - l] = createImage(new MemoryImageSource(E, F, ai1, 0, E));
}
}
public void run()
{
int l = 0;
W.drawImage(D, 0, 0, this);
for(int i1 = 0; i1 < L; i1++)
{
W.drawImage(a[i1], 0, l, this);
l += a[i1].getHeight(this);
}
T = true;
update(V);
T = false;
int j1 = -1;
int k1 = -1;
int l1 = -1;
boolean flag = false;
int i2 = 8;
do
{
while(!S && !flag)
{
T = true;
update(V);
T = false;
try
{
Thread.sleep(100L);
}
catch(Exception _ex) { }
}
R = System.currentTimeMillis();
T = false;
if(j1 >= 0)
{
W.drawImage(D, 0, 0, this);
int j2 = a[j1].getHeight(this);
for(int l2 = 0; l2 < c[j1].length; l2++)
{
W.drawImage(c[j1][l2], 0, j2, this);
boolean flag2 = false;
if(O > j2)
flag2 = true;
j2 += c[j1][l2].getHeight(this);
if(flag2 && O < j2)
k1 = l2;
}
if(i2 < 8)
{
W.drawImage(b[i2], 0, 0, this);
i2++;
} else
{
flag = false;
}
W.drawImage(a[j1], 0, 0, this);
if(U)
{
if(O > 0 && O < a[j1].getHeight(this))
{
int l5 = 0;
int j3 = 0;
for(int i4 = 0; i4 < L; i4++)
if(i4 < j1)
j3 += a[i4].getHeight(this);
for(i2--; l5 < j3 || i2 > 0;)
{
R = System.currentTimeMillis();
W.drawImage(D, 0, 0, this);
int l4 = a[j1].getHeight(this);
for(int j5 = 0; j5 < c[j1].length; j5++)
{
W.drawImage(c[j1][j5], 0, l4, this);
l4 += c[j1][j5].getHeight(this);
}
W.drawImage(b[i2], 0, 0, this);
if(--i2 < 0)
i2 = 0;
if((l5 += G) > j3)
l5 = j3;
W.drawImage(a[j1], 0, l5, this);
T = true;
update(V);
T = false;
try
{
Thread.sleep(Math.max(5L, (R + (long)I) - System.currentTimeMillis()));
}
catch(Exception _ex) { }
}
flag = true;
l1 = j1;
j1 = -1;
} else
if(k1 >= 0 && Y[j1][k1] != null)
{
System.out.println(Y[j1][k1]);
boolean flag3 = false;
try
{
URL url = new URL(Y[j1][k1]);
getAppletContext().showDocument(url, Q);
}
catch(MalformedURLException _ex)
{
showStatus("Invalid URL");
}
}
U = false;
}
} else
{
T = false;
W.drawImage(D, 0, 0, this);
int k2 = 0;
int i3 = -1;
for(int i6 = 0; i6 < L; i6++)
{
W.drawImage(a[i6], 0, k2, this);
boolean flag1 = false;
if(O > k2)
flag1 = true;
k2 += a[i6].getHeight(this);
if(flag1 && O < k2)
i3 = i6;
}
if(i2 < 8)
{
W.drawImage(b[i2], 0, 0, this);
int k3 = 0;
for(int j4 = 0; j4 < L; j4++)
if(j4 < l1)
k3 += a[j4].getHeight(this);
W.drawImage(a[l1], 0, k3, this);
i2++;
} else
{
flag = false;
}
if(U && i3 >= 0)
{
j1 = i3;
U = false;
}
if(j1 >= 0)
{
flag = true;
int l3 = 0;
for(int k4 = 0; k4 < L; k4++)
if(k4 < j1)
l3 += a[k4].getHeight(this);