Iphone stuck in reset settings?

My Safari was not working, so i tried to reset all settings. Then the battery died, so now its just stuck in the apple screen, with a never moving loading bar. I'm using Iphone 4s.

Hook it to the computer open itunes and restore it back to factery within itunes you need to reflash it and useing the itunes iphone restore / update will do this