/* Class235 - Decompiled by JODE
 * Visit http://jode.sourceforge.net/
 */
import java.applet.Applet;
import java.awt.Desktop;
import java.net.URI;
import java.net.URL;

public class Class235
{
    static final int anInt3879 = 0;
    static String aString3880;
    static Applet anApplet3881 = null;
    public static final int anInt3882 = 1;
    static final int anInt3883 = 2;
    static final int anInt3884 = 3;
    public static long aLong3885;
    
    public static boolean method4818(String string, int i, String string_0_) {
	if (0 == i) {
	    boolean bool;
	    try {
		if (!aString3880.startsWith("win"))
		    throw new Exception();
		if (!string.startsWith("http://")
		    && !string.startsWith("https://"))
		    throw new Exception();
		String string_1_
		    = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?&=,.%+-_#:/*";
		for (int i_2_ = 0; i_2_ < string.length(); i_2_++) {
		    if (string_1_.indexOf(string.charAt(i_2_)) == -1)
			throw new Exception();
		}
		Runtime.getRuntime().exec(new StringBuilder().append
					      ("cmd /c start \"j\" \"").append
					      (string).append
					      ("\"").toString());
		bool = true;
	    } catch (Throwable throwable) {
		return false;
	    }
	    return bool;
	}
	if (i == 1) {
	    boolean bool;
	    try {
		Object object
		    = Class615.method13260(anApplet3881, string_0_,
					   (new Object[]
					    { new URL
						  (anApplet3881.getCodeBase(),
						   string)
						  .toString() }),
					   -1482009092);
		bool = null != object;
	    } catch (Throwable throwable) {
		return false;
	    }
	    return bool;
	}
	if (2 == i) {
	    boolean bool;
	    try {
		anApplet3881.getAppletContext().showDocument
		    (new URL(anApplet3881.getCodeBase(), string), "_blank");
		bool = true;
	    } catch (Exception exception) {
		return false;
	    }
	    return bool;
	}
	if (i == 3) {
	    try {
		Class615.method13262(anApplet3881, "loggedout", -98730341);
	    } catch (Throwable throwable) {
		/* empty */
	    }
	    boolean bool;
	    try {
		anApplet3881.getAppletContext().showDocument
		    (new URL(anApplet3881.getCodeBase(), string), "_top");
		bool = true;
	    } catch (Exception exception) {
		return false;
	    }
	    return bool;
	}
	throw new IllegalArgumentException();
    }
    
    public static void method4819(String string, boolean bool,
				  String string_3_, boolean bool_4_) {
	if (bool) {
	    do {
		if (!bool_4_ && Desktop.isDesktopSupported()
		    && Desktop.getDesktop()
			   .isSupported(Desktop.Action.BROWSE)) {
		    try {
			Desktop.getDesktop().browse(new URI(string));
		    } catch (Exception exception) {
			break;
		    }
		    return;
		}
	    } while (false);
	    if (aString3880.startsWith("win") && !bool_4_)
		Class360.method6909(string, 0, -1377026283);
	    else if (aString3880.startsWith("mac"))
		Class132.method3326(string, 1, string_3_, (byte) 0);
	    else
		Class360.method6909(string, 2, -1377026283);
	} else
	    Class360.method6909(string, 3, -1377026283);
    }
    
    public static void method4820(Applet applet, String string) {
	anApplet3881 = applet;
	aString3880 = string;
    }
    
    public static void method4821(Applet applet, String string) {
	anApplet3881 = applet;
	aString3880 = string;
    }
    
    static {
	aString3880 = null;
    }
    
    public static void method4822(String string, boolean bool,
				  boolean bool_5_) {
	Class567.method12407(string, bool, "openjs", bool_5_, 1224521863);
    }
    
    public static boolean method4823(String string, int i, String string_6_) {
	if (0 == i) {
	    boolean bool;
	    try {
		if (!aString3880.startsWith("win"))
		    throw new Exception();
		if (!string.startsWith("http://")
		    && !string.startsWith("https://"))
		    throw new Exception();
		String string_7_
		    = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?&=,.%+-_#:/*";
		for (int i_8_ = 0; i_8_ < string.length(); i_8_++) {
		    if (string_7_.indexOf(string.charAt(i_8_)) == -1)
			throw new Exception();
		}
		Runtime.getRuntime().exec(new StringBuilder().append
					      ("cmd /c start \"j\" \"").append
					      (string).append
					      ("\"").toString());
		bool = true;
	    } catch (Throwable throwable) {
		return false;
	    }
	    return bool;
	}
	if (i == 1) {
	    boolean bool;
	    try {
		Object object
		    = Class615.method13260(anApplet3881, string_6_,
					   (new Object[]
					    { new URL
						  (anApplet3881.getCodeBase(),
						   string)
						  .toString() }),
					   -1482009092);
		bool = null != object;
	    } catch (Throwable throwable) {
		return false;
	    }
	    return bool;
	}
	if (2 == i) {
	    boolean bool;
	    try {
		anApplet3881.getAppletContext().showDocument
		    (new URL(anApplet3881.getCodeBase(), string), "_blank");
		bool = true;
	    } catch (Exception exception) {
		return false;
	    }
	    return bool;
	}
	if (i == 3) {
	    try {
		Class615.method13262(anApplet3881, "loggedout", -98730341);
	    } catch (Throwable throwable) {
		/* empty */
	    }
	    boolean bool;
	    try {
		anApplet3881.getAppletContext().showDocument
		    (new URL(anApplet3881.getCodeBase(), string), "_top");
		bool = true;
	    } catch (Exception exception) {
		return false;
	    }
	    return bool;
	}
	throw new IllegalArgumentException();
    }
    
    Class235() throws Throwable {
	throw new Error();
    }
    
    public static boolean method4824(String string, int i, String string_9_) {
	if (0 == i) {
	    boolean bool;
	    try {
		if (!aString3880.startsWith("win"))
		    throw new Exception();
		if (!string.startsWith("http://")
		    && !string.startsWith("https://"))
		    throw new Exception();
		String string_10_
		    = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789?&=,.%+-_#:/*";
		for (int i_11_ = 0; i_11_ < string.length(); i_11_++) {
		    if (string_10_.indexOf(string.charAt(i_11_)) == -1)
			throw new Exception();
		}
		Runtime.getRuntime().exec(new StringBuilder().append
					      ("cmd /c start \"j\" \"").append
					      (string).append
					      ("\"").toString());
		bool = true;
	    } catch (Throwable throwable) {
		return false;
	    }
	    return bool;
	}
	if (i == 1) {
	    boolean bool;
	    try {
		Object object
		    = Class615.method13260(anApplet3881, string_9_,
					   (new Object[]
					    { new URL
						  (anApplet3881.getCodeBase(),
						   string)
						  .toString() }),
					   -1482009092);
		bool = null != object;
	    } catch (Throwable throwable) {
		return false;
	    }
	    return bool;
	}
	if (2 == i) {
	    boolean bool;
	    try {
		anApplet3881.getAppletContext().showDocument
		    (new URL(anApplet3881.getCodeBase(), string), "_blank");
		bool = true;
	    } catch (Exception exception) {
		return false;
	    }
	    return bool;
	}
	if (i == 3) {
	    try {
		Class615.method13262(anApplet3881, "loggedout", -98730341);
	    } catch (Throwable throwable) {
		/* empty */
	    }
	    boolean bool;
	    try {
		anApplet3881.getAppletContext().showDocument
		    (new URL(anApplet3881.getCodeBase(), string), "_top");
		bool = true;
	    } catch (Exception exception) {
		return false;
	    }
	    return bool;
	}
	throw new IllegalArgumentException();
    }
    
    static final void method4825(Class479 class479, int i) {
	((Class479) class479).anInt6442 -= 1977707898;
	int i_12_ = (((Class479) class479).anIntArray6435
		     [-117934955 * ((Class479) class479).anInt6442]);
	int i_13_ = (((Class479) class479).anIntArray6435
		     [1 + -117934955 * ((Class479) class479).anInt6442]);
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = 0 != (i_12_ & 1 << i_13_) ? 1 : 0;
    }
    
    static final void method4826(Class479 class479, int i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = Class612.aClass243_Sub7_7837.aClass421_Sub13_8663
		  .method14156(-1922367964);
    }
    
    public static void method4827(boolean bool, byte i) {
	if (Class541.aClass347_7037 == null)
	    Class331.method6352(-922345836);
	if (bool)
	    Class541.aClass347_7037.method6491(950466342);
    }
    
    public static boolean method4828(int i, int i_14_, byte i_15_) {
	if (!Class22.aBool202)
	    return false;
	int i_16_ = i >> 16;
	int i_17_ = i & 0xffff;
	if (Class211.aClass116Array2498[i_16_] == null
	    || (Class211.aClass116Array2498[i_16_].aClass117Array1343[i_17_]
		== null))
	    return false;
	Class117 class117
	    = Class211.aClass116Array2498[i_16_].aClass117Array1343[i_17_];
	if (i_14_ != -1 || 0 != -1371795959 * class117.anInt1375) {
	    for (Class243_Sub11_Sub15 class243_sub11_sub15
		     = ((Class243_Sub11_Sub15)
			Class22.aClass420_205.method7523(62940083));
		 null != class243_sub11_sub15;
		 class243_sub11_sub15
		     = ((Class243_Sub11_Sub15)
			Class22.aClass420_205.method7520(1063280048))) {
		if ((((Class243_Sub11_Sub15) class243_sub11_sub15).anInt10839
		     * -1231574925) == i_14_
		    && (882351213 * ((Class243_Sub11_Sub15)
				     class243_sub11_sub15).anInt10840
			== -1982078391 * class117.anInt1407)
		    && (58 == 522913343 * ((Class243_Sub11_Sub15)
					   class243_sub11_sub15).anInt10844
			|| 1007 == 522913343 * (((Class243_Sub11_Sub15)
						 class243_sub11_sub15)
						.anInt10844)
			|| (((Class243_Sub11_Sub15) class243_sub11_sub15)
			    .anInt10844) * 522913343 == 25
			|| 57 == (((Class243_Sub11_Sub15) class243_sub11_sub15)
				  .anInt10844) * 522913343
			|| 30 == 522913343 * (((Class243_Sub11_Sub15)
					       class243_sub11_sub15)
					      .anInt10844)))
		    return true;
	    }
	} else {
	    for (Class243_Sub11_Sub15 class243_sub11_sub15
		     = ((Class243_Sub11_Sub15)
			Class22.aClass420_205.method7523(-2062630230));
		 class243_sub11_sub15 != null;
		 class243_sub11_sub15
		     = ((Class243_Sub11_Sub15)
			Class22.aClass420_205.method7520(-1539057424))) {
		if (58 == (((Class243_Sub11_Sub15) class243_sub11_sub15)
			   .anInt10844) * 522913343
		    || 1007 == (((Class243_Sub11_Sub15) class243_sub11_sub15)
				.anInt10844) * 522913343
		    || (((Class243_Sub11_Sub15) class243_sub11_sub15)
			.anInt10844) * 522913343 == 25
		    || 57 == (((Class243_Sub11_Sub15) class243_sub11_sub15)
			      .anInt10844) * 522913343
		    || 30 == (((Class243_Sub11_Sub15) class243_sub11_sub15)
			      .anInt10844) * 522913343) {
		    for (Class117 class117_18_
			     = Class70.method1756((882351213
						   * (((Class243_Sub11_Sub15)
						       class243_sub11_sub15)
						      .anInt10840)),
						  (byte) 33);
			 null != class117_18_;
			 class117_18_
			     = Class491.method11186((Class211
						     .aClass116Array2498
						     [(-1982078391
						       * (class117_18_
							  .anInt1407)) >> 16]),
						    class117_18_,
						    1955153426)) {
			if (-1982078391 * class117.anInt1407
			    == -1982078391 * class117_18_.anInt1407)
			    return true;
		    }
		}
	    }
	}
	return false;
    }
    
    static final void method4829(Class479 class479, int i) {
	((Class479) class479).anIntArray6435
	    [(((Class479) class479).anInt6442 += -1158629699) * -117934955 - 1]
	    = -1115394327 * Class282.anInt4174;
    }
}
