if(i % 2 == 1 && tagObjects[i].className == "mfptr"){がif(i % 2 == 0 && tagObjects[i].className == "mfptr"){ですね。「i % 2 は変数iに入った値を2で割った時の余り」という意味です。