void splitMoney(Entity thnStore, int money)
	{
		if (money == 0)
		{
			return;
		}
		if (thnStore.BLN_POPUP)
		{
			thnStore.send(""+(char)33+"You have lost "+money+" gp\n");
		} else
		{
			thnStore.chatMessage("You have lost "+money+" gp\n");
		}
		thnStore.ZENY -= money;
		int i,
			i2=0;
		Vector vctStore;
		if (thnStore.bytSide ==1)
		{
			vctStore = vctSide2;
		}else
		{
			vctStore = vctSide1;
		}
		Entity thnStore2;
		try
		{
			for (i=0;i<vctStore.size();i++)
			{
				thnStore2 = (Entity)vctStore.elementAt(i);
				if (thnStore2.isPlayer())
				{
					i2++;
				}
			}
			i2 = money/i2;
			for (i=0;i<vctStore.size();i++)
			{
				thnStore2 = (Entity)vctStore.elementAt(i);
				thnStore2.ZENY += i2;
				if (thnStore2.isPlayer() && i2 != 0)
				{
					thnStore2.chatMessage("\tYou get "+i2+" gp.\n");
				}
			}
		}catch(Exception e)
		{
			engGame.LOG.printError("splitMoney()", e);
		}
	}