Thank you very much for your post! It works perfectly for me.
One more question, is it possible to make it stay on the same page while switching to a different language? whether than going back to the index page. I would be grateful if anyone would give me a little help.