public static void saveAnimation(Animation a, OutputStream s) throws IOException
	{
		DataOutputStream d = new DataOutputStream(s);
		d.writeUTF(a.animationName);
		d.writeInt(a.frames.length);
		for(int i=0; i < a.frames.length; i++)
		{
			d.writeLong(a.timestamps[i]);
			d.writeInt(a.frames[i]);
		}
	}