phone stuck while loading cyanogenmod I am using a Samsung Galaxy Y. Everytime I switch on my phone it goes from samsung logo to cyanogenmod loading.

What do i do? I have waited for an hour.
It might take a minute or five, but certainly not an hour. But I know what happened to you as it happened to me too when I flashed my first rom. 

Keeping it short: the ever-looping boot animation you're seeing is silently saying that you forgot to clean the caches after you've flashed your CyanogenMod rom.

To fix that, do:


Reboot into ClockworkMod.
Whipe the "Dalvik cache".
Optionally, while the "Cache".
Reboot into Cyanogenmod.


Most of the time, it's simple an unwhiped "Dalvik cache" messing things up. Yet, in the unlikely case that shouldn't fix it (for example - when you weren't running a previous CyanogenMod rom before you flashed your current one), you'll have to do a "Factory Reset" too. But 1-4 should get you going, so I would not factory-reset it on the first attempt. ;)