Actually, from what i learned in school, Japan's attack on Pearl harbor was a tactical nessecity. It wanted to take control of Malaysia, burma and the Dutch East Indies. If the Pacific Fleet is not destroyed, Americans will easily intervene and prevent Japan from having a easy victories. So to pave way for its invasion of South East Asia, Japan really had no choice to to prempt America. Japan figured that WWII was just another colonial war, and that once it had taken control of those colonies, neither Britain or America would be willing to go all out for those colonies. I guess the Japanese high command was stuck in the 19th mentality. They made the same mistake with China, they figured that the Chinese governemnt will act like the Qing government of the 19th century.
So basically, Japanese werent that stupid to be 'goated' into attacking America, They obviously had a very good tatical reason for bombing pearl harbor, albeit their strategic thinking was a little behind the times.