// Path: src/org/sleeksnap/Constants.java
// public class Constants {
// 	public static class Application {
// 		public static final String NAME = "Sleeksnap";
// 		public static final String URL = "http://sleeksnap.com";
// 		public static final String UPDATE_URL = "http://sleeksnap.com/build/";
// 	}
// 
// 	public static class Configuration {
// 		public static final String FILE_NAME = Application.NAME.toLowerCase()
// 				+ ".conf";
// 
// 		public static final int DEFAULT_MAX_RETRIES = 3;
// 		
// 		public static final String DEFAULT_LANGUAGE = "english";
// 	}
// 
// 	public static class Resources {
// 		public static final String LOGO_PATH = "/logo.png";
// 		public static final String ICON_PATH = "/icon.png";
// 		public static final String ICON_BUSY_PATH = "/icon-busy.png";
// 		
// 		public static final URL ICON = Util.getResourceByName(Resources.ICON_PATH);
// 		public static final URL ICON_BUSY = Util.getResourceByName(Resources.ICON_BUSY_PATH);
// 		
// 		public static final Image ICON_IMAGE = Toolkit.getDefaultToolkit().getImage(ICON);
// 		public static final Image ICON_BUSY_IMAGE = Toolkit.getDefaultToolkit().getImage(ICON_BUSY);
// 	}
// 	
// 	public static class Version {
// 		public static final int MAJOR = 1;
// 		public static final int MINOR = 4;
// 		public static final int PATCH = 9;
// 		
// 		private static String versionString = null;
// 		
// 		public static String getVersionString() {
// 			if(versionString == null) {
// 				// Construct string normally
// 				versionString = MAJOR + "." + MINOR + "." + PATCH;
// 			}
// 			return  versionString;
// 		}
// 	}
// }
// 
// Path: src/org/sleeksnap/Constants.java
// public static class Application {
// 	public static final String NAME = "Sleeksnap";
// 	public static final String URL = "http://sleeksnap.com";
// 	public static final String UPDATE_URL = "http://sleeksnap.com/build/";
// }
// 
// Path: src/org/sleeksnap/Constants.java
// public static class Version {
// 	public static final int MAJOR = 1;
// 	public static final int MINOR = 4;
// 	public static final int PATCH = 9;
// 		
// 	private static String versionString = null;
// 		
// 	public static String getVersionString() {
// 		if(versionString == null) {
// 			// Construct string normally
// 			versionString = MAJOR + "." + MINOR + "." + PATCH;
// 		}
// 		return  versionString;
// 	}
// }


import org.sleeksnap.Constants;
import org.sleeksnap.Constants.Application;
import org.sleeksnap.Constants.Version;
import java.awt.Desktop;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.io.File;
import java.net.URL;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.swing.JFrame;
import javax.swing.UIManager;
		} else {
			File file = null;
			if ((file = new File("resources" + name)).exists() || (file = new File(Util.getWorkingDirectory(), "resources" + name)).exists()) {
				try {
					return file.toURI().toURL();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		}
		return null;
	}

	/**
	 * Get the system architecture
	 * 
	 * @return The system architecture integer
	 */
	public static int getSystemArch() {
		String archs = System.getProperty("os.arch");
		return Integer.parseInt(archs.substring(archs.length() - 2));
	}

	/**
	 * Get the current working directory
	 * 
	 * @return The working directory for the application
	 */
	public static File getWorkingDirectory() {
		if (workDir == null)
// Path: src/org/sleeksnap/Constants.java
// public class Constants {
// 	public static class Application {
// 		public static final String NAME = "Sleeksnap";
// 		public static final String URL = "http://sleeksnap.com";
// 		public static final String UPDATE_URL = "http://sleeksnap.com/build/";
// 	}
// 
// 	public static class Configuration {
// 		public static final String FILE_NAME = Application.NAME.toLowerCase()
// 				+ ".conf";
// 
// 		public static final int DEFAULT_MAX_RETRIES = 3;
// 		
// 		public static final String DEFAULT_LANGUAGE = "english";
// 	}
// 
// 	public static class Resources {
// 		public static final String LOGO_PATH = "/logo.png";
// 		public static final String ICON_PATH = "/icon.png";
// 		public static final String ICON_BUSY_PATH = "/icon-busy.png";
// 		
// 		public static final URL ICON = Util.getResourceByName(Resources.ICON_PATH);
// 		public static final URL ICON_BUSY = Util.getResourceByName(Resources.ICON_BUSY_PATH);
// 		
// 		public static final Image ICON_IMAGE = Toolkit.getDefaultToolkit().getImage(ICON);
// 		public static final Image ICON_BUSY_IMAGE = Toolkit.getDefaultToolkit().getImage(ICON_BUSY);
// 	}
// 	
// 	public static class Version {
// 		public static final int MAJOR = 1;
// 		public static final int MINOR = 4;
// 		public static final int PATCH = 9;
// 		
// 		private static String versionString = null;
// 		
// 		public static String getVersionString() {
// 			if(versionString == null) {
// 				// Construct string normally
// 				versionString = MAJOR + "." + MINOR + "." + PATCH;
// 			}
// 			return  versionString;
// 		}
// 	}
// }
// 
// Path: src/org/sleeksnap/Constants.java
// public static class Application {
// 	public static final String NAME = "Sleeksnap";
// 	public static final String URL = "http://sleeksnap.com";
// 	public static final String UPDATE_URL = "http://sleeksnap.com/build/";
// }
// 
// Path: src/org/sleeksnap/Constants.java
// public static class Version {
// 	public static final int MAJOR = 1;
// 	public static final int MINOR = 4;
// 	public static final int PATCH = 9;
// 		
// 	private static String versionString = null;
// 		
// 	public static String getVersionString() {
// 		if(versionString == null) {
// 			// Construct string normally
// 			versionString = MAJOR + "." + MINOR + "." + PATCH;
// 		}
// 		return  versionString;
// 	}
// }


// Path: src/org/sleeksnap/util/Util.java
import org.sleeksnap.Constants;
import org.sleeksnap.Constants.Application;
import org.sleeksnap.Constants.Version;
import java.awt.Desktop;
import java.awt.GraphicsDevice;
import java.awt.GraphicsEnvironment;
import java.awt.Rectangle;
import java.io.File;
import java.net.URL;
import java.util.HashMap;
import java.util.Iterator;
import java.util.List;
import java.util.Map;
import javax.swing.JFrame;
import javax.swing.UIManager;

		} else {
			File file = null;
			if ((file = new File("resources" + name)).exists() || (file = new File(Util.getWorkingDirectory(), "resources" + name)).exists()) {
				try {
					return file.toURI().toURL();
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		}
		return null;
	}

	/**
	 * Get the system architecture
	 * 
	 * @return The system architecture integer
	 */
	public static int getSystemArch() {
		String archs = System.getProperty("os.arch");
		return Integer.parseInt(archs.substring(archs.length() - 2));
	}

	/**
	 * Get the current working directory
	 * 
	 * @return The working directory for the application
	 */
	public static File getWorkingDirectory() {
		if (workDir == null)
			workDir = getWorkingDirectory(Constants.Application.NAME