Eleanor is going to color the sides of a regular octagon. Two sides will be red, two sides will be yellow, two sides will be green, and two sides will be blue. Furthermore, opposite sides of the regular octagon will have the same color. How many different ways can Eleanor color the sides of the ocatgon? (Two patterns are considered identical if one can be rotated to form the other.)