public Condition getCondition(String inName)
	{
		String strStore="Error opening file";
		try
		{
			RandomAccessFile rafConditionDef = new RandomAccessFile("defConditions/"+inName.toLowerCase(), "r");
			Condition cndStore = new Condition();
			cndStore.NAME = inName;
			strStore = rafConditionDef.readLine();
			while (!(strStore == null || strStore.equals(".")))
			{
				if (strStore.equalsIgnoreCase("duration"))
				{
					cndStore.intDuration = Integer.parseInt(rafConditionDef.readLine());
				}else if (strStore.equalsIgnoreCase("occurance"))
				{
					cndStore.intOccurance = Integer.parseInt(rafConditionDef.readLine());
				}else if (strStore.equalsIgnoreCase("onstart"))
				{
					cndStore.strOnStart = rafConditionDef.readLine();
				}else if (strStore.equalsIgnoreCase("onoccurance"))
				{
					cndStore.strOnOccurance = rafConditionDef.readLine();
				}else if (strStore.equalsIgnoreCase("onend"))
				{
					cndStore.strOnEnd = rafConditionDef.readLine();
				}else if (strStore.equalsIgnoreCase("nodisplay"))
				{
					cndStore.blnDisplay = false;
				}
				strStore = rafConditionDef.readLine();
			}
			rafConditionDef.close();
			return cndStore;
		}catch (Exception e)
		{
			LOG.printError("getCondition():Parsing \""+strStore+"\" for condition \""+inName+"\"", e);
		}
		return null;
	}