Cubase 5 problem (timing/quantizing changed?)

Hi!

I have a problem that I think is easy to fix. I think I accidently hit some shortcut or button that made the timing of my song wrong, so that now when I try to add new MIDI-notes or such they come at off-timing from the rest of the track (the tempo was not changed).

Here is a picture of what I mean (everything was timed at the beats, but now you see they come totally out of sync):

Bigger picture:

How can I fix this?

You have the time line in seconds and minutes, you may want to switch it back to beats and bars?