Thanks for the tips!

Everything's been fixed now (thank god!) and after applying a liberal amount of silicon spray, the window works a treat!