/* Class259 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.awt.Color;
import java.awt.Font;
import java.awt.FontMetrics;
import java.awt.Graphics;
import java.awt.Image;
import java.awt.MediaTracker;
import java.awt.Toolkit;
import java.io.IOException;
import java.io.InputStream;

public class Class259 implements Interface27 {
	Image anImage4053;
	Color aColor4054;
	Image anImage4055;
	Image anImage4056;
	Image anImage4057;
	Image anImage4058;
	Image anImage4059;
	int anInt4060;
	Image anImage4061;
	int anInt4062;
	Image anImage4063;
	Image anImage4064;
	Image anImage4065;
	boolean aBool4066;
	boolean aBool4067;
	boolean aBool4068;
	Font aFont4069;
	FontMetrics aFontMetrics4070;
	int anInt4071;
	int anInt4072;
	int anInt4073;
	int anInt4074;
	int anInt4075;
	int anInt4076;
	int anInt4077;
	static int anInt4078;

	final int method5122(int i) {
		if (((Class259) this).aBool4067)
			return (Class117.anInt1641 * -334452787 - i) / 2;
		return 0;
	}

	final int method5123(int i, int i_0_) {
		if (((Class259) this).aBool4067)
			return (Class117.anInt1641 * -334452787 - i) / 2;
		return 0;
	}

	final int method5124(int i, int i_1_) {
		if (((Class259) this).aBool4068)
			return (-322515687 * Class39.anInt722 - i) / 2;
		return 0;
	}

	public void method163(boolean bool, int i) {
		if (!((Class259) this).aBool4066 && ((Class259) this).aFont4069 == null) {
			try {
				String[] strings = Class490.method11125(client.aString8297, ',', 1738526254);
				if (23 != strings.length)
					((Class259) this).aBool4066 = true;
				((Class259) this).aBool4067 = Boolean.parseBoolean(strings[0]);
				((Class259) this).aBool4068 = Boolean.parseBoolean(strings[1]);
				((Class259) this).anInt4072 = (Class508.method11501(strings[2], -1892332609) * -305022213);
				((Class259) this).anInt4073 = (Class508.method11501(strings[3], 1039096517) * -221807183);
				((Class259) this).anInt4071 = (Class508.method11501(strings[4], 1091723337) * 1218378213);
				((Class259) this).anInt4062 = Class508.method11501(strings[5], 515560092) * 80890595;
				((Class259) this).anInt4075 = (Class508.method11501(strings[6], -1749183013) * -1055747391);
				((Class259) this).anInt4060 = (Class508.method11501(strings[7], -1461861746) * 632818629);
				((Class259) this).anInt4074 = (Class508.method11501(strings[8], -1985424325) * -561820425);
				((Class259) this).anInt4076 = (Class508.method11501(strings[9], -2082384355) * 1510745231);
				String string = strings[10];
				int i_2_ = Class508.method11501(strings[11], -343344420);
				int i_3_ = Class489.method11109(strings[12].substring(2), 16, -52739335);
				((Class259) this).aFont4069 = new Font(string, 0, i_2_);
				((Class259) this).aFontMetrics4070 = Class180.aCanvas2174.getFontMetrics(((Class259) this).aFont4069);
				((Class259) this).aColor4054 = new Color(i_3_);
				MediaTracker mediatracker = new MediaTracker(Class180.aCanvas2174);
				((Class259) this).anImage4057 = method5125(strings[13], (byte) -41);
				mediatracker.addImage(((Class259) this).anImage4057, 0);
				((Class259) this).anImage4058 = method5125(strings[14], (byte) 74);
				mediatracker.addImage(((Class259) this).anImage4058, 1);
				((Class259) this).anImage4059 = method5125(strings[15], (byte) 63);
				mediatracker.addImage(((Class259) this).anImage4059, 2);
				((Class259) this).anImage4055 = method5125(strings[16], (byte) 109);
				mediatracker.addImage(((Class259) this).anImage4055, 3);
				((Class259) this).anImage4061 = method5125(strings[17], (byte) -60);
				mediatracker.addImage(((Class259) this).anImage4061, 4);
				((Class259) this).anImage4053 = method5125(strings[18], (byte) -51);
				mediatracker.addImage(((Class259) this).anImage4053, 5);
				((Class259) this).anImage4063 = method5125(strings[19], (byte) 112);
				mediatracker.addImage(((Class259) this).anImage4063, 6);
				((Class259) this).anImage4064 = method5125(strings[20], (byte) 64);
				mediatracker.addImage(((Class259) this).anImage4064, 7);
				((Class259) this).anImage4065 = method5125(strings[21], (byte) 77);
				mediatracker.addImage(((Class259) this).anImage4065, 8);
				mediatracker.waitForAll();
				((Class259) this).anInt4077 = (Class508.method11501(strings[22], 781898000) * -1801646337);
			} catch (Exception exception) {
				((Class259) this).aBool4066 = true;
			}
		}
		if (((Class259) this).aBool4066)
			method5127(5682658);
		else {
			Graphics graphics = Class180.aCanvas2174.getGraphics();
			if (null != graphics) {
				try {
					int i_4_ = Class19.aClass261_256.method5167((byte) 23);
					String string = Class19.aClass261_256.method5149((byte) 106);
					if (null == Class92_Sub21.anImage10086)
						Class92_Sub21.anImage10086 = (Class180.aCanvas2174.createImage(Class117.anInt1641 * -334452787, -322515687 * Class39.anInt722));
					Graphics graphics_5_ = Class92_Sub21.anImage10086.getGraphics();
					graphics_5_.setColor(Color.BLACK);
					graphics_5_.fillRect(0, 0, -334452787 * Class117.anInt1641, -322515687 * Class39.anInt722);
					int i_6_ = ((Class259) this).anImage4063.getWidth(null);
					int i_7_ = ((Class259) this).anImage4064.getWidth(null);
					int i_8_ = ((Class259) this).anImage4065.getWidth(null);
					int i_9_ = ((Class259) this).anImage4063.getHeight(null);
					int i_10_ = ((Class259) this).anImage4064.getHeight(null);
					int i_11_ = ((Class259) this).anImage4065.getHeight(null);
					graphics_5_.drawImage(((Class259) this).anImage4063, (method5123(i_6_, 1901630391) + -1354695359 * ((Class259) this).anInt4075 - 1675310279 * ((Class259) this).anInt4074 / 2), (method5124(i_9_, 1838648073) + 960314125 * ((Class259) this).anInt4060), null);
					int i_12_ = (i_6_ + (-1354695359 * ((Class259) this).anInt4075 - ((Class259) this).anInt4074 * 1675310279 / 2));
					int i_13_ = (((Class259) this).anInt4074 * 1675310279 / 2 + ((Class259) this).anInt4075 * -1354695359);
					for (int i_14_ = i_12_; i_14_ <= i_13_; i_14_ += i_8_)
						graphics_5_.drawImage(((Class259) this).anImage4065, (method5123(i_6_, 1876296138) + (((Class259) this).anInt4075 * -1354695359) + i_14_), (method5124(i_11_, 1884248308) + 960314125 * (((Class259) this).anInt4060)), null);
					graphics_5_.drawImage(((Class259) this).anImage4064, (method5123(i_7_, 1311553766) + ((Class259) this).anInt4075 * -1354695359 + ((Class259) this).anInt4074 * 1675310279 / 2), (method5124(i_10_, 1548943951) + ((Class259) this).anInt4060 * 960314125), null);
					int i_15_ = ((Class259) this).anImage4059.getWidth(null);
					int i_16_ = ((Class259) this).anImage4059.getHeight(null);
					int i_17_ = ((Class259) this).anImage4055.getWidth(null);
					int i_18_ = ((Class259) this).anImage4055.getHeight(null);
					int i_19_ = ((Class259) this).anImage4053.getHeight(null);
					int i_20_ = ((Class259) this).anImage4061.getWidth(null);
					int i_21_ = ((Class259) this).anImage4061.getHeight(null);
					int i_22_ = ((Class259) this).anImage4053.getWidth(null);
					int i_23_ = ((Class259) this).anImage4057.getWidth(null);
					int i_24_ = ((Class259) this).anImage4058.getWidth(null);
					int i_25_ = (method5123(((Class259) this).anInt4071 * 1226939373, 1003520494) + -400867277 * ((Class259) this).anInt4072);
					int i_26_ = (method5124(((Class259) this).anInt4062 * 877873867, 497894505) + ((Class259) this).anInt4073 * -341005487);
					graphics_5_.drawImage(((Class259) this).anImage4059, i_25_, ((((Class259) this).anInt4062 * 877873867) - i_16_) / 2 + i_26_, null);
					graphics_5_.drawImage(((Class259) this).anImage4055, ((1226939373 * ((Class259) this).anInt4071) + i_25_ - i_17_), ((((Class259) this).anInt4062 * 877873867) - i_18_) / 2 + i_26_, null);
					if (((Class259) this).anImage4056 == null)
						((Class259) this).anImage4056 = (Class180.aCanvas2174.createImage((((Class259) this).anInt4071 * 1226939373 - i_15_ - i_17_), 877873867 * ((Class259) this).anInt4062));
					Graphics graphics_27_ = ((Class259) this).anImage4056.getGraphics();
					for (int i_28_ = 0; i_28_ < (1226939373 * ((Class259) this).anInt4071 - i_15_ - i_17_); i_28_ += i_20_)
						graphics_27_.drawImage(((Class259) this).anImage4061, i_28_, 0, null);
					for (int i_29_ = 0; i_29_ < (((Class259) this).anInt4071 * 1226939373 - i_15_ - i_17_); i_29_ += i_22_)
						graphics_27_.drawImage(((Class259) this).anImage4053, i_29_, (((Class259) this).anInt4062 * 877873867) - i_19_, null);
					int i_30_ = i_4_ * (1226939373 * ((Class259) this).anInt4071 - i_15_ - i_17_) / 100;
					if (i_30_ > 0) {
						Image image = (Class180.aCanvas2174.createImage(i_30_, (877873867 * ((Class259) this).anInt4062 - i_21_ - i_19_)));
						int i_31_ = image.getWidth(null);
						Graphics graphics_32_ = image.getGraphics();
						int i_33_ = (((Class259) this).anInt4077 * -712904449 * Class441_Sub5.method13754(1035377113) / 10 % i_23_);
						for (int i_34_ = i_33_ - i_23_; i_34_ < i_31_; i_34_ += i_23_)
							graphics_32_.drawImage((((Class259) this).anImage4057), i_34_, 0, null);
						graphics_27_.drawImage(image, 0, i_21_, null);
					}
					int i_35_ = i_30_;
					i_30_ = (1226939373 * ((Class259) this).anInt4071 - i_15_ - i_17_ - i_30_);
					if (i_30_ > 0) {
						Image image = (Class180.aCanvas2174.createImage(i_30_, (877873867 * ((Class259) this).anInt4062 - i_21_ - i_19_)));
						int i_36_ = image.getWidth(null);
						Graphics graphics_37_ = image.getGraphics();
						for (int i_38_ = 0; i_38_ < i_36_; i_38_ += i_24_)
							graphics_37_.drawImage((((Class259) this).anImage4058), i_38_, 0, null);
						graphics_27_.drawImage(image, i_35_, i_21_, null);
					}
					graphics_5_.drawImage(((Class259) this).anImage4056, i_15_ + i_25_, i_26_, null);
					graphics_5_.setFont(((Class259) this).aFont4069);
					graphics_5_.setColor(((Class259) this).aColor4054);
					graphics_5_.drawString(string, i_25_ + (1226939373 * ((Class259) this).anInt4071 - ((Class259) this).aFontMetrics4070.stringWidth(string)) / 2, (((Class259) this).anInt4076 * -407864721 + (4 + (i_26_ + (877873867 * ((Class259) this).anInt4062 / 2)))));
					graphics.drawImage(Class92_Sub21.anImage10086, 0, 0, null);
				} catch (Exception exception) {
					((Class259) this).aBool4066 = true;
				}
			} else
				Class180.aCanvas2174.repaint();
		}
	}

	Image method5125(String string, byte i) throws IOException {
		Image image;
		try {
			InputStream inputstream = Class71.anApplet1060.getClass().getClassLoader().getResourceAsStream(string);
			byte[] is = new byte[5000];
			int i_39_ = 0;
			int i_40_;
			while ((i_40_ = inputstream.read()) != -1)
				is[i_39_++] = (byte) i_40_;
			Image image_41_ = Toolkit.getDefaultToolkit().createImage(is);
			image = image_41_;
		} catch (Exception exception) {
			throw new IOException();
		}
		return image;
	}

	public boolean method169(long l) {
		return true;
	}

	public void method164(byte i) {
		Class92_Sub19.method14675(-1048005310);
	}

	Image method5126(String string) throws IOException {
		Image image;
		try {
			InputStream inputstream = Class71.anApplet1060.getClass().getClassLoader().getResourceAsStream(string);
			byte[] is = new byte[5000];
			int i = 0;
			int i_42_;
			while ((i_42_ = inputstream.read()) != -1)
				is[i++] = (byte) i_42_;
			Image image_43_ = Toolkit.getDefaultToolkit().createImage(is);
			image = image_43_;
		} catch (Exception exception) {
			throw new IOException();
		}
		return image;
	}

	public int method162(int i) {
		return 100;
	}

	public boolean method165(long l) {
		return true;
	}

	public int method174(byte i) {
		return 0;
	}

	void method5127(int i) {
		Class274.method5383(Class19.aClass261_256.method5167((byte) 74), Class19.aClass261_256.method5149((byte) 44), client.aColorArray8044[1257284591 * client.anInt7997], client.aColorArray8045[1257284591 * client.anInt7997], client.aColorArray8107[client.anInt7997 * 1257284591], -1746741953);
	}

	final int method5128(int i) {
		if (((Class259) this).aBool4067)
			return (Class117.anInt1641 * -334452787 - i) / 2;
		return 0;
	}

	public void method175(int i) {
		/* empty */
	}

	public void method167(boolean bool) {
		if (!((Class259) this).aBool4066 && ((Class259) this).aFont4069 == null) {
			try {
				String[] strings = Class490.method11125(client.aString8297, ',', 1738526254);
				if (23 != strings.length)
					((Class259) this).aBool4066 = true;
				((Class259) this).aBool4067 = Boolean.parseBoolean(strings[0]);
				((Class259) this).aBool4068 = Boolean.parseBoolean(strings[1]);
				((Class259) this).anInt4072 = (Class508.method11501(strings[2], -151541305) * -305022213);
				((Class259) this).anInt4073 = Class508.method11501(strings[3], -27701879) * -221807183;
				((Class259) this).anInt4071 = (Class508.method11501(strings[4], -1599592834) * 1218378213);
				((Class259) this).anInt4062 = Class508.method11501(strings[5], -1780703951) * 80890595;
				((Class259) this).anInt4075 = (Class508.method11501(strings[6], -912097250) * -1055747391);
				((Class259) this).anInt4060 = (Class508.method11501(strings[7], -1343749754) * 632818629);
				((Class259) this).anInt4074 = Class508.method11501(strings[8], 525806183) * -561820425;
				((Class259) this).anInt4076 = (Class508.method11501(strings[9], -1936958445) * 1510745231);
				String string = strings[10];
				int i = Class508.method11501(strings[11], -1449042199);
				int i_44_ = Class489.method11109(strings[12].substring(2), 16, 299184937);
				((Class259) this).aFont4069 = new Font(string, 0, i);
				((Class259) this).aFontMetrics4070 = Class180.aCanvas2174.getFontMetrics(((Class259) this).aFont4069);
				((Class259) this).aColor4054 = new Color(i_44_);
				MediaTracker mediatracker = new MediaTracker(Class180.aCanvas2174);
				((Class259) this).anImage4057 = method5125(strings[13], (byte) -53);
				mediatracker.addImage(((Class259) this).anImage4057, 0);
				((Class259) this).anImage4058 = method5125(strings[14], (byte) -108);
				mediatracker.addImage(((Class259) this).anImage4058, 1);
				((Class259) this).anImage4059 = method5125(strings[15], (byte) -67);
				mediatracker.addImage(((Class259) this).anImage4059, 2);
				((Class259) this).anImage4055 = method5125(strings[16], (byte) -3);
				mediatracker.addImage(((Class259) this).anImage4055, 3);
				((Class259) this).anImage4061 = method5125(strings[17], (byte) -76);
				mediatracker.addImage(((Class259) this).anImage4061, 4);
				((Class259) this).anImage4053 = method5125(strings[18], (byte) -68);
				mediatracker.addImage(((Class259) this).anImage4053, 5);
				((Class259) this).anImage4063 = method5125(strings[19], (byte) 61);
				mediatracker.addImage(((Class259) this).anImage4063, 6);
				((Class259) this).anImage4064 = method5125(strings[20], (byte) 0);
				mediatracker.addImage(((Class259) this).anImage4064, 7);
				((Class259) this).anImage4065 = method5125(strings[21], (byte) 90);
				mediatracker.addImage(((Class259) this).anImage4065, 8);
				mediatracker.waitForAll();
				((Class259) this).anInt4077 = (Class508.method11501(strings[22], 558298131) * -1801646337);
			} catch (Exception exception) {
				((Class259) this).aBool4066 = true;
			}
		}
		if (((Class259) this).aBool4066)
			method5127(-2071012506);
		else {
			Graphics graphics = Class180.aCanvas2174.getGraphics();
			if (null != graphics) {
				try {
					int i = Class19.aClass261_256.method5167((byte) 22);
					String string = Class19.aClass261_256.method5149((byte) 11);
					if (null == Class92_Sub21.anImage10086)
						Class92_Sub21.anImage10086 = (Class180.aCanvas2174.createImage(Class117.anInt1641 * -334452787, -322515687 * Class39.anInt722));
					Graphics graphics_45_ = Class92_Sub21.anImage10086.getGraphics();
					graphics_45_.setColor(Color.BLACK);
					graphics_45_.fillRect(0, 0, -334452787 * Class117.anInt1641, -322515687 * Class39.anInt722);
					int i_46_ = ((Class259) this).anImage4063.getWidth(null);
					int i_47_ = ((Class259) this).anImage4064.getWidth(null);
					int i_48_ = ((Class259) this).anImage4065.getWidth(null);
					int i_49_ = ((Class259) this).anImage4063.getHeight(null);
					int i_50_ = ((Class259) this).anImage4064.getHeight(null);
					int i_51_ = ((Class259) this).anImage4065.getHeight(null);
					graphics_45_.drawImage(((Class259) this).anImage4063, (method5123(i_46_, 1604623128) + -1354695359 * ((Class259) this).anInt4075 - 1675310279 * ((Class259) this).anInt4074 / 2), (method5124(i_49_, 1816761903) + 960314125 * ((Class259) this).anInt4060), null);
					int i_52_ = (i_46_ + (-1354695359 * ((Class259) this).anInt4075 - ((Class259) this).anInt4074 * 1675310279 / 2));
					int i_53_ = (((Class259) this).anInt4074 * 1675310279 / 2 + ((Class259) this).anInt4075 * -1354695359);
					for (int i_54_ = i_52_; i_54_ <= i_53_; i_54_ += i_48_)
						graphics_45_.drawImage(((Class259) this).anImage4065, (method5123(i_46_, 1132610299) + ((Class259) this).anInt4075 * -1354695359 + i_54_), (method5124(i_51_, 108907016) + 960314125 * ((Class259) this).anInt4060), null);
					graphics_45_.drawImage(((Class259) this).anImage4064, (method5123(i_47_, 1426998948) + ((Class259) this).anInt4075 * -1354695359 + ((Class259) this).anInt4074 * 1675310279 / 2), (method5124(i_50_, -16784228) + ((Class259) this).anInt4060 * 960314125), null);
					int i_55_ = ((Class259) this).anImage4059.getWidth(null);
					int i_56_ = ((Class259) this).anImage4059.getHeight(null);
					int i_57_ = ((Class259) this).anImage4055.getWidth(null);
					int i_58_ = ((Class259) this).anImage4055.getHeight(null);
					int i_59_ = ((Class259) this).anImage4053.getHeight(null);
					int i_60_ = ((Class259) this).anImage4061.getWidth(null);
					int i_61_ = ((Class259) this).anImage4061.getHeight(null);
					int i_62_ = ((Class259) this).anImage4053.getWidth(null);
					int i_63_ = ((Class259) this).anImage4057.getWidth(null);
					int i_64_ = ((Class259) this).anImage4058.getWidth(null);
					int i_65_ = (method5123(((Class259) this).anInt4071 * 1226939373, 1434943135) + -400867277 * ((Class259) this).anInt4072);
					int i_66_ = (method5124(((Class259) this).anInt4062 * 877873867, -1479593028) + ((Class259) this).anInt4073 * -341005487);
					graphics_45_.drawImage(((Class259) this).anImage4059, i_65_, ((((Class259) this).anInt4062 * 877873867) - i_56_) / 2 + i_66_, null);
					graphics_45_.drawImage(((Class259) this).anImage4055, ((1226939373 * ((Class259) this).anInt4071) + i_65_ - i_57_), ((((Class259) this).anInt4062 * 877873867) - i_58_) / 2 + i_66_, null);
					if (((Class259) this).anImage4056 == null)
						((Class259) this).anImage4056 = (Class180.aCanvas2174.createImage((((Class259) this).anInt4071 * 1226939373 - i_55_ - i_57_), 877873867 * ((Class259) this).anInt4062));
					Graphics graphics_67_ = ((Class259) this).anImage4056.getGraphics();
					for (int i_68_ = 0; i_68_ < (1226939373 * ((Class259) this).anInt4071 - i_55_ - i_57_); i_68_ += i_60_)
						graphics_67_.drawImage(((Class259) this).anImage4061, i_68_, 0, null);
					for (int i_69_ = 0; i_69_ < (((Class259) this).anInt4071 * 1226939373 - i_55_ - i_57_); i_69_ += i_62_)
						graphics_67_.drawImage(((Class259) this).anImage4053, i_69_, (((Class259) this).anInt4062 * 877873867) - i_59_, null);
					int i_70_ = i * (1226939373 * ((Class259) this).anInt4071 - i_55_ - i_57_) / 100;
					if (i_70_ > 0) {
						Image image = (Class180.aCanvas2174.createImage(i_70_, (877873867 * ((Class259) this).anInt4062 - i_61_ - i_59_)));
						int i_71_ = image.getWidth(null);
						Graphics graphics_72_ = image.getGraphics();
						int i_73_ = (((Class259) this).anInt4077 * -712904449 * Class441_Sub5.method13754(-273438860) / 10 % i_63_);
						for (int i_74_ = i_73_ - i_63_; i_74_ < i_71_; i_74_ += i_63_)
							graphics_72_.drawImage((((Class259) this).anImage4057), i_74_, 0, null);
						graphics_67_.drawImage(image, 0, i_61_, null);
					}
					int i_75_ = i_70_;
					i_70_ = (1226939373 * ((Class259) this).anInt4071 - i_55_ - i_57_ - i_70_);
					if (i_70_ > 0) {
						Image image = (Class180.aCanvas2174.createImage(i_70_, (877873867 * ((Class259) this).anInt4062 - i_61_ - i_59_)));
						int i_76_ = image.getWidth(null);
						Graphics graphics_77_ = image.getGraphics();
						for (int i_78_ = 0; i_78_ < i_76_; i_78_ += i_64_)
							graphics_77_.drawImage((((Class259) this).anImage4058), i_78_, 0, null);
						graphics_67_.drawImage(image, i_75_, i_61_, null);
					}
					graphics_45_.drawImage(((Class259) this).anImage4056, i_55_ + i_65_, i_66_, null);
					graphics_45_.setFont(((Class259) this).aFont4069);
					graphics_45_.setColor(((Class259) this).aColor4054);
					graphics_45_.drawString(string, i_65_ + (1226939373 * ((Class259) this).anInt4071 - ((Class259) this).aFontMetrics4070.stringWidth(string)) / 2, (((Class259) this).anInt4076 * -407864721 + (4 + (i_66_ + (877873867 * ((Class259) this).anInt4062 / 2)))));
					graphics.drawImage(Class92_Sub21.anImage10086, 0, 0, null);
				} catch (Exception exception) {
					((Class259) this).aBool4066 = true;
				}
			} else
				Class180.aCanvas2174.repaint();
		}
	}

	public int method170() {
		return 100;
	}

	Image method5129(String string) throws IOException {
		Image image;
		try {
			InputStream inputstream = Class71.anApplet1060.getClass().getClassLoader().getResourceAsStream(string);
			byte[] is = new byte[5000];
			int i = 0;
			int i_79_;
			while ((i_79_ = inputstream.read()) != -1)
				is[i++] = (byte) i_79_;
			Image image_80_ = Toolkit.getDefaultToolkit().createImage(is);
			image = image_80_;
		} catch (Exception exception) {
			throw new IOException();
		}
		return image;
	}

	Image method5130(String string) throws IOException {
		Image image;
		try {
			InputStream inputstream = Class71.anApplet1060.getClass().getClassLoader().getResourceAsStream(string);
			byte[] is = new byte[5000];
			int i = 0;
			int i_81_;
			while ((i_81_ = inputstream.read()) != -1)
				is[i++] = (byte) i_81_;
			Image image_82_ = Toolkit.getDefaultToolkit().createImage(is);
			image = image_82_;
		} catch (Exception exception) {
			throw new IOException();
		}
		return image;
	}

	final int method5131(int i) {
		if (((Class259) this).aBool4068)
			return (-322515687 * Class39.anInt722 - i) / 2;
		return 0;
	}

	void method5132() {
		Class274.method5383(Class19.aClass261_256.method5167((byte) 24), Class19.aClass261_256.method5149((byte) 79), client.aColorArray8044[1257284591 * client.anInt7997], client.aColorArray8045[1257284591 * client.anInt7997], client.aColorArray8107[client.anInt7997 * 1257284591], -1746741953);
	}

	void method5133() {
		Class274.method5383(Class19.aClass261_256.method5167((byte) 58), Class19.aClass261_256.method5149((byte) 11), client.aColorArray8044[1257284591 * client.anInt7997], client.aColorArray8045[1257284591 * client.anInt7997], client.aColorArray8107[client.anInt7997 * 1257284591], -1746741953);
	}

	public void method42() {
		Class92_Sub19.method14675(-744603455);
	}

	public void method150() {
		Class92_Sub19.method14675(-1148644238);
	}

	public void method173() {
		/* empty */
	}

	Class259() {
		/* empty */
	}

	public int method171() {
		return 0;
	}

	public boolean method166(long l) {
		return true;
	}

	public void method172() {
		/* empty */
	}

	public void method168(boolean bool) {
		if (!((Class259) this).aBool4066 && ((Class259) this).aFont4069 == null) {
			try {
				String[] strings = Class490.method11125(client.aString8297, ',', 1738526254);
				if (23 != strings.length)
					((Class259) this).aBool4066 = true;
				((Class259) this).aBool4067 = Boolean.parseBoolean(strings[0]);
				((Class259) this).aBool4068 = Boolean.parseBoolean(strings[1]);
				((Class259) this).anInt4072 = Class508.method11501(strings[2], 237060625) * -305022213;
				((Class259) this).anInt4073 = (Class508.method11501(strings[3], -1310937686) * -221807183);
				((Class259) this).anInt4071 = (Class508.method11501(strings[4], -976101085) * 1218378213);
				((Class259) this).anInt4062 = Class508.method11501(strings[5], -1046494410) * 80890595;
				((Class259) this).anInt4075 = (Class508.method11501(strings[6], -220883250) * -1055747391);
				((Class259) this).anInt4060 = (Class508.method11501(strings[7], -1041508921) * 632818629);
				((Class259) this).anInt4074 = (Class508.method11501(strings[8], 1355997708) * -561820425);
				((Class259) this).anInt4076 = (Class508.method11501(strings[9], -117542053) * 1510745231);
				String string = strings[10];
				int i = Class508.method11501(strings[11], 96357741);
				int i_83_ = Class489.method11109(strings[12].substring(2), 16, -206404864);
				((Class259) this).aFont4069 = new Font(string, 0, i);
				((Class259) this).aFontMetrics4070 = Class180.aCanvas2174.getFontMetrics(((Class259) this).aFont4069);
				((Class259) this).aColor4054 = new Color(i_83_);
				MediaTracker mediatracker = new MediaTracker(Class180.aCanvas2174);
				((Class259) this).anImage4057 = method5125(strings[13], (byte) 103);
				mediatracker.addImage(((Class259) this).anImage4057, 0);
				((Class259) this).anImage4058 = method5125(strings[14], (byte) 65);
				mediatracker.addImage(((Class259) this).anImage4058, 1);
				((Class259) this).anImage4059 = method5125(strings[15], (byte) -13);
				mediatracker.addImage(((Class259) this).anImage4059, 2);
				((Class259) this).anImage4055 = method5125(strings[16], (byte) 75);
				mediatracker.addImage(((Class259) this).anImage4055, 3);
				((Class259) this).anImage4061 = method5125(strings[17], (byte) -101);
				mediatracker.addImage(((Class259) this).anImage4061, 4);
				((Class259) this).anImage4053 = method5125(strings[18], (byte) -70);
				mediatracker.addImage(((Class259) this).anImage4053, 5);
				((Class259) this).anImage4063 = method5125(strings[19], (byte) -95);
				mediatracker.addImage(((Class259) this).anImage4063, 6);
				((Class259) this).anImage4064 = method5125(strings[20], (byte) 50);
				mediatracker.addImage(((Class259) this).anImage4064, 7);
				((Class259) this).anImage4065 = method5125(strings[21], (byte) -104);
				mediatracker.addImage(((Class259) this).anImage4065, 8);
				mediatracker.waitForAll();
				((Class259) this).anInt4077 = (Class508.method11501(strings[22], 978980829) * -1801646337);
			} catch (Exception exception) {
				((Class259) this).aBool4066 = true;
			}
		}
		if (((Class259) this).aBool4066)
			method5127(-1816346700);
		else {
			Graphics graphics = Class180.aCanvas2174.getGraphics();
			if (null != graphics) {
				try {
					int i = Class19.aClass261_256.method5167((byte) 124);
					String string = Class19.aClass261_256.method5149((byte) 74);
					if (null == Class92_Sub21.anImage10086)
						Class92_Sub21.anImage10086 = (Class180.aCanvas2174.createImage(Class117.anInt1641 * -334452787, -322515687 * Class39.anInt722));
					Graphics graphics_84_ = Class92_Sub21.anImage10086.getGraphics();
					graphics_84_.setColor(Color.BLACK);
					graphics_84_.fillRect(0, 0, -334452787 * Class117.anInt1641, -322515687 * Class39.anInt722);
					int i_85_ = ((Class259) this).anImage4063.getWidth(null);
					int i_86_ = ((Class259) this).anImage4064.getWidth(null);
					int i_87_ = ((Class259) this).anImage4065.getWidth(null);
					int i_88_ = ((Class259) this).anImage4063.getHeight(null);
					int i_89_ = ((Class259) this).anImage4064.getHeight(null);
					int i_90_ = ((Class259) this).anImage4065.getHeight(null);
					graphics_84_.drawImage(((Class259) this).anImage4063, (method5123(i_85_, 928723741) + -1354695359 * ((Class259) this).anInt4075 - 1675310279 * ((Class259) this).anInt4074 / 2), (method5124(i_88_, 1961063790) + 960314125 * ((Class259) this).anInt4060), null);
					int i_91_ = (i_85_ + (-1354695359 * ((Class259) this).anInt4075 - ((Class259) this).anInt4074 * 1675310279 / 2));
					int i_92_ = (((Class259) this).anInt4074 * 1675310279 / 2 + ((Class259) this).anInt4075 * -1354695359);
					for (int i_93_ = i_91_; i_93_ <= i_92_; i_93_ += i_87_)
						graphics_84_.drawImage(((Class259) this).anImage4065, (method5123(i_85_, 1887004576) + ((Class259) this).anInt4075 * -1354695359 + i_93_), (method5124(i_90_, -549802915) + 960314125 * ((Class259) this).anInt4060), null);
					graphics_84_.drawImage(((Class259) this).anImage4064, (method5123(i_86_, 751394675) + ((Class259) this).anInt4075 * -1354695359 + ((Class259) this).anInt4074 * 1675310279 / 2), (method5124(i_89_, 822170547) + ((Class259) this).anInt4060 * 960314125), null);
					int i_94_ = ((Class259) this).anImage4059.getWidth(null);
					int i_95_ = ((Class259) this).anImage4059.getHeight(null);
					int i_96_ = ((Class259) this).anImage4055.getWidth(null);
					int i_97_ = ((Class259) this).anImage4055.getHeight(null);
					int i_98_ = ((Class259) this).anImage4053.getHeight(null);
					int i_99_ = ((Class259) this).anImage4061.getWidth(null);
					int i_100_ = ((Class259) this).anImage4061.getHeight(null);
					int i_101_ = ((Class259) this).anImage4053.getWidth(null);
					int i_102_ = ((Class259) this).anImage4057.getWidth(null);
					int i_103_ = ((Class259) this).anImage4058.getWidth(null);
					int i_104_ = (method5123(((Class259) this).anInt4071 * 1226939373, 1265221185) + -400867277 * ((Class259) this).anInt4072);
					int i_105_ = (method5124(((Class259) this).anInt4062 * 877873867, 1355170180) + ((Class259) this).anInt4073 * -341005487);
					graphics_84_.drawImage(((Class259) this).anImage4059, i_104_, ((((Class259) this).anInt4062 * 877873867) - i_95_) / 2 + i_105_, null);
					graphics_84_.drawImage(((Class259) this).anImage4055, ((1226939373 * ((Class259) this).anInt4071) + i_104_ - i_96_), ((((Class259) this).anInt4062 * 877873867) - i_97_) / 2 + i_105_, null);
					if (((Class259) this).anImage4056 == null)
						((Class259) this).anImage4056 = (Class180.aCanvas2174.createImage((((Class259) this).anInt4071 * 1226939373 - i_94_ - i_96_), 877873867 * ((Class259) this).anInt4062));
					Graphics graphics_106_ = ((Class259) this).anImage4056.getGraphics();
					for (int i_107_ = 0; i_107_ < (1226939373 * ((Class259) this).anInt4071 - i_94_ - i_96_); i_107_ += i_99_)
						graphics_106_.drawImage(((Class259) this).anImage4061, i_107_, 0, null);
					for (int i_108_ = 0; i_108_ < (((Class259) this).anInt4071 * 1226939373 - i_94_ - i_96_); i_108_ += i_101_)
						graphics_106_.drawImage(((Class259) this).anImage4053, i_108_, (((Class259) this).anInt4062 * 877873867) - i_98_, null);
					int i_109_ = i * (1226939373 * ((Class259) this).anInt4071 - i_94_ - i_96_) / 100;
					if (i_109_ > 0) {
						Image image = (Class180.aCanvas2174.createImage(i_109_, (877873867 * ((Class259) this).anInt4062 - i_100_ - i_98_)));
						int i_110_ = image.getWidth(null);
						Graphics graphics_111_ = image.getGraphics();
						int i_112_ = (((Class259) this).anInt4077 * -712904449 * Class441_Sub5.method13754(-1063894688) / 10 % i_102_);
						for (int i_113_ = i_112_ - i_102_; i_113_ < i_110_; i_113_ += i_102_)
							graphics_111_.drawImage((((Class259) this).anImage4057), i_113_, 0, null);
						graphics_106_.drawImage(image, 0, i_100_, null);
					}
					int i_114_ = i_109_;
					i_109_ = (1226939373 * ((Class259) this).anInt4071 - i_94_ - i_96_ - i_109_);
					if (i_109_ > 0) {
						Image image = (Class180.aCanvas2174.createImage(i_109_, (877873867 * ((Class259) this).anInt4062 - i_100_ - i_98_)));
						int i_115_ = image.getWidth(null);
						Graphics graphics_116_ = image.getGraphics();
						for (int i_117_ = 0; i_117_ < i_115_; i_117_ += i_103_)
							graphics_116_.drawImage((((Class259) this).anImage4058), i_117_, 0, null);
						graphics_106_.drawImage(image, i_114_, i_100_, null);
					}
					graphics_84_.drawImage(((Class259) this).anImage4056, i_94_ + i_104_, i_105_, null);
					graphics_84_.setFont(((Class259) this).aFont4069);
					graphics_84_.setColor(((Class259) this).aColor4054);
					graphics_84_.drawString(string, i_104_ + (1226939373 * ((Class259) this).anInt4071 - ((Class259) this).aFontMetrics4070.stringWidth(string)) / 2, (((Class259) this).anInt4076 * -407864721 + (4 + (i_105_ + (877873867 * ((Class259) this).anInt4062 / 2)))));
					graphics.drawImage(Class92_Sub21.anImage10086, 0, 0, null);
				} catch (Exception exception) {
					((Class259) this).aBool4066 = true;
				}
			} else
				Class180.aCanvas2174.repaint();
		}
	}

	public int method161() {
		return 100;
	}

	public static Class568 method5134(boolean bool, byte i) {
		synchronized (Class568.aStack7348) {
			Class568 class568;
			if (Class568.aStack7348.isEmpty())
				class568 = new Class568();
			else
				class568 = (Class568) Class568.aStack7348.pop();
			((Class568) class568).aBool7349 = bool;
			Class568 class568_118_ = class568;
			return class568_118_;
		}
	}

	static final void method5135(Class477 class477, int i) {
		Class497_Sub1_Sub3_Sub5_Sub2 class497_sub1_sub3_sub5_sub2 = ((Class497_Sub1_Sub3_Sub5_Sub2) ((Class477) class477).aClass497_Sub1_Sub3_Sub5_6494);
		((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 += 1577301031) * 2028895127 - 1] = -1873554277 * class497_sub1_sub3_sub5_sub2.anInt11147;
	}

	static String method5136(int i, Class469 class469, Class511 class511, byte i_119_) {
		if (i < 100000)
			return new StringBuilder().append(Class126.method3051(-89538873 * class511.anInt6802, -826367996)).append(i).append(Class417.aString6072).toString();
		if (i < 10000000)
			return new StringBuilder().append(Class126.method3051(-838293811 * class511.anInt6816, -948678046)).append(i / 1000).append(Class404.aClass404_5805.method7191(class469, 358090118)).append(Class417.aString6072).toString();
		return new StringBuilder().append(Class126.method3051(678703673 * class511.anInt6826, -2050484968)).append(i / 1000000).append(Class404.aClass404_5862.method7191(class469, -199287623)).append(Class417.aString6072).toString();
	}

	static final int[] method5137(String string, Class477 class477, int i) {
		int[] is = null;
		if (string.length() > 0 && string.charAt(string.length() - 1) == 'Y') {
			int i_120_ = (((Class477) class477).anIntArray6497[((((Class477) class477).anInt6498 -= 1577301031) * 2028895127)]);
			if (i_120_ > 0) {
				is = new int[i_120_];
				while (i_120_-- > 0)
					is[i_120_] = (((Class477) class477).anIntArray6497[(((Class477) class477).anInt6498 -= 1577301031) * 2028895127]);
			}
		}
		return is;
	}
}
