I NEVER, NEVER, understood the thing with the national anthem.
You are allowed to stand up in a courtroom to show "respect" for a judge when he/she enters the courtroom as is the custom, but you were not supposed to stand up and show respect for the country when the anthem is played.
I never considered it "worshiping" anyone or anything but just being respectful. But it made it very difficult on occasions in school.