private double getMagic(String word, int idx) {

		double c;

		switch (idx) {
		case 0:

			c = seahawks.containsKey(word) ? (double) seahawks.get(word) : 0.0;
			return (c + 1.0) / (60.0 + seahawks.size());

		case 1:
			c = nfl.containsKey(word) ? (double) nfl.get(word) : 0.0;
			return (c + 1.0) / (60.0 + nfl.size());

		case 2:
			c = reklam.containsKey(word) ? (double) reklam.get(word) : 0.0;
			return (c + 1.0) / (60.0 + reklam.size());
		case 3:
			c = broncos.containsKey(word) ? (double) broncos.get(word) : 0.0;
			return (c + 1.0) / (60.0 + broncos.size());

		}

		return 0;
	}